embest DMSTF4BB board fix - removed FSMC suffix because only FSMC exists

ugfx_release_2.6
Joel Bodenmann 2013-03-08 09:20:51 +01:00
parent e9cb6aa17a
commit f552098116
3 changed files with 5 additions and 3 deletions

View File

@ -58,8 +58,8 @@
#if defined(GDISP_USE_CUSTOM_BOARD) && GDISP_USE_CUSTOM_BOARD
/* Include the user supplied board definitions */
#include "gdisp_lld_board.h"
#elif defined(BOARD_EMBEST_DMSTF4BB_FSMC)
#include "gdisp_lld_board_embest_dmstf4bb_fsmc.h"
#elif defined(BOARD_EMBEST_DMSTF4BB)
#include "gdisp_lld_board_embest_dmstf4bb.h"
#else
/* Include the user supplied board definitions */
#include "gdisp_lld_board.h"

View File

@ -42,7 +42,9 @@ static const I2CConfig i2ccfg2 = {
* @notapi
*/
static inline void init_board(void) {
palSetPadMode(GPIOC, 13, PAL_MODE_INPUT);
palSetPadMode(GPIOC, 13, PAL_MODE_INPUT); /* TP IRQ */
palSetPadMode(GPIOB, 10, PAL_MODE_ALTERNATE(4)); /* I2C2 SCL */
palSetPadMode(GPIOB, 11, PAL_MODE_ALTERNATE(4)); /* I2C2 SDA */
i2cStart(&I2CD2, &i2ccfg2);
}