cpu.h File Reference

Texas Instruments MSP430 specific code. More...

Detailed Description

Texas Instruments MSP430 specific code.

Definition in file cpu.h.

#include <stdio.h>
#include <msp430.h>
#include "board.h"
#include "sched.h"
#include "thread.h"
#include "cpu_conf.h"
+ Include dependency graph for 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 __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)