aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/HX8347D/gdisp_lld_board_template.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/HX8347D/gdisp_lld_board_template.h')
-rw-r--r--drivers/gdisp/HX8347D/gdisp_lld_board_template.h49
1 files changed, 19 insertions, 30 deletions
diff --git a/drivers/gdisp/HX8347D/gdisp_lld_board_template.h b/drivers/gdisp/HX8347D/gdisp_lld_board_template.h
index 295a7997..d3b71d97 100644
--- a/drivers/gdisp/HX8347D/gdisp_lld_board_template.h
+++ b/drivers/gdisp/HX8347D/gdisp_lld_board_template.h
@@ -18,8 +18,6 @@
/**
* @brief Initialise the board for the display.
- * @notes This board definition uses GPIO and assumes exclusive access to these GPIO pins
- *
* @notapi
*/
static inline void init_board(void) {
@@ -50,8 +48,6 @@ static inline void set_backlight(uint8_t percent) {
/**
* @brief Take exclusive control of the bus
- * @note Not needed, not implemented
- *
* @notapi
*/
static inline void acquire_bus(void) {
@@ -60,8 +56,6 @@ static inline void acquire_bus(void) {
/**
* @brief Release exclusive control of the bus
- * @note Not needed, not implemented
- *
* @notapi
*/
static inline void release_bus(void) {
@@ -69,51 +63,46 @@ static inline void release_bus(void) {
}
/**
- * @brief Send data to the index register.
- *
- * @param[in] index The index register to set
- *
+ * @brief Set the bus in 16 bit mode
* @notapi
*/
-static inline void write_index(uint8_t cmd) {
+static inline void busmode16(void) {
}
/**
- * @brief Send data to the lcd.
- *
- * @param[in] data The data to send
- *
+ * @brief Set the bus in 8 bit mode (the default)
* @notapi
*/
-static inline void write_data(uint8_t data) {
-
-
-
-}
-
-static inline void write_ram8(uint8_t data1, uint8_t data2) {
+static inline void busmode8(void) {
}
-static inline void write_ram16(uint16_t data) {
+/**
+ * @brief Set which index register to use.
+ *
+ * @param[in] index The index register to set
+ *
+ * @notapi
+ */
+static inline void write_index(uint8_t cmd) {
}
-#if GDISP_HARDWARE_READPIXEL || defined(__DOXYGEN__)
/**
- * @brief Read data from the lcd.
+ * @brief Send a command to the lcd.
*
- * @return The data from the lcd
- * @note The chip select may need to be asserted/de-asserted
- * around the actual spi read
+ * @param[in] data The data to send
*
* @notapi
*/
-static inline uint16_t read_data(void) {
+static inline void write_reg(uint8_t cmd, uint8_t data) {
+
+}
+
+static inline void write_ram16(uint16_t data) {
}
-#endif
#endif /* _GDISP_LLD_BOARD_H */
/** @} */