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

Add the used attribute to force inlclusion of isr from library

parent 9a9d3fbb
No related branches found
No related tags found
No related merge requests found
...@@ -20,11 +20,8 @@ link_directories( ...@@ -20,11 +20,8 @@ link_directories(
add_executable(${PROJECT_NAME}_min test/min.c lib/hal_mcu/hal_mcu.c) add_executable(${PROJECT_NAME}_min test/min.c lib/hal_mcu/hal_mcu.c)
target_link_libraries(${PROJECT_NAME}_min uart_drv) target_link_libraries(${PROJECT_NAME}_min uart_drv)
add_executable(${PROJECT_NAME}_min2 test/min2.c lib/hal_mcu/hal_mcu.c add_executable(${PROJECT_NAME}_min2 test/min2.c lib/hal_mcu/hal_mcu.c)
lib/uart_drv/uart_drv.c target_link_libraries(${PROJECT_NAME}_min2 uart_drv)
lib/uart_drv/circ_buf.c
lib/uart_drv/ee_printf.c)
target_link_libraries(${PROJECT_NAME}_min2)
add_executable(${PROJECT_NAME}_rxer test/LaunchPad_trx_main.c test/LaunchPad_trx_demo.c) add_executable(${PROJECT_NAME}_rxer test/LaunchPad_trx_main.c test/LaunchPad_trx_demo.c)
target_link_libraries(${PROJECT_NAME}_rxer hal_mcu radio_drv) target_link_libraries(${PROJECT_NAME}_rxer hal_mcu radio_drv)
......
...@@ -232,9 +232,9 @@ typedef unsigned short istate_t; ...@@ -232,9 +232,9 @@ typedef unsigned short istate_t;
#define FAR #define FAR
#define NOP() __no_operation() #define NOP() __no_operation()
#define HAL_ISR_FUNC_DECLARATION(f,v) \ #define HAL_ISR_FUNC_DECLARATION(f,v) \
void __attribute__((interrupt(v ## _VECTOR))) f(void) void __attribute__((interrupt(v ## _VECTOR),used)) f(void)
#define HAL_ISR_FUNC_PROTOTYPE(f,v) \ #define HAL_ISR_FUNC_PROTOTYPE(f,v) \
void __attribute__((interrupt(v ## _VECTOR))) f(void) void __attribute__((interrupt(v ## _VECTOR),used)) f(void)
#define HAL_ISR_FUNCTION(f,v) \ #define HAL_ISR_FUNCTION(f,v) \
HAL_ISR_FUNC_PROTOTYPE(f,v); HAL_ISR_FUNC_DECLARATION(f,v) HAL_ISR_FUNC_PROTOTYPE(f,v); HAL_ISR_FUNC_DECLARATION(f,v)
......
...@@ -160,3 +160,5 @@ void uart_reset_rx_end_of_str(void); ...@@ -160,3 +160,5 @@ void uart_reset_rx_end_of_str(void);
* Enable and disable echoing of all RX'ed trafic to the TX * Enable and disable echoing of all RX'ed trafic to the TX
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
void uart_drv_toggle_echo(void); void uart_drv_toggle_echo(void);
HAL_ISR_FUNC_PROTOTYPE(eUSCI_isr, EUSCI_A0);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment