COSA
An Object-Oriented Platform for Arduino Programming
Board.hh
Go to the documentation of this file.
1 
27 #ifndef COSA_BOARD_HH
28 #define COSA_BOARD_HH
29 
30 #include "Cosa/Types.h"
31 #include "Board.h"
32 
33 // Custom Boards
34 #if defined(COSA_CUSTOM_BOARD)
35 #include <Board.hh>
36 
37 // Arduino Boards
38 #elif defined(ARDUINO_DIECIMILA)
40 #elif defined(ARDUINO_DUEMILANOVE)
42 #elif defined(ARDUINO_LEONARDO)
44 #elif defined(ARDUINO_MEGA)
46 #elif defined(ARDUINO_MICRO)
48 #elif defined(ARDUINO_NANO)
50 #elif defined(ARDUINO_PRO_MICRO)
52 #elif defined(ARDUINO_PRO_MINI)
54 #elif defined(ARDUINO_UNO)
56 
57 // Breadboards
58 #elif defined(BREADBOARD_ATTINYX4)
60 #elif defined(BREADBOARD_ATTINYX5)
62 #elif defined(BREADBOARD_ATTINYX61)
64 #elif defined(BREADBOARD_ATMEGA328P)
66 #elif defined(BREADBOARD_ATMEGA1284P)
68 
69 // LilyPad Arduino Boards
70 #elif defined(LILYPAD_ARDUINO)
72 #elif defined(LILYPAD_ARDUINO_USB)
74 
75 #else
76 #error "Cosa/Board.hh: board not supported"
77 #endif
78 
81 
84 
86 extern const Board::PWMPin pwm_pin_map[Board::PWM_PIN_MAX] PROGMEM;
87 
88 #endif
89 
const Board::PWMPin pwm_pin_map[Board::PWM_PIN_MAX]
const Board::DigitalPin digital_pin_map[Board::DIGITAL_PIN_MAX]
const Board::AnalogPin analog_pin_map[Board::ANALOG_PIN_MAX]