tr_port.h File Reference


Detailed Description

MSP430/GCC port of the RTOS.

Definition in file msp430_gcc/tr_port.h.

#include "proj_config.h"
#include <io.h>
#include <signal.h>
#include <stdint.h>
#include <tiros/tr_time.h>
#include "porttime.h"

Include dependency graph for msp430_gcc/tr_port.h:

Go to the source code of this file.

Defines

#define subtime_t   uint16_t
#define LT_INLINE   static inline
#define TRPORT_INF_TIME   {~0 , ~0 }
#define TIROS_REGISTER_PASSING
#define ILLEGAL_STACK   ((osstkptr_t) ~0)
#define ILLEGAL_ADDR   ((osptr_t) ~0)
#define OS_PORT_CRITICAL_ENABLE()   /*@unused@*/ osword_t osint_int_status
#define OS_PORT_ISR_BEGIN()
#define OS_PORT_CRITICAL_BEGIN()
#define OS_PORT_CRITICAL_END()   asm volatile("bis %0, r2 \n\t" : : "r" (osint_int_status) );
#define OS_PORT_INT_ENABLE()   _EINT()
#define OS_PORT_INT_DISABLE()   _DINT()
#define MSP430_INIT_STACK_OCCUPANCY   14
#define TRPORT_MIN_CTXT_SZ   (MSP430_INIT_STACK_OCCUPANCY + 1 )
#define HALINT_CTXT_SAVE()
#define PORT_WAKEUP_RESPONSE_SUBUNITS   40
#define TRPORT_RESPONSE_TIME   {0, PORT_WAKEUP_RESPONSE_SUBUNITS }
#define TRPORT_MSP_OSTIMER   A
#define TIROS_KERNEL_TRAP_ENABLED   1
#define KTRAP_PIN   BIT5

Typedefs

typedef uintptr_t osword_t
typedef void * osptr_t
typedef osword_tosstkptr_t
typedef void(*) osfnptr_t (void *)
typedef uintptr_t osptrword_t

Functions

static void hal_retval_set (osstkptr_t stackptr, osptr_t retval)
static void hal_ctxt_load (osstkptr_t ctxt_ptr)
static void OS_KERNEL_TRAP (void)


TiROS User Manual: Last Updated on Fri Jul 20 10:52:23 2007