SSD1289 fix

This commit is contained in:
Joel Bodenmann 2012-11-17 13:52:33 +01:00
parent 4119264fd6
commit 04cb37f834

View File

@ -45,10 +45,18 @@
* @notapi
*/
static __inline void init_board(void) {
// This should set the GPIO port up for the correct hardware config here
/* set pin modes in case of defaults by board files have been overwritten */
palSetBusMode(GDISP_DATA_PORT, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_CS, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_RS, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_WR, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_RD, PAL_MODE_OUTPUT_PUSHPULL);
// Configure the pins to a well know state
SET_RS; SET_RD; SET_WR; CLR_CS;
SET_RS;
SET_RD;
SET_WR;
CLR_CS;
}