interrupt handling
interruptStuff.h@3:eaae5433ab45, 2015-03-12 (annotated)
- Committer:
- rwclough
- Date:
- Thu Mar 12 15:05:36 2015 +0000
- Revision:
- 3:eaae5433ab45
- Parent:
- 2:bd5afc5aa139
- Child:
- 4:9ab0d84bbd07
Finally getting many, many IRQs. Now to see what's going on :)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rwclough | 2:bd5afc5aa139 | 1 | /* |
rwclough | 2:bd5afc5aa139 | 2 | Header file for interruptHandler.cpp |
rwclough | 2:bd5afc5aa139 | 3 | */ |
rwclough | 2:bd5afc5aa139 | 4 | |
rwclough | 2:bd5afc5aa139 | 5 | void setupIrq(void); |
rwclough | 2:bd5afc5aa139 | 6 | void readIrqStatus(uint8_t *buffer); |
rwclough | 3:eaae5433ab45 | 7 | void resetIrqStatus(void); |
rwclough | 2:bd5afc5aa139 | 8 | void nfcModeIrq(uint8_t *Register); |
rwclough | 2:bd5afc5aa139 | 9 | void targetIrq(uint8_t *Register); |
rwclough | 2:bd5afc5aa139 | 10 | void howToHandleTrf7970Irq(uint8_t *irq_status); |
rwclough | 2:bd5afc5aa139 | 11 | void trf7970IrqHandler(void); |
rwclough | 3:eaae5433ab45 | 12 | void myIntHandler(void); |
rwclough | 2:bd5afc5aa139 | 13 | |
rwclough | 2:bd5afc5aa139 | 14 | // NFC and tag emulation settings |
rwclough | 2:bd5afc5aa139 | 15 | #define NFC106AC 0x29 |
rwclough | 2:bd5afc5aa139 | 16 | #define NFC212AC 0x2A |
rwclough | 2:bd5afc5aa139 | 17 | #define NFC424AC 0x2B |
rwclough | 2:bd5afc5aa139 | 18 | #define NFC106PA 0x21 |
rwclough | 2:bd5afc5aa139 | 19 | #define NFC212PA 0x22 |
rwclough | 2:bd5afc5aa139 | 20 | #define NFC424PA 0x23 |
rwclough | 2:bd5afc5aa139 | 21 | |
rwclough | 2:bd5afc5aa139 | 22 | #define TAG14443A 0x24 |
rwclough | 2:bd5afc5aa139 | 23 | #define TAG14443B 0x25 |
rwclough | 2:bd5afc5aa139 | 24 | #define TAG15693 0x26 |
rwclough | 2:bd5afc5aa139 | 25 | #define TAGFelica 0x27 |
rwclough | 2:bd5afc5aa139 | 26 | |
rwclough | 2:bd5afc5aa139 | 27 | #define TAG106 0x00 |
rwclough | 2:bd5afc5aa139 | 28 | #define TAG212 0x21 |
rwclough | 2:bd5afc5aa139 | 29 | #define TAG424 0x42 |
rwclough | 2:bd5afc5aa139 | 30 | #define TAG848 0x63 |
rwclough | 2:bd5afc5aa139 | 31 | |
rwclough | 2:bd5afc5aa139 | 32 | #define FIFO_LEN 32 |
rwclough | 2:bd5afc5aa139 | 33 | #define FIFO_MORE 26 |
rwclough | 2:bd5afc5aa139 | 34 |