Added a post_init_board() routine to SSD1289 to allow bus timings to be changed after controller initialisation is complete.
This commit is contained in:
parent
e1744e59ab
commit
8fb676f73b
4 changed files with 21 additions and 0 deletions
|
@ -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) {
|
static inline void setpin_reset(GDisplay *g, bool_t state) {
|
||||||
(void) g;
|
(void) g;
|
||||||
(void) state;
|
(void) state;
|
||||||
|
|
|
@ -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) {
|
static inline void setpin_reset(GDisplay *g, bool_t state) {
|
||||||
(void) g;
|
(void) g;
|
||||||
(void) state;
|
(void) state;
|
||||||
|
|
|
@ -30,6 +30,16 @@
|
||||||
static inline void init_board(GDisplay *g, unsigned display) {
|
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.
|
* @brief Set or clear the lcd reset pin.
|
||||||
*
|
*
|
||||||
|
|
|
@ -169,6 +169,9 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g, unsigned display) {
|
||||||
write_reg(g, 0x4f, 0x0000); gfxSleepMicroseconds(5);
|
write_reg(g, 0x4f, 0x0000); gfxSleepMicroseconds(5);
|
||||||
write_reg(g, 0x4e, 0x0000); gfxSleepMicroseconds(5);
|
write_reg(g, 0x4e, 0x0000); gfxSleepMicroseconds(5);
|
||||||
|
|
||||||
|
// Finish Init
|
||||||
|
post_init_board(g);
|
||||||
|
|
||||||
// Release the bus
|
// Release the bus
|
||||||
release_bus(g);
|
release_bus(g);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue