Added a post_init_board() routine to SSD1289 to allow bus timings to be changed after controller initialisation is complete.

ugfx_release_2.6
inmarket 2013-10-17 17:33:04 +10:00
parent e1744e59ab
commit 8fb676f73b
4 changed files with 21 additions and 0 deletions

View File

@ -48,6 +48,10 @@ static inline void init_board(GDisplay *g, unsigned display) {
}
}
static inline void post_init_board(GDisplay *g) {
(void) g;
}
static inline void setpin_reset(GDisplay *g, bool_t state) {
(void) g;
(void) state;

View File

@ -98,6 +98,10 @@ static inline void init_board(GDisplay *g, unsigned display) {
}
}
static inline void post_init_board(GDisplay *g) {
(void) g;
}
static inline void setpin_reset(GDisplay *g, bool_t state) {
(void) g;
(void) state;

View File

@ -30,6 +30,16 @@
static inline void init_board(GDisplay *g, unsigned display) {
}
/**
* @brief After the initialisation.
*
* @param[in] g The GDisplay structure
*
* @notapi
*/
static inline void post_init_board(GDisplay *g) {
}
/**
* @brief Set or clear the lcd reset pin.
*

View File

@ -169,6 +169,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g, unsigned display) {
write_reg(g, 0x4f, 0x0000); gfxSleepMicroseconds(5);
write_reg(g, 0x4e, 0x0000); gfxSleepMicroseconds(5);
// Finish Init
post_init_board(g);
// Release the bus
release_bus(g);