Skip to content
Snippets Groups Projects
Commit e0d0014f authored by Edward Longman's avatar Edward Longman
Browse files

Remove redefinition of HAL_ISR_FUNC and include hal_types instead

parent 384b2132
No related branches found
No related tags found
No related merge requests found
...@@ -41,31 +41,8 @@ ...@@ -41,31 +41,8 @@
#include "msp430.h" #include "msp430.h"
#include "hal_timer.h" #include "hal_timer.h"
//#include "../radio_drv/hal_types.h" #include "../radio_drv/hal_types.h"
/*******************************************************************************
* GNU GCC specifics
*/
#if defined __GNUC__
#define CODE
#define XDATA
#define FAR
#define NOP() __no_operation()
#define HAL_ISR_FUNC_DECLARATION(f,v) \
void __attribute__((interrupt(v ## _VECTOR),used)) f(void)
#define HAL_ISR_FUNC_PROTOTYPE(f,v) \
void __attribute__((interrupt(v ## _VECTOR),used)) f(void)
#define HAL_ISR_FUNCTION(f,v) \
HAL_ISR_FUNC_PROTOTYPE(f,v); HAL_ISR_FUNC_DECLARATION(f,v)
typedef unsigned short istate_t;
/*******************************************************************************
* Other compilers
*/
#else
#error "Unsupported compiler"
#endif
unsigned char volatile timer_event; unsigned char volatile timer_event;
unsigned long volatile time_counter = 0; unsigned long volatile time_counter = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment