STM Nucleo-32 Common

Common files for STM Nucleo-32 boards. More...

Detailed Description

Common files for STM Nucleo-32 boards.

Files

file  nucleo32-common/include/arduino_board.h
 Board specific configuration for the Arduino API.
 
file  nucleo32-common/include/arduino_pinmap.h
 Mapping from MCU pins to Arduino pins.
 
file  nucleo32-common/include/board_common.h
 Common pin definitions and board configuration options.
 

Functions

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

Macros for controlling the on-board LED (LD3).

#define LED0_PIN   GPIO_PIN(PORT_B, 3)
 
#define LED0_MASK   (1 << 3)
 
#define LED0_ON   (GPIOB->BSRR = LED0_MASK)
 
#define LED0_OFF   (GPIOB->BSRR = (LED0_MASK << 16))
 
#define LED0_TOGGLE   (GPIOB->ODR ^= LED0_MASK)