diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-09-30 00:05:07 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-09-30 00:05:07 +1000 |
commit | 6499da5be310f8f3ef8f2d11dfcfb662499c8c17 (patch) | |
tree | 36322d95790e500c4aaca1097c806ba277b0bf0b /drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h | |
parent | a2aa837e09cd80a3d2fd9bd3097062ab06905227 (diff) | |
download | uGFX-6499da5be310f8f3ef8f2d11dfcfb662499c8c17.tar.gz uGFX-6499da5be310f8f3ef8f2d11dfcfb662499c8c17.tar.bz2 uGFX-6499da5be310f8f3ef8f2d11dfcfb662499c8c17.zip |
SSD1289 streaming driver (untested)
X streaming driver (untested)
Nokia6610 fixes
Read pixel streaming support for low level driver.
Diffstat (limited to 'drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h')
-rw-r--r-- | drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h | 42 |
1 files changed, 27 insertions, 15 deletions
diff --git a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h index 38d9e04d..e55e7cd1 100644 --- a/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h +++ b/drivers/gdisp/SSD1289/gdisp_lld_board_firebullstm32f103.h @@ -112,7 +112,28 @@ static inline void write_data(uint16_t data) { CLR_WR; SET_WR;
}
-#if GDISP_HARDWARE_READPIXEL || GDISP_HARDWARE_SCROLL || defined(__DOXYGEN__)
+/** + * @brief Set the bus in read mode + * + * @notapi + */ +static inline void setreadmode(void) { + // change pin mode to digital input + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_INPUT); + CLR_RD; +} + +/** + * @brief Set the bus back into write mode + * + * @notapi + */ +static inline void setwritemode(void) { + // change pin mode back to digital output + SET_RD; + palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL); +} + /**
* @brief Read data from the lcd.
*
@@ -123,22 +144,13 @@ static inline void write_data(uint16_t data) { * @notapi
*/
static inline uint16_t read_data(void) {
- uint16_t value;
-
- // change pin mode to digital input
- palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_INPUT);
-
- CLR_RD;
- value = palReadPort(GPIOE);
- value = palReadPort(GPIOE);
- SET_RD;
-
- // change pin mode back to digital output
- palSetGroupMode(GPIOE, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL);
-
- return value;
+ return palReadPort(GPIOE);
}
#endif
+#if defined(GDISP_USE_DMA) + #error "GDISP - SSD1289: The GPIO interface does not support DMA" +#endif + #endif /* _GDISP_LLD_BOARD_H */
/** @} */
|