⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ucosman.ps

📁 UCSO在三星S3C44B0X CPU上的移植。ejoy it
💻 PS
📖 第 1 页 / 共 4 页
字号:
2 F(SEE ALSO) 108 410.33 T3 11 Q(OSDisableInt\050\051.) 135 389.67 TFMENDPAGE%%EndPage: "4" 5%%Page: "5" 5612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSSchedLock\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSSchedLock\050\051) 475.57 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(5) 535 41.28 T108 738 540 738 2 LN2 18 Q(OSSchedLock) 108 708 T0 14 Q(Prevent task pre-emption.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void OSSchedLock\050void\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T3 11 Q(OSSchedLock\050\051) 135 565 T0 12 Q( avoids the) 220.8 565 T1 F(m) 275.8 565 T0 F(C/OS to schedule a dif) 282.71 565 T(ferent task even if a higher pri-) 391.15 565 T(ority one is ready to run, until its counterpart) 135 551 T3 11 Q(OSSchedUnlock\050\051) 352.98 551 T0 12 Q( is called.) 451.98 551 T(Interrupts will still be accepted and served, unless dif) 135 531 T(ferently speci\336ed with a previ-) 390.41 531 T(ous call to) 135 517 T3 11 Q(OSDisableInt\050\051) 187.33 517 T0 12 Q(.) 279.73 517 T2 F(NOTES) 108 488.33 T0 F(After calling) 135 467 T3 11 Q(OSSchedLock\050\051) 198.98 467 T0 12 Q( the application must not invoke any) 284.78 467 T1 F(m) 462.44 467 T0 F(C/OS system) 469.36 467 T(call that can suspend the current task, or the system will result in a deadlock. The) 135 453 T(application cannot call) 135 439 T3 11 Q(OSTimeDly\050\051) 246.65 439 T0 12 Q(,) 319.25 439 T3 11 Q(OSSemPend\050\051) 325.25 439 T0 12 Q(,) 397.85 439 T3 11 Q(OSMboxPend\050\051) 403.85 439 T0 12 Q( or) 483.05 439 T3 11 Q(OSQPend\050\051) 135 425 T0 12 Q( while the scheduler is locked up with a call to) 194.4 425 T3 11 Q(OSSchedLock\050\051) 420.04 425 T0 12 Q(.) 505.84 425 T2 F(SEE ALSO) 108 396.33 T3 11 Q(OSSchedUnlock\050\051.) 135 375.67 TFMENDPAGE%%EndPage: "5" 6%%Page: "6" 6612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSSchedUnlock\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSSchedUnlock\050\051) 466.68 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(6) 535 41.28 T108 738 540 738 2 LN2 18 Q(OSSchedUnlock) 108 708 T0 14 Q(Enable task pre-emption.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void OSSchedUnlock\050void\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(OSSchedUnlock re-enables the) 135 565 T1 F(m) 287.96 565 T0 F(C/OS scheduler if an equal number of) 294.88 565 T3 11 Q-0.57 (OSSchedLock\050\051) 135 551 P0 12 Q-0.26 ( calls have been made. That is,) 220.8 551 P3 11 Q-0.57 (OSSchedUnlock\050\051) 369.29 551 P0 12 Q-0.26 ( is used in pair) 468.29 551 P(with) 135 537 T3 11 Q(OSSchedLock\050\051) 159.34 537 T0 12 Q( calls that are nested. Up to 254 levels of nesting calls to) 245.14 537 T3 11 Q(OSSchedLock\050\051) 135 523 T0 12 Q( are allowed.) 220.8 523 T2 F(NOTES) 108 494.33 T0 F(By default, after) 135 473 T3 11 Q(OS-Start\050\051) 216.31 473 T0 12 Q(, the scheduler is enabled.) 282.31 473 T2 F(SEE ALSO) 108 444.33 T3 11 Q(OSSchedLock\050\051.) 135 423.67 TFMENDPAGE%%EndPage: "6" 7%%Page: "7" 7612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(askCreate\050\051) 126.19 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 475.72 749.33 T(askCreate\050\051) 493.91 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(7) 535 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(askCr) 142.36 708 T(eate) 189.04 708 T0 14 Q(Create a new task.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(typedef void \050*PTV\051\050void *\051;) 135 616.67 T-0.52 (int OSTaskCreate\050PTV task, void *pdata, void *ptsk, uint prio\051) 135 601.67 P2 12 Q(DESCRIPTION) 108 571.33 T0 F(Create a) 135 550 T1 F(m) 177.65 550 T0 F(C/OS managed task. task is a pointer to the task\325) 184.56 550 T(s code implemented as a) 417.22 550 T-0.4 (function returning void and taking a pointer to void as ar) 135 536 P-0.4 (gument. pdata is a pointer to) 402.75 536 P(a data area used to pass parameters to the task when it is started. ptsk is a pointer to) 135 522 T(the task\325) 135 508 T(s bottom of stack. The ARM standard stack in C is a decreasing stack. The) 175.33 508 T-0.2 (stack is used to store local variables and CPU registers during interrupts. The size of) 135 494 P(the stack is de\336ned by the task requirements and the anticipated interrupt nesting. p) 135 480 T(is the task priority) 135 466 T(. A unique priority must be assigned to each task and the lower) 221.22 466 T(number the higher the priority) 135 452 T(.) 278.87 452 T2 F(RETURN V) 108 423.33 T(ALUES) 168.78 423.33 T0 F(On success, OS_NO_ERR is returned. If the priority already exists, OS_PRIO_EX-) 135 400 T(IST error is returned.) 135 386 T2 F(NOTES) 108 357.33 T0 F(T) 135 336 T(asks can be created either prior to the start of multitasking or by a running task. A) 141.49 336 T(task cannot be created by an interrupt service routine.) 135 322 T2 F(SEE ALSO) 108 293.33 T3 11 Q(OSTaskDel\050\051, OSTaskChangePrio\050\051.) 135 272.67 TFMENDPAGE%%EndPage: "7" 8%%Page: "8" 8612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(askDel\050\051) 126.19 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 487.38 749.33 T(askDel\050\051) 505.57 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(8) 535 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(askDel) 142.36 708 T0 14 Q(Delete a task.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(int OSTaskDel\050uint prio\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F-0.09 (Delete a task by specifying the priority number of the task to delete in prio. The idle) 135 565 P(task cannot be deleted.) 135 551 T2 F(RETURN V) 108 522.33 T(ALUES) 168.78 522.33 T0 F(On success, OS_NO_ERR is returned. If the task to delete does not exist,) 135 499 T(OS_T) 135 485 T(ASK_DEL_ERR is returned. If the task speci\336ed is the idle task,) 162.71 485 T(OS_T) 135 471 T(ASK_DEL_IDLE is returned.) 162.71 471 T2 F(NOTES) 108 442.33 T0 F(An interrupt service routine cannot delete a task.) 135 421 T2 F(SEE ALSO) 108 392.33 T3 11 Q(OSTaskCreate\050\051.) 135 371.67 TFMENDPAGE%%EndPage: "8" 9%%Page: "9" 9612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(askChangePrio\050\051) 126.19 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 454.6 749.33 T(askChangePrio\050\051) 472.79 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(9) 535 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(askChangePrio) 142.36 708 T0 14 Q(Change a task\325) 135 674.67 T(s priority) 217.43 674.67 T(.) 267.47 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(int OSTaskChangePrio\050uint oldp, uint newp\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Change priority to the task having priority oldp into newp.) 135 565 T2 F(RETURN V) 108 536.33 T(ALUES) 168.78 536.33 T0 F(On success, OS_NO_ERR is returned and the task\325) 135 513 T(s priority was changed. OS_PRI-) 380.3 513 T(O_EXISTS is returned if newp already exists. OS_PRIO_ERR is returned if an) 135 499 T(attempt to change priority to a non existing task is done.) 135 485 T2 F(NOTES) 108 456.33 T0 F(The desired new priority must not have been already assigned. OST) 135 435 T(askChangePrio) 459.77 435 T(disables interrupts for the longest period of time among the) 135 421 T1 F(m) 422.3 421 T0 F(C/OS routines.) 429.22 421 T2 F(SEE ALSO) 108 392.33 T3 11 Q(OSTaskCreate\050\051.) 135 371.67 TFMENDPAGE%%EndPage: "9" 10%%Page: "10" 10612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(imeDly\050\051) 126.54 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 484.8 749.33 T(imeDly\050\051) 503.34 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(10) 530 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(imeDly) 143.69 708 T0 14 Q(Delay a task for a number of system ticks.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void OSTimeDly\050uint ticks\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Allows a task to delay itself for a ticks number of clock ticks.) 135 565 T2 F(NOTES) 108 536.33 T0 F(Rescheduling always occurs when the number of ticks is greater than zero.) 135 515 TFMENDPAGE%%EndPage: "10" 11%%Page: "11" 11612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(imeSet\050\051) 126.54 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 487.02 749.33 T(imeSet\050\051) 505.56 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(1) 530.37 41.28 T(1) 535 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(imeSet) 143.69 708 T0 14 Q(Set system time.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void OSTimeSet\050uint ticks\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(The system clock is a 32 bit counter that counts the number of clock ticks since) 135 565 T(power up. This function sets the value of the system clock to an arbitrary value.) 135 551 T2 F(NOTES) 108 522.33 T0 F(On the PID board the timer tick occurs 100 times per second.) 135 501 T2 F(SEE ALSO) 108 472.33 T3 11 Q(OSTimeGet\050\051.) 135 451.67 TFMENDPAGE%%EndPage: "11" 12%%Page: "12" 12612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OST) 108 749.33 T(imeGet\050\051) 126.54 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OST) 485.36 749.33 T(imeGet\050\051) 503.9 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(12) 530 41.28 T108 738 540 738 2 LN2 18 Q(OST) 108 708 T(imeGet) 143.69 708 T0 14 Q(Get current system time.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(uint OSTimeGet\050void\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Obtains the current value of the system clock.) 135 565 T2 F(NOTES) 108 536.33 T(SEE ALSO) 108 506.33 T3 11 Q(OSTimeSet\050\051.) 135 485.67 TFMENDPAGE%%EndPage: "12" 13%%Page: "13" 13612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSSemCreate\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSSemCreate\050\051) 476.68 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(13) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSSemCr) 108 708 T(eate) 185.67 708 T0 14 Q(Create a semaphore.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(OS_EVENT *OSSemCreate\050int value\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Creates and initializes with the parameter value a semaphore.) 135 565 T2 F(RETURN V) 108 536.33 T(ALUES) 168.78 536.33 T0 F-0.02 (A pointer to the event control block allocated for the semaphore. If no event control) 135 513 P(block is available, a NULL pointer is returned.) 135 499 T2 F(NOTES) 108 470.33 T0 F(Semaphores must be created before used. This function cannot be called from an) 135 449 T(interrupt service routine.) 135 435 T2 F(SEE ALSO) 108 406.33 T3 11 Q(OSSemPost\050\051, OSSemPend\050\051.) 135 385.67 TFMENDPAGE%%EndPage: "13" 14%%Page: "14" 14612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSSemPend\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSSemPend\050\051) 482.78 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(14) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSSemPend) 108 708 T0 14 Q(W) 135 674.67 T(ait on semaphore.) 147.1 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void OSSemPend\050OS_EVENT *pevent, uint timeout, uint *err\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Used to suspend and synchronize a task. If the value of the semaphore in pevent is) 135 565 T-0.27 (greater than 0, this function decrements its value and returns to its caller) 135 551 P-0.27 (. If the value) 477.42 551 P(of the semaphore is less or equal to 0, the function decrements the semaphore value) 135 537 T-0.17 (and suspend the calling task putting it in the waiting list for the semaphore. The task) 135 523 P(will be suspended until the semaphore is released by the task owning it by calling) 135 509 T3 11 Q(OSSemPost\050\051) 135 495 T0 12 Q(. An optional timeout is speci\336ed when pending on a semaphore. A) 207.6 495 T(value of 0 in the timeout indicates that the task will wait for ever for the semaphore.) 135 481 T2 F(RETURN V) 108 452.33 T(ALUES) 168.78 452.33 T0 F-0.44 (The variable err is a pointer to a variable used to hold an error code. If the semaphore) 135 429 P(is available, OS_NO_ERR is returned. If a timeout occurred, OS_TIMEOUT is) 135 415 T(returned.) 135 401 T2 F(NOTES) 108 372.33 T0 F(This function cannot be called from an interrupt service routine.) 135 351 T2 F(SEE ALSO) 108 322.33 T3 11 Q(OSSemCreate\050\051, OSSemPost\050\051.) 135 301.67 TFMENDPAGE%%EndPage: "14" 15%%Page: "15" 15612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSSemPost\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSSemPost\050\051) 485.55 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(15) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSSemPost) 108 708 T0 14 Q(Signal semaphore.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(uint OSSemPost\050OS_EVENT *pevent\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Signal the semaphore pointed by pevent. If the semaphore value is greater than or) 135 565 T(equal to 0, the semaphore is incremented and the function returns to its caller) 135 551 T(. If the) 504.28 551 T-0.43 (semaphore value is negative, then the highest priority task waiting for the semaphore) 135 537 P(is made ready to run. The current task is also pre-empted at the end of the function.) 135 523 T2 F(RETURN V) 108 494.33 T(ALUES) 168.78 494.33 T0 F-0.5 (The function returns OS_NO_ERR if no error occured. OS_SEM_OVF is returned if) 135 471 P(the semaphore over\337owed.) 135 457 T2 F(NOTES) 108 428.33 T(SEE ALSO) 108 398.33 T3 11 Q(OSSemCreate\050\051, OSSemPend\050\051.) 135 377.67 TFMENDPAGE%%EndPage: "15" 16%%Page: "16" 16612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSMboxCreate\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSMboxCreate\050\051) 470.57 749.33 T108 54 540 54 2 L1 H2 ZN(VLSI T) 108 41.28 T(echnology Inc.) 138.13 41.28 T(July 1, 1993) 299.42 41.28 T(16) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSMboxCr) 108 708 T(eate) 197.68 708 T0 14 Q(Create a mailbox.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(OS_EVENT* OSMboxCreate\050void *msg\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T(NOTES) 108 556.33 T(SEE ALSO) 108 526.33 T3 11 Q(OSMboxPend\050\051, OSMboxPost\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "16" 17%%Page: "17" 17612 792 0 FMBEGINPAGE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -