Shared Arduino Due Code

Shared code for Arduino Due based boards. More...

Detailed Description

Shared code for Arduino Due based boards.

Files

file  common/arduino-due/include/arduino_board.h
 Board specific configuration for the Arduino API.
 
file  common/arduino-due/include/arduino_pinmap.h
 Mapping from MCU pins to Arduino pins.
 
file  common/arduino-due/include/board.h
 Board specific definitions for the Arduino Due based boards.
 
file  boards/common/arduino-due/include/periph_conf.h
 Peripheral MCU configuration for Arduino Due based boards.
 

Functions

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

LED pin definitions

#define LED0_PIN   GPIO_PIN(PB, 27)
 
#define LED0_ON   (PIOB->PIO_SODR = PIO_PB27)
 
#define LED0_OFF   (PIOB->PIO_CODR = PIO_PB27)
 
#define LED0_TOGGLE   ((PIOB->PIO_ODSR & PIO_PB27) ? LED0_OFF : LED0_ON)