firmware  v0.1.2
Chromation Spectrometer Dev-Kit
Hardware.h
Go to the documentation of this file.
1 
5 #ifndef _HARDWARE_H
6 #define _HARDWARE_H
7 // avr libs
8 // TODO(sustainablelab): are these includes redundant with -includeavr/interrupt.h and -includeavr/io.h ?
9 #include <avr/interrupt.h> // defines macro ISR()
10 #include <avr/io.h> // includes iom328p.h for hardware i/o values
11 // all hardware libs have hardware definitions
12 // add those definitions here ("-Hardware.h")
13 // for inclusion in the main() translation unit
14 #include "BiColorLed-Hardware.h"
15 #ifdef LIS
16 #include "Lis-Hardware.h"
17 #endif
18 #ifdef S13131
19 #include "S13131-Hardware.h"
20 #endif
21 // TODO(sustainablelab): Confirm OK to delete SpiSlave-Hardware.h
22 /* #include "SpiSlave-Hardware.h" */
23 #include "Spi-Hardware.h"
24 #include "UartSpi-Hardware.h"
25 #include "Flag-Hardware.h"
26 
27 #endif // _HARDWARE_H
Flag uses AVR GPIOR registers for direct-bit access to flags.
Lis uses general purpose I/O pins and a PWM pin to communicate with the Dynamax LIS-770i linear photo...
S13131 uses general purpose I/O pins and a PWM pin to communicate with the Hamamatu S13131-512 CMOS i...
UartSpi uses internal UART module in SPI Master Mode.