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

📄 ucosman.ps

📁 UCSO在三星S3C44B0X CPU上的移植。ejoy it
💻 PS
📖 第 1 页 / 共 4 页
字号:
0 10 Q0 X0 K(OSMboxPend\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSMboxPend\050\051) 476.67 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(17) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSMboxPend) 108 708 T0 14 Q(Pend for message from mailbox.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void* OSMboxPend\050OS_EVENT *pevent, uint timeout, uint *err\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(OSMboxCreate\050\051, OSMboxPost\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "17" 18%%Page: "18" 18612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSMboxPost\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSMboxPost\050\051) 479.44 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(18) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSMboxPost) 108 708 T0 14 Q(Post a message to a mailbox.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(uint OSMboxPost\050OS_EVENT *pevent, void *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(OSMboxCreate\050\051, OSMboxPend\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "18" 19%%Page: "19" 19612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSQCreate\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSQCreate\050\051) 487.24 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(19) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSQCr) 108 708 T(eate) 166.68 708 T0 14 Q(Create a queue.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(OS_EVENT* OSQCreate\050void **start, uint size\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(OSQPend\050\051, OSQPost\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "19" 20%%Page: "20" 20612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSQPend\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSQPend\050\051) 493.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(20) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSQPend) 108 708 T0 14 Q(Pend for message from queue.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(void* OSQPend\050OS_EVENT *pevent, uint timeout, uint *err\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(OSQCreate\050\051, OSQPost\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "20" 21%%Page: "21" 21612 792 0 FMBEGINPAGE0 10 Q0 X0 K(OSQPost\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(OSQPost\050\051) 496.11 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(21) 530 41.28 T108 738 540 738 2 LN2 18 Q(OSQPost) 108 708 T0 14 Q(Post a message to a queue.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(uint OSQPost\050OS_EVENT *pevent, void *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(OSQCreate\050\051, OSQPend\050\051.) 135 505.67 TFMENDPAGE%%EndPage: "21" 22%%Page: "22" 22612 792 0 FMBEGINPAGE0 10 Q0 X0 K(PIDInit\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(PIDInit\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(22) 530 41.28 T108 738 540 738 2 LN2 18 Q(PIDInit) 108 708 T0 14 Q(Initialize PID board.) 135 674.67 T3 11 Q(#include \322pid.h\323) 135 646.67 T(void PIDInit\050void\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T0 F(Initializes the PID board and the data structures used by the PID board support rou-) 135 565 T-0.27 (tines. In particular) 135 551 P-0.27 (,) 221.62 551 P3 11 Q-0.6 (PIDInit\050\051) 227.35 551 P0 12 Q-0.27 ( initialize the soft vectors and installs the IRQ vector) 286.75 551 P(to a branch to the) 135 537 T3 11 Q(DispatchIRQ\050\051) 221.32 537 T0 12 Q( routine, the FIQ vector to a branch to the) 307.12 537 T3 11 Q(DispatchFIQ\050\051) 135 523 T0 12 Q( routine and the SWI vector to a branch to the) 220.8 523 T3 11 Q(DispatchSWI\050\051) 443.09 523 T0 12 Q(routine.) 135 509 T2 F(NOTES) 108 480.33 T3 11 Q(PIDInit\050\051) 135 459 T0 12 Q( is called by) 194.4 459 T3 11 Q(OSInit\050\051) 258.06 459 T0 12 Q( and should not be used directly) 310.86 459 T(.) 462.73 459 T2 F(SEE ALSO) 108 430.33 T3 11 Q(DispatchIRQ\050\051, DispatchFIQ\050\051, DispatchSWI\050\051 in pid.c.) 135 409.67 TFMENDPAGE%%EndPage: "22" 23%%Page: "23" 23612 792 0 FMBEGINPAGE0 10 Q0 X0 K(IRQInstall\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(IRQInstall\050\051) 491.12 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(23) 530 41.28 T108 738 540 738 2 LN2 18 Q(IRQInstall) 108 708 T0 14 Q(Install a soft interrupt service routine.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(typedef void \050*PFV\051\050void\051;) 135 601.67 T(PFV IRQInstall\050int IRQNum, PFV ISRFun\051) 135 586.67 T2 12 Q(DESCRIPTION) 108 556.33 T0 F(Install the interrupt service routine ISRFun for the IRQNum speci\336ed using the soft) 135 535 T(interrupt schema in the PID support routines. According to the schema, when an) 135 521 T-0.65 (IRQ occurs the wrapper IRQT) 135 507 P-0.65 (rap is called. The dispatcher routine) 277.95 507 P3 11 Q-1.42 (DispatchIRQ\050\051) 449.02 507 P0 12 Q(is then invoked by the wrapper and the registered ISR function corresponding to) 135 493 T(IRQ is \336nally called.) 135 479 T2 F(NOTES) 108 450.33 T0 F(The corresponding interrupt is also enabled. IRQ interrupt numbers are assigned in) 135 429 T(the PID board according to the following list:) 135 415 T( 0 - serial port 1 - timer 2 - parallel port 3 - expansion slot 4 - expansion slot 5 -) 135 395 T(expansion slot 6 - expansion slot 7 - panic \050button sw1\051) 135 381 T(Refer to the source code for further details.) 135 361 T2 F(SEE ALSO) 108 332.33 T3 11 Q( DispatchIRQ\050\051 in pid.c.) 135 311.67 TFMENDPAGE%%EndPage: "23" 24%%Page: "24" 24612 792 0 FMBEGINPAGE0 10 Q0 X0 K(IRQEnable\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(IRQEnable\050\051) 488.35 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(24) 530 41.28 T108 738 540 738 2 LN2 18 Q(IRQEnable) 108 708 T0 14 Q(Enable a IRQ interrupt.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(void IRQEnable\050int IRQNum\051) 135 601.67 T2 12 Q(DESCRIPTION) 108 571.33 T0 F(The IRQ speci\336ed in) 135 550 T3 11 Q(IRQNum) 238.32 550 T0 12 Q( is enabled in the PID interrupt controller) 277.92 550 T(.) 474.9 550 T2 F(SEE ALSO) 108 521.33 T3 11 Q(IRQDisable\050\051.) 135 500.67 TFMENDPAGE%%EndPage: "24" 25%%Page: "25" 25612 792 0 FMBEGINPAGE0 10 Q0 X0 K(IRQDisable\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(IRQDisable\050\051) 485.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(25) 530 41.28 T108 738 540 738 2 LN2 18 Q(IRQDisable) 108 708 T0 14 Q(Disable a IRQ interrupt.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(void IRQDisable\050int IRQNum\051) 135 601.67 T2 12 Q(DESCRIPTION) 108 571.33 T0 F(The IRQ speci\336ed in) 135 550 T3 11 Q(IRQNum) 238.32 550 T0 12 Q( is disabled in the PID interrupt controller) 277.92 550 T(.) 477.58 550 T2 F(SEE ALSO) 108 521.33 T3 11 Q(IRQEnable\050\051.) 135 500.67 TFMENDPAGE%%EndPage: "25" 26%%Page: "26" 26612 792 0 FMBEGINPAGE0 10 Q0 X0 K(IRQReset\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(IRQReset\050\051) 493.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(26) 530 41.28 T108 738 540 738 2 LN2 18 Q(IRQReset) 108 708 T0 14 Q(Reset a IRQ interrupt.) 135 674.67 T3 11 Q(#include \322ucos.h\323;) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(void IRQReset\050int IRQNum\051) 135 601.67 T2 12 Q(DESCRIPTION) 108 571.33 T0 F(The IRQ speci\336ed in) 135 550 T3 11 Q(IRQNum) 238.32 550 T0 12 Q( is reset in the PID interrupt controller) 277.92 550 T(.) 460.24 550 T2 F(SEE ALSO) 108 521.33 T3 11 Q(IRQEnable\050\051, IRQDisable\050\051.) 135 500.67 TFMENDPAGE%%EndPage: "26" 27%%Page: "27" 27612 792 0 FMBEGINPAGE0 10 Q0 X0 K(SWIInstall\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(SWIInstall\050\051) 490.01 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(27) 530 41.28 T108 738 540 738 2 LN2 18 Q(SWIInstall) 108 708 T0 14 Q(Install a SWI interrupt service routine.) 135 674.67 T3 11 Q(#include \322ucos.h\323) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(typedef void \050*PFV\051\050void\051) 135 601.67 T(PFV SWIInstall\050int SWINum, PFV ISRFun\051) 135 586.67 T2 12 Q(DESCRIPTION) 108 556.33 T0 F(Install the interrupt service routine) 135 535 T3 11 Q(ISRFun) 303.97 535 T0 12 Q( for the) 343.57 535 T3 11 Q(SWINum) 381.23 535 T0 12 Q( using the soft interrupt) 420.83 535 T(schema in the PID support routines. According to the schema, when an SWI occurs) 135 521 T-0.35 (the wrapper) 135 507 P3 11 Q-0.77 ( SWITrap\050\051) 191.63 507 P0 12 Q-0.35 ( is called. The dispatcher routine) 256.86 507 P3 11 Q-0.77 (DispatchSWI\050\051) 414.4 507 P0 12 Q-0.35 (is then) 506.03 507 P-0.16 (invoked by the wrapper and the registered ISR function corresponding to the SWI is) 135 493 P(\336nally called.) 135 479 T2 F(NOTES) 108 450.33 T0 F(The SWI 0 is used by) 135 429 T1 F(m) 241.66 429 T0 F(C/OS to enter in privileged mode and it should never be) 248.57 429 T(used.) 135 415 T(Refer to the source code for further details.) 135 395 T2 F(SEE ALSO) 108 366.33 T3 11 Q(DispatchSWI\050\051) 135 345 T0 12 Q( in pid.c.) 220.8 345 TFMENDPAGE%%EndPage: "27" 28%%Page: "28" 28612 792 0 FMBEGINPAGE0 10 Q0 X0 K(PutByte\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(PutByte\050\051) 501.11 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(28) 530 41.28 T108 738 540 738 2 LN2 18 Q(PutByte) 108 708 T0 14 Q(W) 135 674.67 T(rite a byte to the serial port.) 147.66 674.67 T3 11 Q(#include \322ucos.h\323;) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(typedef unsigned char byte;) 135 601.67 T(void PutByte\050byte Ch\051) 135 586.67 T2 12 Q(DESCRIPTION) 108 556.33 T0 F(Send the byte) 135 535 T3 11 Q(Ch) 203.33 535 T0 12 Q( to the PID serial port.) 216.53 535 T2 F(SEE ALSO) 108 506.33 T3 11 Q(GetByte\050\051.) 135 485.67 TFMENDPAGE%%EndPage: "28" 29%%Page: "29" 29612 792 0 FMBEGINPAGE0 10 Q0 X0 K(GetByte\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(GetByte\050\051) 500.01 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(29) 530 41.28 T108 738 540 738 2 LN2 18 Q(GetByte) 108 708 T0 14 Q(Read a byte from the serial port.) 135 674.67 T3 11 Q(#include \322ucos.h\323;) 135 646.67 T(#include \322pid.h\323) 135 631.67 T(typedef unsigned char byte;) 135 601.67 T(byte GetByte\050void\051) 135 586.67 T2 12 Q(DESCRIPTION) 108 556.33 T0 F(Read a byte from the PID serial port.) 135 535 T2 F(NOTES) 108 506.33 T0 F(Returns 0 if no character is available.) 135 485 T2 F(SEE ALSO) 108 456.33 T3 11 Q(PutByte\050\051.) 135 435.67 TFMENDPAGE%%EndPage: "29" 30%%Page: "30" 30612 792 0 FMBEGINPAGE0 10 Q0 X0 K(SetLED\050\051) 108 749.33 T1 F(m) 282.5 749.33 T0 F(C/OS System Calls) 288.26 749.33 T(SetLED\050\051) 501.12 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(30) 530 41.28 T108 738 540 738 2 LN2 18 Q(SetLED) 108 708 T0 14 Q(Set PID\325) 135 674.67 T(s LEDs.) 182.84 674.67 T3 11 Q(#include \322pid.h\323) 135 646.67 T(void SetLED\050uint Conf\051) 135 616.67 T2 12 Q(DESCRIPTION) 108 586.33 T3 11 Q(Conf) 135 565 T0 12 Q( indicates the desired LEDs con\336guration according to the following \336gure:) 161.4 565 T4 F(LEDs bit con\336guration) 247.5 541 T0 10 Q(bit 3) 226.5 523.33 T(bit 2) 280.5 523.33 T(bit 1) 334.5 523.33 T(bit 0) 388.5 523.33 T(led 3) 226.5 507.33 T(led 2) 280.5 507.33 T(led 1) 334.5 507.33 T(led 0) 388.5 507.33 T220.5 533.75 220.5 502.25 2 LV0.5 H0 ZN274.5 534.25 274.5 501.75 2 LVN328.5 534.25 328.5 501.75 2 LVN382.5 534.25 382.5 501.75 2 LVN436.5 533.75 436.5 502.25 2 LVN220.25 534 436.75 534 2 LVN220.25 518 436.75 518 2 LVN220.25 502 436.75 502 2 LVNFMENDPAGE%%EndPage: "30" 31%%Trailer%%BoundingBox: 0 0 612 792%%Pages: 30 1%%DocumentFonts: Times-Roman%%+ Symbol%%+ Times-Bold%%+ Courier%%+ Times-Italic

⌨️ 快捷键说明

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