diff options
author | Tectu <joel@unormal.org> | 2012-11-14 22:08:03 -0800 |
---|---|---|
committer | Tectu <joel@unormal.org> | 2012-11-14 22:08:03 -0800 |
commit | 4ad0935c6f9ea0c7d5276a8a901c44b601a33812 (patch) | |
tree | 1be8216663266c9284cca4a2e29d34c81777a75a /drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h | |
parent | 3cf6d6905f81a69817ef176236cdff024d1e119a (diff) | |
parent | e34ebdcae5d457dda0d9d109951983c7e24bd588 (diff) | |
download | uGFX-4ad0935c6f9ea0c7d5276a8a901c44b601a33812.tar.gz uGFX-4ad0935c6f9ea0c7d5276a8a901c44b601a33812.tar.bz2 uGFX-4ad0935c6f9ea0c7d5276a8a901c44b601a33812.zip |
Merge pull request #19 from inmarket/master
Updates to gdisp Nokia driver
Diffstat (limited to 'drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h')
-rw-r--r-- | drivers/gdisp/Nokia6610/gdisp_lld_board_olimexsam7ex256.h | 22 |
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
|