interrupt handling

Dependencies:  

Committer:
rwclough
Date:
Thu Mar 05 20:16:40 2015 +0000
Revision:
2:bd5afc5aa139
Child:
3:eaae5433ab45
Correction to last commit: This program is NOT able to write/read TRF7970 registers! I don't know why not. ; According to my logic analyzer, 2 IRQs are generated. They are NOT recognized by this program. A simple test IRQ handler does recognize them.

Who changed what in which revision?

UserRevisionLine numberNew 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 2:bd5afc5aa139 7 void nfcModeIrq(uint8_t *Register);
rwclough 2:bd5afc5aa139 8 void targetIrq(uint8_t *Register);
rwclough 2:bd5afc5aa139 9 void howToHandleTrf7970Irq(uint8_t *irq_status);
rwclough 2:bd5afc5aa139 10 void trf7970IrqHandler(void);
rwclough 2:bd5afc5aa139 11
rwclough 2:bd5afc5aa139 12 // NFC and tag emulation settings
rwclough 2:bd5afc5aa139 13 #define NFC106AC 0x29
rwclough 2:bd5afc5aa139 14 #define NFC212AC 0x2A
rwclough 2:bd5afc5aa139 15 #define NFC424AC 0x2B
rwclough 2:bd5afc5aa139 16 #define NFC106PA 0x21
rwclough 2:bd5afc5aa139 17 #define NFC212PA 0x22
rwclough 2:bd5afc5aa139 18 #define NFC424PA 0x23
rwclough 2:bd5afc5aa139 19
rwclough 2:bd5afc5aa139 20 #define TAG14443A 0x24
rwclough 2:bd5afc5aa139 21 #define TAG14443B 0x25
rwclough 2:bd5afc5aa139 22 #define TAG15693 0x26
rwclough 2:bd5afc5aa139 23 #define TAGFelica 0x27
rwclough 2:bd5afc5aa139 24
rwclough 2:bd5afc5aa139 25 #define TAG106 0x00
rwclough 2:bd5afc5aa139 26 #define TAG212 0x21
rwclough 2:bd5afc5aa139 27 #define TAG424 0x42
rwclough 2:bd5afc5aa139 28 #define TAG848 0x63
rwclough 2:bd5afc5aa139 29
rwclough 2:bd5afc5aa139 30 #define FIFO_LEN 32
rwclough 2:bd5afc5aa139 31 #define FIFO_MORE 26
rwclough 2:bd5afc5aa139 32