|
Mobil_surveillance_system 1
|
00001 #ifndef INTERRUPTS_H_ 00002 #define INTERRUPTS_H_ 00003 00004 #include "msp430f2617.h" 00005 #include <string.h> // due to: NULL 00006 00008 00015 //***************************************************************************** 00016 // 00017 // Types and definitions 00018 // 00019 //***************************************************************************** 00020 00021 #ifndef DEFINE_TBOOLEAN // define unsigned char as tBoolean in only that case when it hasn't been defined yet somewhere else in the scope 00022 00024 typedef unsigned char tBoolean; // use as bool 00025 #define DEFINE_TBOOLEAN 00026 00027 #endif // DEFINE_TBOOLEAN 00028 00030 typedef void(*tpfInterruptsCallbackFunction) (void); 00031 00032 //***************************************************************************** 00033 // 00034 // Function declarations of init interrupts callbackfunction 00035 // 00036 //***************************************************************************** 00037 00042 void Interrupts_setUSCI0RX_ISRCallbackFunction(tpfInterruptsCallbackFunction pfUSCI0RX_ISRcallback); 00043 00044 00049 void Interrupts_setUSCI0TX_ISRCallbackFunction(tpfInterruptsCallbackFunction pfUSCI0TX_ISRcallback); 00050 00051 00056 void Interrupts_setUSCI1RX_ISRCallbackFunction(tpfInterruptsCallbackFunction pfUSCI1RX_ISRcallback); 00057 00058 00063 void Interrupts_setUSCI1TX_ISRCallbackFunction(tpfInterruptsCallbackFunction pfUSCI1TX_ISRcallback); 00064 00065 00070 void Interrupts_setTimerA_ISRCallbackFunction(tpfInterruptsCallbackFunction pfTimerA_ISRcallback); 00071 00072 //***************************************************************************** 00073 // 00074 // Function declarations of interrupts 00075 // 00076 //***************************************************************************** 00077 00078 00080 __interrupt void USCI1RX_ISR(void); 00081 00083 __interrupt void USCI1TX_ISR(void); 00084 00086 __interrupt void TimerA_ISR (void); 00087 00088 #endif /*INTERRUPTS_H_*/
1.7.4