Skip to content

Commit

Permalink
Add default GPIOs (both F4 and F7)
Browse files Browse the repository at this point in the history
Related work items: #72
  • Loading branch information
antoniofagundes authored and josesimoes committed May 18, 2020
1 parent 9ef2456 commit 9a91998
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ int main(void) {
// and performs the board-specific initializations.
halInit();

// set default values for GPIOs
palClearPad(GPIOE, GPIOE_PIN4);
palClearLine(LINE_RELAY);
palSetPad(GPIOJ, GPIOJ_PIN13);
palSetPad(GPIOJ, GPIOJ_PIN14);
palClearLine(LINE_LCD_ENABLE);

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)
SwoInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ int main(void) {
// HAL initialization, this also initializes the configured device drivers
// and performs the board-specific initializations.
halInit();

// set default values for GPIOs
palClearPad(GPIOE, GPIOE_PIN4);
palClearLine(LINE_RELAY);
palSetPad(GPIOJ, GPIOJ_PIN13);
palSetPad(GPIOJ, GPIOJ_PIN14);
palClearLine(LINE_LCD_ENABLE);

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ int main(void) {
// and performs the board-specific initializations.
halInit();

// set default values for GPIOs
palClearPad(GPIOE, GPIOE_PIN4);
palClearLine(LINE_RELAY);
palSetPad(GPIOJ, GPIOJ_PIN13);
palSetPad(GPIOJ, GPIOJ_PIN14);
palClearLine(LINE_LCD_ENABLE);

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)
SwoInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ int main(void) {
// and performs the board-specific initializations.
halInit();

// set default values for GPIOs
palClearPad(GPIOE, GPIOE_PIN4);
palClearLine(LINE_RELAY);
palSetPad(GPIOJ, GPIOJ_PIN13);
palSetPad(GPIOJ, GPIOJ_PIN14);
palClearLine(LINE_LCD_ENABLE);

// init SWO as soon as possible to make it available to output ASAP
#if (SWO_OUTPUT == TRUE)
SwoInit();
Expand Down

0 comments on commit 9a91998

Please sign in to comment.