f4vi1/include/board.h File Reference

Board specific definitions for the f4vi1 board. More...

Detailed Description

Board specific definitions for the f4vi1 board.

Author
Stefan Pfeiffer pfeif.nosp@m.fer@.nosp@m.inf.f.nosp@m.u-be.nosp@m.rlin..nosp@m.de
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file f4vi1/include/board.h.

#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for f4vi1/include/board.h:

Go to the source code of this file.

Macros

LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(PORT_A, 1)
 
#define LED1_PIN   GPIO_PIN(PORT_A, 3)
 
#define LED2_PIN   GPIO_PIN(PORT_A, 2)
 
#define LED_PORT   GPIOA
 
#define LED0_MASK   (1 << 1)
 
#define LED1_MASK   (1 << 3)
 
#define LED2_MASK   (1 << 2)
 
#define LED0_ON   (LED_PORT->BSRR = LED0_MASK)
 
#define LED0_OFF   (LED_PORT->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (LED_PORT->ODR ^= LED0_MASK)
 
#define LED1_ON   (LED_PORT->BSRR = LED1_MASK)
 
#define LED1_OFF   (LED_PORT->BSRR = (LED1_MASK << 16))
 
#define LED1_TOGGLE   (LED_PORT->ODR ^= LED1_MASK)
 
#define LED2_ON   (LED_PORT->BSRR = LED2_MASK)
 
#define LED2_OFF   (LED_PORT->BSRR = (LED2_MASK << 16))
 
#define LED2_TOGGLE   (LED_PORT->ODR ^= LED2_MASK)
 

Functions

void board_init (void)
 Initialize board specific hardware, including clock, LEDs and std-IO.