-
Notifications
You must be signed in to change notification settings - Fork 46
Home
Jim edited this page Nov 14, 2015
·
6 revisions
- Create a new project with your preferred IDE.
- Clone this repo anywhere on your disk.
- Copy include and source folders in a subfolder of your project.
- Copy TEMPLATE_nOSConfig.h from config folder in your project and rename it to nOSConfig.h
- Add all source files from source folder and the Compiler/CPU specific files (nOSPort) to your project.
- Add include folder and Compiler/CPU specific include folder to the path of your project.
- In your main source file, include nOS.h and try to compile to see if you have any errors.
- You shouldn't have any errors and be ready to create your app.
- You need to call nOS_Init before any other nOS functions and you should call it very soon in your main.
- After nOS_Init, you can create any nOS objects (Mutex, Queue, Thread, ...) depending on the needs of your application.
- When you're ready to allow context switching, you should call nOS_Start with a pointer to a function of your choice, if your need it; typically, you can initialize and start the tick timer in this function.
- You should have the minimal nOS app.