Commit 2e57aefc authored by Franck Rousseau's avatar Franck Rousseau
Browse files

Adapt to msp430-gcc 6.4.0.32

parent 38175262
......@@ -101,18 +101,17 @@
#elif (defined __GNUC__) && (defined __MSP430__)
#define BSP_COMPILER_MSP430_GCC
#include <io.h>
#include <signal.h>
#include <iomacros.h>
#include <msp430.h>
#include <stdint.h>
#define __bsp_ISTATE_T__ uint16_t
#define __bsp_ISR_FUNCTION__(f,v) interrupt (v) f(void)
#define __bsp_ENABLE_INTERRUPTS__() eint()
#define __bsp_DISABLE_INTERRUPTS__() dint()
#define __bsp_INTERRUPTS_ARE_ENABLED__() (READ_SR & 0x8)
#define __bsp_GET_ISTATE__() (READ_SR & 0x8)
#define __bsp_RESTORE_ISTATE__(x) st(if((x&GIE))_BIS_SR(GIE);)
#define BSP_EARLY_INIT(void) int _msp430gcc_pre_init(void)
#define __bsp_ISR_FUNCTION__(f,v) __attribute__ ((interrupt (v))) void f(void)
#define __bsp_ENABLE_INTERRUPTS__() st(_no_operation();_enable_interrupts();)
#define __bsp_DISABLE_INTERRUPTS__() _disable_interrupts()
#define __bsp_INTERRUPTS_ARE_ENABLED__() (_get_SR_register() & 0x8)
#define __bsp_GET_ISTATE__() (_get_SR_register() & 0x8)
#define __bsp_RESTORE_ISTATE__(x) st(if((x&GIE)){_BIS_SR(GIE);__nop();})
#define BSP_EARLY_INIT(void) static int __attribute__((naked, section(".crt_0042"), used)) _msp430gcc_pre_init(void)
/* ------------------ Unrecognized Compiler ------------------ */
#else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment