f4vi1/include/board.h

Board specific definitions for the f4vi1 board.

LED0_PIN
1
GPIO_PIN(PORT_A, 1)
LED1_PIN
1
GPIO_PIN(PORT_A, 3)
LED2_PIN
1
GPIO_PIN(PORT_A, 2)
LED_PORT
1
GPIOA
LED0_MASK
1
(1 << 1)
LED1_MASK
1
(1 << 3)
LED2_MASK
1
(1 << 2)
LED0_ON
1
(LED_PORT->BSRR = LED0_MASK)
LED0_OFF
1
(LED_PORT->BSRR = (LED0_MASK << 16))
LED0_TOGGLE
1
(LED_PORT->ODR  ^= LED0_MASK)
LED1_ON
1
(LED_PORT->BSRR = LED1_MASK)
LED1_OFF
1
(LED_PORT->BSRR = (LED1_MASK << 16))
LED1_TOGGLE
1
(LED_PORT->ODR  ^= LED1_MASK)
LED2_ON
1
(LED_PORT->BSRR = LED2_MASK)
LED2_OFF
1
(LED_PORT->BSRR = (LED2_MASK << 16))
LED2_TOGGLE
1
(LED_PORT->ODR  ^= LED2_MASK)
void board_init(void)

Initialize board specific hardware, including clock, LEDs and std-IO.