- Page 1 and 2:
CooCox CoOS User's Guide Revision 1
- Page 3 and 4:
1 OverView 1.1 About CooCox CoOS Co
- Page 5 and 6:
1.2 CooCox CoOS getting started Thi
- Page 7 and 8:
1.2.3 Write application code Open '
- Page 9 and 10:
void taskB (void* pdata) { for (;;)
- Page 11 and 12:
2 Task Management 2.1 Task During O
- Page 13 and 14:
TASK_WAITTING CoDelTask() Set event
- Page 15 and 16:
stkPtr: prio: state: taskID: A poin
- Page 17 and 18:
2.4 Task Ready List CooCox CoOS lin
- Page 19 and 20:
Code 4 Task with a higher priority
- Page 21 and 22:
2.7 Interrupts In CooCox CoOS, the
- Page 23 and 24:
Code 1 System tick interrupt handli
- Page 25 and 26:
3.3 Software Timer Software timer i
- Page 27 and 28:
4 Memory Management 4.1 Static Memo
- Page 29 and 30:
Assigned memory block list 50 100 2
- Page 31 and 32:
while allocate the memory. To all t
- Page 33 and 34:
4.3 Stack Overflow Check Stack Over
- Page 35 and 36:
Code 2 The use of the semaphore voi
- Page 37 and 38:
Code 3 The use of the mutex section
- Page 39 and 40:
Code5 Wait for multiple flags void
- Page 41 and 42:
You can create a mailbox by calling
- Page 43 and 44:
6 API Reference 6.1 System Manageme
- Page 45 and 46:
6.1.3 CoEnterISR() Function Prototy
- Page 47 and 48:
tasks so as to protect the critical
- Page 49 and 50:
6.2 Task Management 6.2.1 CoCreateT
- Page 51 and 52:
Function Prototype: OS_TID CoCreate
- Page 53 and 54:
void CoExitTask(void); Description:
- Page 55 and 56:
#include "CCRTOS.h" void TaskN (voi
- Page 57 and 58:
#include "CCRTOS.h" void TaskN (voi
- Page 59 and 60:
Returns: E_INVALID_ID, E_OK, Exampl
- Page 61 and 62:
Example Usage: #include "CCRTOS.h"
- Page 63 and 64:
Description: Delay a task for a spe
- Page 65 and 66:
Example Usage: #include "CCRTOS.h"
- Page 67 and 68:
The ID of the specified timer Retur
- Page 69 and 70:
Returns: E_OK, Get the current coun
- Page 71 and 72: 6.5 Memory Management 6.5.1 CoKmall
- Page 73 and 74: Description: Create a memory partit
- Page 75 and 76: 6.5.5 CoGetMemoryBuffer() Function
- Page 77 and 78: Example usage: #include "CCRTOS.h"
- Page 79 and 80: 6.6 Mutex Section 6.6.1 CoCreateMut
- Page 81 and 82: [in] muterID the designated mutex s
- Page 83 and 84: Note: None 6.7.2 CoDelSem() Functio
- Page 85 and 86: Example usage: Note: #include "CCRT
- Page 87 and 88: Example usage: #include "CCRTOS.h"
- Page 89 and 90: 6.7.6 isr_PostSem() Function Protot
- Page 91 and 92: 6.8.2 CoDelMbox() Function Prototyp
- Page 93 and 94: Example usage: #include "CCRTOS.h"
- Page 95 and 96: Example usage: #include "CCRTOS.h"
- Page 97 and 98: Example usage: #include "CCRTOS.h"
- Page 99 and 100: 6.9 Message Queues 6.9.1 CoCreateQu
- Page 101 and 102: E_INVALID_PARAMETER, invalid parame
- Page 103 and 104: 6.9.4 CoPendQueueMail() Function Pr
- Page 105 and 106: Note: 1)This function runs a task s
- Page 107 and 108: Note: If the number of the message
- Page 109 and 110: 6.10 Flags 6.10.1 CoCreateFlag() Fu
- Page 111 and 112: E_OK, Example usage: Delete success
- Page 113 and 114: OPT_WAIT_ALL, Wait for all the flag
- Page 115 and 116: Example usage: #include "CCRTOS.h"
- Page 117 and 118: Example usage: #include "CCRTOS.h"
- Page 119 and 120: Returns: E_INVALID_ID, E_OK, Exampl
- Page 121: 6.11 System Utilities 6.11.1 CoTick
- Page 125: Returns: None Example usage: void C