TI MSP430

Texas Instruments MSP430 specific code. More...

Detailed Description

First steps

Files

file  msp430_common/include/time.h
 time.h for msp430
 

Macros

#define WORDSIZE   16
 Wordsize in bit for MSP430 platforms.
 
#define ISR(a, b)   void __attribute__((naked, interrupt (a))) b(void)
 Macro for defining interrupt service routines.
 

Functions

static void __disable_irq (void)
 Globally disable IRQs.
 
static void __enable_irq (void)
 Globally enable IRQs.
 
static void __save_context (void)
 Save the current thread context from inside an ISR.
 
static void __restore_context (void)
 Restore the thread context from inside an ISR.
 
static void __enter_isr (void)
 Run this code on entering interrupt routines.
 
static void __exit_isr (void)
 Run this code on exiting interrupt routines.
 
void msp430_cpu_init (void)
 Initialize the cpu.
 
static void cpu_print_last_instruction (void)
 Print the last instruction's address. More...
 

Variables

volatile int __irq_is_in
 The current ISR state (inside or not)
 
char __isr_stack [ISR_STACKSIZE]
 Memory used as stack for the interrupt context.
 

Function Documentation

◆ cpu_print_last_instruction()

static void cpu_print_last_instruction ( void  )
inlinestatic
Todo:
: Not supported

Definition at line 157 of file msp430_common/include/cpu.h.