Nucleus PLUS
Reference Manual
Copyright (c) 1999
Accelerated Technology, Inc.
720 Oak Circle Dr. E.
Mobile, AL 36609
(334) 661-5770
Nucleus PLUS Reference Manual
ii
Preface
iii
Related Documentation
Nucleus PLUS Internals, by Accelerated Technology, describes, in considerable detail,
the implementation of the Nucleus PLUS kernel.
Style and Symbol Conventions
Program listings, program examples, filenames, menu items/buttons and interactive
displays are each shown in a special font.
Program listings and program examples - Courier New
Filenames - COURIER NEW, ALL CAPS
Interactive Command Lines - Courier New, Bold
Menu Items/Buttons – Times New Roman Italic
Trademarks
MS-DOS is a trademark of Microsoft Corporation
UNIX is a trademark of X/Open
IBM PC is a trademark of International Business Machines, Inc.
Additional Assistance
For additional assistance, please contact us at the following:
Accelerated Technology
720 Oak Circle Drive, East
Mobile, AL 36609
800-468-6853
334-661-5770
334-661-5788 (fax)
support@atinucleus.com
http://www.atinucleus.com
Copyright (©) 1999, All Rights Reserved.
Document Part Number : 001026-001
Last Revised: June 16, 1999
Nucleus PLUS Reference Manual
iv
v
Contents
Chapter 1 - Introduction................................................................................1
About Nucleus PLUS...................................................................................................... 2
Real-Time Applications .................................................................................................. 2
Why Nucleus PLUS is Needed........................................................................................2
Chapter 2 – Getting Started...........................................................................5
Application Development................................................................................................ 6
Installing Nucleus PLUS.................................................................................................6
How to Use Nucleus PLUS ............................................................................................. 7
Application Initialization................................................................................................. 8
Target System Considerations......................................................................................... 9
Configuration Options..................................................................................................... 9
System Initialization ..................................................................................................... 10
Memory Usage ............................................................................................................. 10
Execution Threads ........................................................................................................ 13
Initialization.............................................................................................................. 13
System Error............................................................................................................. 13
Scheduling Loop ....................................................................................................... 13
Task.......................................................................................................................... 13
Signal Handler .......................................................................................................... 13
User ISR................................................................................................................... 14
LISR......................................................................................................................... 14
HISR......................................................................................................................... 14
Chapter 3 – Task Control ............................................................................15
Introduction.................................................................................................................. 16
Task States ................................................................................................................... 16
Preemption................................................................................................................ 16
Relinquish................................................................................................................. 16
Time Slicing ............................................................................................................. 17
Dynamic Creation..................................................................................................... 17
Determinism ............................................................................................................. 17
Stack Checking......................................................................................................... 17
Task Information....................................................................................................... 17
Priority...................................................................................................................... 17