board.h File Reference

Board specific configuration for the ACD52832. More...

Detailed Description

Board specific configuration for the ACD52832.

For more information: http://aconno.de/acd52832/

Author
Dimitri Nahm dimit.nosp@m.ri.n.nosp@m.ahm@h.nosp@m.aw-h.nosp@m.ambur.nosp@m.g.de

Definition in file board.h.

#include "cpu.h"
+ Include dependency graph for board.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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

LED pin configuration

#define LED0_PIN   GPIO_PIN(0, 26)
 
#define LED_PORT   (NRF_P0)
 
#define LED0_MASK   (1 << 26)
 
#define LED0_ON   (LED_PORT->OUTCLR = LED0_MASK)
 
#define LED0_OFF   (LED_PORT->OUTSET = LED0_MASK)
 
#define LED0_TOGGLE   (LED_PORT->OUT ^= LED0_MASK)
 

Button pin configuration

#define BTN0_PIN   GPIO_PIN(0, 25)
 
#define BTN0_MODE   GPIO_IN_PU