more SSD1289 and touchscreen workaround

This commit is contained in:
Joel Bodenmann 2012-11-17 14:05:23 +01:00
parent 04cb37f834
commit 8515ed53f5
2 changed files with 4 additions and 2 deletions

View File

@ -45,8 +45,7 @@
* @notapi * @notapi
*/ */
static __inline void init_board(void) { static __inline void init_board(void) {
/* set pin modes in case of defaults by board files have been overwritten */ palSetGroupMode(GDISP_DATA_PORT, PAL_WHOLE_PORT, 0, PAL_MODE_OUTPUT_PUSHPULL);
palSetBusMode(GDISP_DATA_PORT, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_CS, 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_RS, PAL_MODE_OUTPUT_PUSHPULL);
palSetPadMode(GDISP_CMD_PORT, GDISP_WR, PAL_MODE_OUTPUT_PUSHPULL); palSetPadMode(GDISP_CMD_PORT, GDISP_WR, PAL_MODE_OUTPUT_PUSHPULL);

View File

@ -294,7 +294,10 @@ void tsCalibrate(void) {
int32_t px, py; int32_t px, py;
uint8_t i, j; uint8_t i, j;
#if GDISP_NEED_CONTROL
gdispSetOrientation(GDISP_ROTATE_0); gdispSetOrientation(GDISP_ROTATE_0);
#endif
gdispClear(Blue); gdispClear(Blue);
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter); gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);