msp430_common/include/cpu.h File Reference

Texas Instruments MSP430 specific code. More...

Detailed Description

Texas Instruments MSP430 specific code.

Definition in file msp430_common/include/cpu.h.

#include <stdio.h>
#include <msp430.h>
#include "board.h"
#include "sched.h"
#include "thread.h"
#include "msp430_types.h"
#include "cpu_conf.h"
+ Include dependency graph for msp430_common/include/cpu.h:

Go to the source code of this file.

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.