2013-05-03 14:36:17 +00:00
|
|
|
/*
|
2013-06-15 11:37:22 +00:00
|
|
|
* This file is subject to the terms of the GFX License. If a copy of
|
2013-05-03 14:36:17 +00:00
|
|
|
* the license was not distributed with this file, you can obtain one at:
|
|
|
|
*
|
2013-07-21 20:20:37 +00:00
|
|
|
* http://ugfx.org/license.html
|
2013-05-03 14:36:17 +00:00
|
|
|
*/
|
2013-07-21 15:42:25 +00:00
|
|
|
|
|
|
|
/**
|
2013-10-19 05:38:00 +00:00
|
|
|
* @file drivers/gdisp/Nokia6610GE12/board_Nokia6610GE12_template.h
|
2013-10-01 11:11:42 +00:00
|
|
|
* @brief GDISP Graphic Driver subsystem board interface for the Nokia6610 GE12 display.
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @addtogroup GDISP
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GDISP_LLD_BOARD_H
|
|
|
|
#define _GDISP_LLD_BOARD_H
|
|
|
|
|
2013-10-01 11:11:42 +00:00
|
|
|
/*
|
|
|
|
* Set various display properties. These properties mostly depend on the exact controller chip you get.
|
|
|
|
* The defaults should work for most controllers.
|
|
|
|
*/
|
|
|
|
//#define GDISP_SCREEN_HEIGHT 130 // The visible display height
|
|
|
|
//#define GDISP_SCREEN_WIDTH 130 // The visible display width
|
|
|
|
//#define GDISP_RAM_X_OFFSET 0 // The x offset of the visible area
|
|
|
|
//#define GDISP_RAM_Y_OFFSET 2 // The y offset of the visible area
|
|
|
|
//#define GDISP_SLEEP_POS 50 // The position of the sleep mode partial display
|
|
|
|
//#define GDISP_INITIAL_CONTRAST 50 // The initial contrast percentage
|
|
|
|
//#define GDISP_INITIAL_BACKLIGHT 100 // The initial backlight percentage
|
|
|
|
|
2013-07-21 15:42:25 +00:00
|
|
|
/**
|
|
|
|
* @brief Initialise the board for the display.
|
2013-10-19 05:38:00 +00:00
|
|
|
*
|
|
|
|
* @param[in] g The GDisplay structure
|
|
|
|
*
|
2013-10-21 07:11:07 +00:00
|
|
|
* @note Set the g->board member to whatever is appropriate. For multiple
|
2013-10-19 05:38:00 +00:00
|
|
|
* displays this might be a pointer to the appropriate register set.
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void init_board(GDisplay *g) {
|
|
|
|
(void) g;
|
|
|
|
}
|
2013-07-21 15:42:25 +00:00
|
|
|
|
2013-10-19 05:38:00 +00:00
|
|
|
/**
|
|
|
|
* @brief After the initialisation.
|
|
|
|
*
|
|
|
|
* @param[in] g The GDisplay structure
|
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
|
|
|
static inline void post_init_board(GDisplay *g) {
|
|
|
|
(void) g;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set or clear the lcd reset pin.
|
|
|
|
*
|
2013-10-19 05:38:00 +00:00
|
|
|
* @param[in] g The GDisplay structure
|
2013-07-21 15:42:25 +00:00
|
|
|
* @param[in] state TRUE = lcd in reset, FALSE = normal operation
|
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void setpin_reset(GDisplay *g, bool_t state) {
|
|
|
|
(void) g;
|
|
|
|
(void) state;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set the lcd back-light level.
|
|
|
|
*
|
2013-10-19 05:38:00 +00:00
|
|
|
* @param[in] g The GDisplay structure
|
2013-07-21 15:42:25 +00:00
|
|
|
* @param[in] percent 0 to 100%
|
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void set_backlight(GDisplay *g, uint8_t percent) {
|
|
|
|
(void) g;
|
|
|
|
(void) percent;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Take exclusive control of the bus
|
|
|
|
*
|
2013-10-19 05:38:00 +00:00
|
|
|
* @param[in] g The GDisplay structure
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void acquire_bus(GDisplay *g) {
|
|
|
|
(void) g;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2013-10-19 05:38:00 +00:00
|
|
|
* @brief Release exclusive control of the bus
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
2013-10-19 05:38:00 +00:00
|
|
|
* @param[in] g The GDisplay structure
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void release_bus(GDisplay *g) {
|
|
|
|
(void) g;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2013-10-19 05:38:00 +00:00
|
|
|
* @brief Send data to the index register.
|
|
|
|
*
|
|
|
|
* @param[in] g The GDisplay structure
|
|
|
|
* @param[in] index The index register to set
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void write_index(GDisplay *g, uint16_t index) {
|
|
|
|
(void) g;
|
|
|
|
(void) index;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2013-10-19 05:38:00 +00:00
|
|
|
* @brief Send data to the lcd.
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
2013-10-19 05:38:00 +00:00
|
|
|
* @param[in] g The GDisplay structure
|
|
|
|
* @param[in] data The data to send
|
2013-07-21 15:42:25 +00:00
|
|
|
*
|
|
|
|
* @notapi
|
|
|
|
*/
|
2013-10-19 05:38:00 +00:00
|
|
|
static inline void write_data(GDisplay *g, uint16_t data) {
|
|
|
|
(void) g;
|
|
|
|
(void) data;
|
2013-07-21 15:42:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _GDISP_LLD_BOARD_H */
|
|
|
|
/** @} */
|