Contents
Contents ...............................................................................................................3
Chapter 1 Getting Started....................................................................................4
Building the ThreadX Library.............................................................................5
Building the ThreadX Demo ..............................................................................6
Build Options.....................................................................................................7
Additional Demonstrations ..............................................................................14
Chapter 2 ThreadX Execution on ARM9............................................................15
Initialization .....................................................................................................15
Thread Scheduling ..........................................................................................17
Thread Execution ............................................................................................17
Interrupt Handling............................................................................................19
Vector Table ................................................................................................19
IRQ Interrupts..............................................................................................21
Standard IRQ Interrupts...............................................................................21
Vectored IRQ Interrupts...............................................................................22
Nested IRQ Interrupts..................................................................................23
FIQ Interrupts ..............................................................................................24
Nested FIQ Interrupts..................................................................................24
Timer Execution ..............................................................................................26
Chapter 3 ThreadX-Aware Debugging...............................................................27
Thread Information..........................................................................................28
Message Queues ............................................................................................29
Semaphores....................................................................................................30
Event Flags Groups.........................................................................................31
Mutexes...........................................................................................................32
Block Pools .....................................................................................................33
Byte Pools.......................................................................................................34
Application Timers...........................................................................................35
Chapter 4 Event Trace.......................................................................................36
Using Event Trace...........................................................................................36
Extended Event Trace API..............................................................................37
tx_trace_enable...............................................................................................38
tx_trace_disable ..............................................................................................40
tx_trace_isr_entry_insert.................................................................................41
tx_trace_isr_exit_insert ...................................................................................42
tx_trace_user_event_insert.............................................................................43
Chapter 5 Version Information ...........................................................................51
Appendix A Example Linker Control File............................................................52
Appendix B Example Vector Table ....................................................................53
- 1
- 2
前往页