Published 03 Dec 2010, by
Eric Ebert
CoOS,
rtos
Implement function declare related to Cortex-M3(ARM-v7)
More...
Go to the source code of this file.
Defines |
| #define | RELOAD_VAL ((U32)(( (U32)CFG_CPU_FREQ) / (U32)CFG_SYSTICK_FREQ) -1) |
| #define | NVIC_SYS_PRI3 (*((volatile U32 *)0xE000ED20)) |
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.3
- Date:
- 2010.04.26
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.
Define Documentation
| #define NVIC_SYS_PRI3 (*((volatile U32 *)0xE000ED20)) |
Initialize PendSV,SVC and SysTick interrupt priority to lowest.
Definition at line 32 of file OsArch.h.
| #define RELOAD_VAL ((U32)(( (U32)CFG_CPU_FREQ) / (U32)CFG_SYSTICK_FREQ) -1) |
Initial System tick.
Definition at line 25 of file OsArch.h.
Function Documentation
| U8 Dec8 |
( |
volatile U8 * |
data ) |
|
Decrease a byte integers and Saved into memory cell.
- Parameters:
-
| [in] | data | byte integers. |
| [out] | None | |
- Return values:
-
- 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] | data | byte integers. |
| [out] | None | |
- Return values:
-
- 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] | task | Entry point of task. |
| [in] | param | The parameter pass to task. |
| [in] | pstk | The pointer to stack top. |
| [out] | None | |
- Return values:
-
| Returns | location 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:
-
- Return values:
-
- Description
This function is called to close Interrupt.
Definition at line 101 of file port.c.
| void IRQ_ENABLE_RESTORE |
( |
void |
) |
|
ENABLE Interrupt.
- Parameters:
-
- Return values:
-
- 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] | pstk | stack pointer |
| [out] | None | |
- Return values:
-
- 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:
-
- Return values:
-
- 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
Counter for current system ticks. Initial context of task being created
Current system tick counter
Definition at line 17 of file arch.c.