nz32-sc151/include/board.h File Reference

Board specific definitions for the nz32-sc151 board. More...

Detailed Description

Board specific definitions for the nz32-sc151 board.

Author
Francisco Molina franc.nosp@m.isco.nosp@m..moli.nosp@m.na@i.nosp@m.nria..nosp@m.cl

Definition in file nz32-sc151/include/board.h.

#include <stdint.h>
#include "cpu.h"
#include "periph_conf.h"
+ Include dependency graph for nz32-sc151/include/board.h:

Go to the source code of this file.

Macros

User LED pin definitions and handlers
#define LED0_PIN   GPIO_PIN(PORT_B, 2)
 
#define LED0_MASK   (1 << 2)
 
#define LED0_ON   (GPIOB->BSRR = LED0_MASK)
 
#define LED0_OFF   (GPIOB->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (GPIOB->ODR ^= LED0_MASK)
 

Functions

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