DemoΒΆ Following pages provide the basic examples of the CosmOS features. Data exchange interface Buffer Configuration 1. Open the CustomBox 2. Configure or add new buffer 3. Generate Code examples Buffer read Return values Buffer write Return values Channel Configuration 1. Open the CustomBox 2. Configure or add new channel 3. Generate Code examples Channel send thread Return values Channel reply thread Return values Memory Mapping Configuration 1. Open the CustomBox 2. Configure or add memories 3. Open the Cores tab 4. Configure core memory sections 5. Open the Programs tab 6. Configure program memory sections 7. Generate Code examples Uninitialized data Initialized data Functions Protection Configuration 1. Open the CustomBox 2. Switch memory protection ON/OFF 3. Generate Memory protection regions Dynamic allocation Configuration 1. Open the CustomBox 2. Configure heap size 3. Generate Code examples Usage of new and delete operator Scheduling Classic Configuration 1. Open the CustomBox 2. Switch performance scheduling OFF 3. Generate Classic scheduling example Performance Configuration 1. Open the CustomBox 2. Switch performance scheduling ON 2. Do not configure any critical tasks 3. Generate Hybrid scheduling example Hybrid Configuration 1. Open the CustomBox 2. Switch performance scheduling ON 2. Configure critical tasks 3. Generate Hybrid scheduling example Sleep Code examples Thread sleep Return values System jobs Configuration 1. Open the CustomBox 2. Configure or add new system job task 5. Open the SysJobs tab 2. Configure or add new system jobs group 3. Generate Code examples Sys job group function handler Synchronization primitives Mutex Code examples Mutex variable mapping Mutex get and release Return values Semaphore Configuration 1. Open the CustomBox 2. Configure or add new semaphore 3. Generate Code examples Semaphore get and release Return values Spinlock Configuration 1. Open the CustomBox 2. Configure or add new spinlock 3. Generate Code examples Spinlock get and release Spinlock try and release Return values Program Configuration 1. Open the CustomBox 2. Configure or add new program 3. Generate Code examples Program source file Program header file Event Configuration 1. Open the CustomBox 2. Configure or add new event 3. Generate Code examples Event trigger on every other core Return values Error handler Configuration Code examples Check if returned value is error Interrupt Configuration 1. Open the CustomBox 2. Configure or add new interrupt 3. Generate Code examples Interrupt thread Return values SysCall Routes Configuration 1. Open the CustomBox 2. Configure or add new route 3. Generate Code examples Cosmos API route Switch Configuration 1. Open the CustomBox 2. Configure or add new switch 3. Generate Code examples Performance scheduling switch