CooCox 1.1.4 on mbed with simple blinky example

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

OsArch.h File Reference

OsArch.h File Reference

Implement function declare related to Cortex-M3(ARM-v7) More...

Go to the source code of this file.

Functions

OS_STK * InitTaskContext (FUNCPtr task, void *param, OS_STK *pstk)
 Initial task context.
void SwitchContext (void)
 Do ready work to Switch Context for task change.
void SetEnvironment (OS_STK *pstk)
 Set environment for Coocox OS running.
U8 Inc8 (volatile U8 *data)
 Plus a byte integers and Saved into memory cell.
U8 Dec8 (volatile U8 *data)
 Decrease a byte integers and Saved into memory cell.
void IRQ_ENABLE_RESTORE (void)
 ENABLE Interrupt.
void IRQ_DISABLE_SAVE (void)
 Close Interrupt.

Variables

U64 OSTickCnt

Detailed Description

Implement function declare related to Cortex-M3(ARM-v7)

Version:
V1.1.4
Date:
2011.04.20

This header file including functions or defines related to Cortex-M3(ARM-v7).

INTERNAL FILE,DON'T PUBLIC.

© COPYRIGHT 2009 CooCox

Definition in file OsArch.h.


Function Documentation

U8 Dec8 ( volatile U8 *  data )

Decrease a byte integers and Saved into memory cell.

Parameters:
[in]databyte integers.
[out]None
Return values:
ReturnsOriginal value.
Description

This function is called to Decrease a byte integers and Saved into memory cell.

Definition at line 60 of file port.c.

U8 Inc8 ( volatile U8 *  data )

Plus a byte integers and Saved into memory cell.

Parameters:
[in]databyte integers.
[out]None
Return values:
ReturnsOriginal value.
Description

This function is called to Plus a byte integers and Saved into memory cell.

Definition at line 32 of file port.c.

OS_STK* InitTaskContext ( FUNCPtr  task,
void *  param,
OS_STK *  pstk 
)

Initial task context.

Parameters:
[in]taskEntry point of task.
[in]paramThe parameter pass to task.
[in]pstkThe pointer to stack top.
[out]None
Return values:
Returnslocation of new stack top.
Description

This function is called to initialize the stack frame of the task being created.

Definition at line 33 of file arch.c.

void IRQ_DISABLE_SAVE ( void   )

Close Interrupt.

Parameters:
[in]None
[out]None
Return values:
None
Description

This function is called to close Interrupt.

Definition at line 101 of file port.c.

void IRQ_ENABLE_RESTORE ( void   )

ENABLE Interrupt.

Parameters:
[in]None
[out]None
Return values:
None
Description

This function is called to ENABLE Interrupt.

Definition at line 85 of file port.c.

void SetEnvironment ( OS_STK *  pstk )

Set environment for Coocox OS running.

Set environment for run

Parameters:
[in]pstkstack pointer
[out]None
Return values:
None.
Description

This function is called to Set environment for Coocox OS running.

Definition at line 118 of file port.c.

void SwitchContext ( void   )

Do ready work to Switch Context for task change.

Switch context

Parameters:
[in]None
[out]None
Return values:
None.
Description

This function is called to Do ready work to Switch Context for task change

Definition at line 139 of file port.c.


Variable Documentation

U64 OSTickCnt

Counter for current system ticks. Initial context of task being created

Current system tick counter

Definition at line 17 of file arch.c.