firmware  v0.1.2
Chromation Spectrometer Dev-Kit
Flag.h
1 #ifndef _FLAG_H
2 #define _FLAG_H
3 #include <stdint.h>
4 //---Hardware types: register addresses and bit numbers---
5 typedef uint8_t volatile * const flag_reg; // i/o reg address
6 typedef uint8_t const flag_bit; // bit index into i/o reg
7 // Register address and bit definitions depend on compiler:
8  // "gcc" uses test/HardwareFake.h
9  // "avr-gcc" uses src/Hardware.h
10 // ---Registers---
11 extern flag_reg Flag_SpiFlags; // reg GPIOR0
12 // ---Bits---
13 extern flag_bit Flag_SlaveRx; // bit GPIOR00
14 extern flag_bit Flag_TransferDone; // bit GPIOR01
15 
16 // ---Throwaway function to test plumbing---
17 void Flag(void);
18 
19 #endif // _FLAG_H