diff --git a/firmware/boards/f1_rev3/board.c b/firmware/boards/f1_rev3/board.c index a481eb9..7aae2f5 100644 --- a/firmware/boards/f1_rev3/board.c +++ b/firmware/boards/f1_rev3/board.c @@ -30,6 +30,9 @@ const PALConfig pal_default_config = {VAL_GPIOCODR, VAL_GPIOCCRL, VAL_GPIOCCRH}, {VAL_GPIODODR, VAL_GPIODCRL, VAL_GPIODCRH}, {VAL_GPIOEODR, VAL_GPIOECRL, VAL_GPIOECRH}, + /* Following GPIO ports are not balled out on 64 pin package, but still needs to be set to safe state */ + {VAL_GPIOFODR, VAL_GPIOFCRL, VAL_GPIOFCRH}, + {VAL_GPIOGODR, VAL_GPIOGCRL, VAL_GPIOGCRH}, }; #endif diff --git a/firmware/boards/f1_rev3/board.h b/firmware/boards/f1_rev3/board.h index ace74c5..ce42d2e 100644 --- a/firmware/boards/f1_rev3/board.h +++ b/firmware/boards/f1_rev3/board.h @@ -146,6 +146,22 @@ #define VAL_GPIOECRH 0x88888888 /* PE15...PE8 */ #define VAL_GPIOEODR 0x0000FFFF +/* + * Port F setup. + * Everything input with pull-up expect: + */ +#define VAL_GPIOFCRL 0x88888888 /* PF7...PF0 */ +#define VAL_GPIOFCRH 0x88888888 /* PF15...PF8 */ +#define VAL_GPIOFODR 0xFFFFFFFF + +/* + * Port G setup. + * Everything input with pull-up expect: + */ +#define VAL_GPIOGCRL 0x88888888 /* PG7...PG0 */ +#define VAL_GPIOGCRH 0x88888888 /* PG15...PG8 */ +#define VAL_GPIOGODR 0xFFFFFFFF + /* * USB bus activation macro, required by the USB driver. */