aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h')
-rw-r--r--drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h b/drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h
index 9f85fc10..2f013913 100644
--- a/drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h
+++ b/drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h
@@ -175,13 +175,31 @@ static __inline void GDISP_LLD(set_backlight)(uint8_t percent) {
}
/**
+ * @brief Take exclusive control of the bus
+ *
+ * @notapi
+ */
+static __inline void GDISP_LLD(get_bus)(void) {
+ // Nothing to do for this board as the LCD is the only device on the SPI port
+}
+
+/**
+ * @brief Release exclusive control of the bus
+ *
+ * @notapi
+ */
+static __inline void GDISP_LLD(release_bus)(void) {
+ // Nothing to do for this board as the LCD is the only device on the SPI port
+}
+
+/**
* @brief Send an 8 bit command to the lcd.
*
- * @param[in] data The command to send
+ * @param[in] cmd The command to send
*
* @notapi
*/
-static __inline void GDISP_LLD(write_cmd)(uint16_t data) {
+static __inline void GDISP_LLD(write_cmd)(uint16_t cmd) {
// wait for the previous transfer to complete
while((pSPI->SPI_SR & AT91C_SPI_TXEMPTY) == 0);
// send the command