ARMEBS4  revision-26.06.2015
bsp_stm32f4_geval.c
1 #if defined (BOARD_STM32F4_GEVAL)
2 #include "heivs/bsp.h"
3 #include "heivs/retarget.h"
4 
5 static const struct gpio_t bsp_leds[BSP_LED_NR] =
6 {
7  xxx
12 };
13 
14 static void bsp_leds_init(void)
15 {
16  gpio_setup_list(bsp_leds, BSP_LED_NR);
17 }
18 
19 status_e bsp_init(void)
20 {
21  status_e status;
22 
23  time_init();
24 
25  bsp_leds_init();
26 
27  retarget_init();
28 
29  return NO_ERROR;
30 }
31 
32 
33 
34 #endif
BSP - Board Support Package.
stdio redirection
Output (default 1)
Definition: stm32_gpio.h:53
Output speed : 100 MHz.
Definition: stm32_gpio.h:77
#define DEF_GPIOD(__PIN, __MODE)
same as DEF_GPIOA for port D
Definition: stm32_gpio.h:362
GPIO control structure.
Definition: stm32_gpio.h:96
#define BSP_LED_NR
Number of LEDs.
Definition: bsp_armebs4.h:20
Output type : Push-Pull.
Definition: stm32_gpio.h:62
Output (default 0)
Definition: stm32_gpio.h:50
status_e gpio_setup_list(const struct gpio_t gpio[], size_t len)
Setup an array of gpio.
Definition: stm32_gpio.c:47
status_e
Known errors.
Definition: error.h:21
No error.
Definition: error.h:28
status_e bsp_init(void)
Initialize the whole board.
Definition: bsp_armebs4.c:525