|
SuperTinyKernel™ RTOS 1.08.x
Lightweight, high-performance, deterministic, bare-metal C++ RTOS for resource-constrained embedded systems. MIT Open Source License.
|
| build | |
| example | |
| audio_mic | |
| main.cpp | USB Audio Class 2.0 test microphone running on STK (C++ API) |
| plot_audio_samples.py | |
| tusb_config.h | |
| usb_descriptors.c | |
| audio_mic_c | |
| main.c | USB Audio Class 2.0 test microphone running on STK (C API) |
| plot_audio_samples.py | |
| tusb_config.h | |
| usb_descriptors.c | |
| blinky | |
| example.cpp | Blinky: four LED tasks pass a baton to each other with stk::sync::EventFlags |
| example.h | |
| blinky-threadx | |
| demo_threadx.c | Eclipse ThreadX demo running on SuperTinyKernel RTOS (ThreadX API compatibility) |
| blinky-trustzone-ns | |
| example.cpp | TrustZone blinky, Non-Secure side (RP2350, Cortex-M33) |
| example.h | |
| blinky-trustzone-sc | |
| example.cpp | TrustZone blinky, Secure side (RP2350, Cortex-M33) |
| example.h | |
| blinky_c | |
| example.c | Blinky (C API): four LED tasks pass a baton to each other with EventFlags |
| example.h | |
| blinky_c-cmsis-rtos2 | |
| example.c | SuperTinyKernel RTOS via CMSIS RTOS2 wrapper example program |
| RTE_Components.h | |
| blinky_c-cmsis-rtos2-prio | |
| example.c | Priority Inheritance demonstration via CMSIS RTOS2 |
| RTE_Components.h | |
| blinky_c-cyabs_rtos | |
| example.c | SuperTinyKernel RTOS via Infineon abstraction-rtos API example program |
| main.c | |
| RTE_Components.h | |
| blinky_c-freertos | |
| example.c | SuperTinyKernel RTOS via FreeRTOS example program |
| FreeRTOSConfig.h | |
| RTE_Components.h | |
| blinky_c-pthread | |
| example.c | Blinky built on the STK pthread API (stk_c_pthread.h) |
| example.h | |
| blinky_c-threadx | |
| example.c | SuperTinyKernel RTOS via ThreadX API wrapper example program |
| main.c | |
| RTE_Components.h | |
| blinky_fp | |
| example.cpp | Blinky with the Fixed-Priority (FP32) scheduling strategy |
| example.h | |
| blinky_mc | |
| example.cpp | Blinky with a control task and LED tasks communicating over pipes and an event |
| example.h | |
| blinky_mpu | |
| example.cpp | Blinky with per-task MPU memory protection (Cortex-M, ARMv7-M) |
| example.h | |
| blinky_mpu-hard | |
| example.cpp | Blinky with per-task MPU memory protection on EVKB-IMXRT1050 (Cortex-M7, PMSAv7) |
| example.h | |
| blinky_mpu-trustzone-ns | |
| example.cpp | TrustZone + per-task MPU sandboxing, Non-Secure side |
| example.h | |
| blinky_mpu-trustzone-sc | |
| example.cpp | TrustZone + per-task MPU sandboxing, Secure side |
| example.h | |
| blinky_mpu_armv8 | |
| example.cpp | Blinky with per-task MPU memory protection (ARMv8-M, PMSAv8) |
| example.h | |
| blinky_swrr | |
| example.cpp | Blinky with the Smooth Weighted Round-Robin (SWRR) scheduling strategy |
| example.h | |
| blinky_time-slice | |
| example.cpp | Time-slicing demo (KERNEL_TIMESLICE) with per-task time quantum |
| example.h | |
| critical_section | |
| example.cpp | Critical section demo: a data race without it and a race-free update with it |
| example.h | |
| debounce | |
| example.cpp | Button debounce with a re-armed one-shot timer (STM32F407G-DISC1) |
| example.h | |
| driver | |
| nxpimxrt1050 | |
| led.cpp | |
| nxpk66 | |
| led.cpp | |
| portable | |
| led.cpp | |
| rp2350w | |
| cpu.cpp | |
| led.cpp | |
| stm32f0xx | |
| led.cpp | |
| stm32f1xx | |
| led.cpp | |
| stm32f4xx | |
| led.cpp | |
| c_wrapper.cpp | |
| cpu.h | |
| defs.h | |
| led.h | |
| hrt | |
| example.cpp | Hard Real-Time (KERNEL_HRT) scheduling with periodic tasks and deadlines |
| example.h | |
| httpd | |
| example.cpp | Pico W lwIP httpd + mDNS example ported to STK |
| example.h | |
| fsdata.c | |
| makefsdata.py | |
| httpd_tls | |
| crypto_config.h | |
| example.cpp | Pico W lwIP httpd (TLS) + mDNS example ported to STK |
| example.h | |
| example_certs.h | |
| fsdata.c | |
| generate_example_certs_h.py | |
| lwipopts.h | |
| lwipopts_examples_common.h | |
| makefsdata.py | |
| mbedtls_config.h | |
| low_power | |
| example.cpp | Low-power demo with sleep and stop modes (STM32F407G-DISC1) |
| example.h | |
| low_power_c | |
| example.c | Low-power demo (pure-C translation) with sleep and stop modes (STM32F407G-DISC1) |
| example.h | |
| once | |
| example.cpp | Run-once tasks: the kernel returns from Start() once all tasks have completed |
| example.h | |
| secure_task | |
| example.cpp | User-mode control task with a privileged hardware task and several sync primitives |
| example.h | |
| sleep | |
| example.cpp | Sleep demo: tasks wake up after different sleep times |
| example.h | |
| sync | |
| example.cpp | Synchronization primitives: Pipe (or Events) and Mutex between a control and a hardware task |
| example.h | |
| sync_c | |
| example.c | Synchronization primitives (C API): Pipe (or Events) and Mutex between a control and a hardware task |
| example.h | |
| timer | |
| example.cpp | Software timers with stk::time::TimerHost |
| example.h | |
| timer_c | |
| example.c | Software timers (C API) with a timer host |
| example.h | |
| tls | |
| example.cpp | Thread-local storage (TLS) and per-task semaphores |
| example.h | |
| main.cpp | |
| interop | |
| c | |
| include | |
| stk_c.h | C language binding/interface for SuperTinyKernel RTOS |
| stk_c_memory.h | C language bindings for stk::memory::BlockMemoryPool, stk::memory::BytePool and stk::memory::MemoryAllocator |
| stk_c_time.h | C language binding for stk::time::TimerHost and stk::time::Timer |
| src | |
| stk_c.cpp | |
| stk_c_memory.cpp | |
| stk_c_sync.cpp | |
| stk_c_time.cpp | |
| cmsis | |
| rtos2 | |
| include | |
| cmsis_os2.h | CMSIS RTOS2 interface for SuperTinyKernel RTOS |
| src | |
| cmsis_os2_stk.cpp | |
| cyabs_rtos | |
| include | |
| COMPONENT_STK | |
| cyabs_rtos_impl.h | RTOS specific constants of the SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer |
| cyabs_rtos_stk.h | Kernel control of the SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer |
| cyabs_rtos_stk_config.h | Build-time configuration of the SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer. Every macro can be overridden from the build system (-D...) or by defining it before this header is included (e.g. in a project-wide header). Plain C compatible |
| cyabs_rtos_types.h | RTOS specific types of the SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer. Plain C compatible: the STK objects live in opaque, suitably sized and aligned storage that is embedded in the cy_*_t types (the same approach as in the STK ThreadX shim) |
| cy_worker_thread.h | Defines the interface for the worker thread utility. Provides prototypes for functions that allow creating/deleting worker threads and queueing work to a worker thread |
| cyabs_rtos.h | Defines the Infineon RTOS Interface. Provides prototypes for functions that allow Infineon libraries to use RTOS resources such as threads, mutexes & timing functions in an abstract way. The APIs are implemented in the Port Layer RTOS interface which is specific to the RTOS in use |
| cyabs_rtos_device_caps.h | Device capability macros used to avoid broad COMPONENT checks |
| cyabs_rtos_internal.h | Internal interface used for RTOS abstraction utilities |
| source | |
| COMPONENT_STK | |
| cyabs_rtos_stk.cpp | SuperTinyKernel (STK) port of the Infineon RTOS abstraction layer (cyabs_rtos.h). See README_STK.md for the design notes and the list of differences from the other ports |
| cy_worker_thread.c | Provides implementation for functions that allow creating/deleting worker threads and deferring work to a worker thread |
| freertos | |
| include | |
| atomic.h | |
| croutine.h | |
| deprecated_definitions.h | |
| event_groups.h | |
| FreeRTOS.h | FreeRTOS interface for SuperTinyKernel RTOS |
| list.h | |
| message_buffer.h | |
| mpu_prototypes.h | |
| mpu_syscall_numbers.h | |
| mpu_wrappers.h | |
| newlib-freertos.h | |
| picolibc-freertos.h | |
| portable.h | |
| projdefs.h | |
| queue.h | |
| semphr.h | |
| stack_macros.h | |
| StackMacros.h | |
| stream_buffer.h | |
| task.h | |
| timers.h | |
| src | |
| freertos_stk.cpp | |
| newlib | |
| src | |
| stk_newlib.cpp | GCC Newlib retargetable locking implemented with stk::sync::Mutex / stk::sync::FastMutex |
| stk_newlib.h | GCC Newlib OS interface: retargetable locking (__retarget_lock_*) on top of STK |
| posix | |
| include | |
| sys | |
| time.h | POSIX <sys/time.h> extension for STK: gettimeofday(). Implemented by stk_c_pthread.cpp, together with time() of <time.h> |
| mqueue.h | POSIX message queues (<mqueue.h>) for STK. Implemented by stk_c_pthread.cpp on top of stk::sync::Mutex / stk::sync::ConditionVariable (no dependency on the STK C API) |
| pthread.h | POSIX-named entry point for the STK pthread shim (stk_c_pthread.h) |
| sched.h | POSIX-named scheduling API (<sched.h>) for STK: sched_yield(), sched_get_priority_min/max() and struct sched_param. Implemented by stk_c_pthread.cpp (no dependency on the STK C API) |
| semaphore.h | POSIX-named counting semaphores (<semaphore.h>) for STK, backed by stk::sync::SemaphoreT. Implemented by stk_c_pthread.cpp (the same shim as <pthread.h>, no dependency on the STK C API); stk_pthread_bind_kernel() is not required, only a running kernel with KERNEL_SYNC |
| signal.h | Wrapper of the toolchain's <signal.h> for use together with the STK POSIX layer |
| stk_c_pthread.h | A minimal, POSIX-named pthreads-style API for STK. The public interface is self-contained (it needs neither stk_c.h nor any other STK header besides stk_config.h, and no C++ headers), so it can be used from C. The implementation (stk_c_pthread.cpp) calls the STK C++ API directly for thread/task control, TLS, critical sections, sleep/yield/time and the synchronization primitives; the pthread_stk_*_mem_t blobs embedded in the pthread_* types are used as in-place storage for those C++ objects |
| threads.h | C11 threads (<threads.h>) for STK: thin wrappers over the pthread shim (stk_c_pthread.h). Implemented by stk_c_threads.cpp. Needs stk_pthread_bind_kernel() as the pthread shim does |
| time.h | POSIX time extensions for STK: clock_gettime(), clock_getres(), nanosleep(), clock_nanosleep(), usleep(), sleep(), timespec_get() and POSIX timers (timer_create() and friends). Implemented by stk_c_pthread.cpp (no dependency on the STK C API) |
| unistd.h | POSIX <unistd.h> extensions for STK: sysconf(), getpid(), getppid(), gettid(), getpagesize(), getuid(), geteuid(), getgid(), getegid(). Implemented by stk_c_pthread.cpp |
| src | |
| stk_c_pthread.cpp | |
| stk_c_threads.cpp | C11 <threads.h> on top of the pthread shim (stk_c_pthread.cpp). Uses only the public C interface of the shim (pthread.h / time.h), no STK API |
| util | |
| pthread_compile_check.c | |
| threadx | |
| include | |
| tx_api.h | Eclipse ThreadX (Azure RTOS ThreadX) compatible API on top of SuperTinyKernel RTOS |
| src | |
| threadx_stk.cpp | |
| stk | |
| include | |
| arch | |
| arm | |
| cortex-m | |
| stk_arch_arm-cortex-m-asm.h | |
| stk_arch_arm-cortex-m.h | Platform port for ARM Cortex-M |
| risc-v | |
| stk_arch_risc-v.h | Platform port for RISC-V |
| x86 | |
| win32 | |
| stk_arch_x86-win32.h | Platform port for Windows Win32 (STK emulator) |
| stk_arch_common.h | Contains common inventory for platform implementation |
| memory | |
| stk_memory.h | Collection of memory-related primitives (stk::memory namespace) |
| stk_memory_allocator.h | Memory allocator front-end with checked API and its weak backend hooks: stk::memory::MemoryAllocator |
| stk_memory_allocator_default.h | Optional ready-made implementation of stk::memory::MemoryAllocator on top of a static BytePool |
| stk_memory_allocator_malloc.h | Ready-made implementation of stk::memory::MemoryAllocator backed by C malloc |
| stk_memory_blockpool.h | Implementation of fixed-size block memory pool: stk::memory::BlockMemoryPool |
| stk_memory_bytepool.h | Implementation of variable-size memory pool: stk::memory::BytePool |
| strategy | |
| stk_priority_bitmap.h | Priority bitmap operations (stk::sched::PriorityBitmapTraits), a multi-word bitmap for more than 64 priorities (stk::sched::PriorityBitmap) and default bitmap type selection (stk::sched::ReadyBitmapSelect) shared by the bitmap-based priority strategies, e.g. stk::sched::SwitchStrategyFixedPriority |
| stk_strategy_edf.h | Earliest Deadline First (EDF) task-switching strategy (stk::sched::SwitchStrategyEDF) |
| stk_strategy_fpriority.h | Fixed-priority preemptive task-switching strategy with round-robin within each priority level (stk::sched::SwitchStrategyFixedPriority / stk::sched::SwitchStrategyFP32, and the no-sleep-yield variant stk::sched::SwitchStrategyFP32_NSY, and the 64-level stk::sched::SwitchStrategyFP64 / stk::sched::SwitchStrategyFP64_NSY) |
| stk_strategy_monotonic.h | Rate-Monotonic (RM) and Deadline-Monotonic (DM) task-switching strategies (stk::sched::SwitchStrategyMonotonic / stk::sched::SwitchStrategyRM / stk::sched::SwitchStrategyDM), and the SchedulabilityCheck utility for Worst-Case Response Time (WCRT) analysis |
| stk_strategy_pthreshold.h | Fixed-priority preemptive strategy with ThreadX-style Preemption-Threshold and optional per-task time-slicing (stk::sched::SwitchStrategyPreemptionThreshold / stk::sched::SwitchStrategyPT32 / stk::sched::SwitchStrategyPT32_TS / stk::sched::SwitchStrategyPT64 / stk::sched::SwitchStrategyPT64_TS) |
| stk_strategy_rrobin.h | Round-Robin task-switching strategy (stk::sched::SwitchStrategyRoundRobin / stk::sched::SwitchStrategyRR, and the no-sleep-yield variants stk::sched::SwitchStrategyRoundRobinNoSleepYield / stk::sched::SwitchStrategyRR_NSY) |
| stk_strategy_swrrobin.h | Smooth Weighted Round-Robin task-switching strategy (stk::sched::SwitchStrategySmoothWeightedRoundRobin / stk::sched::SwitchStrategySWRR, and the no-sleep-yield variants stk::sched::SwitchStrategySmoothWeightedRoundRobinNoSleepYield / stk::sched::SwitchStrategySWRR_NSY) |
| sync | |
| stk_sync.h | Collection of synchronization primitives (stk::sync namespace) |
| stk_sync_barrier.h | Implementation of synchronization primitive: stk::sync::Barrier |
| stk_sync_cs.h | Implementation of synchronization primitive: stk::sync::ScopedCriticalSection |
| stk_sync_cv.h | Implementation of synchronization primitive: stk::sync::ConditionVariable |
| stk_sync_event.h | Implementation of synchronization primitive: stk::sync::Event |
| stk_sync_eventflags.h | Implementation of synchronization primitive: stk::sync::EventFlagsT and stk::sync::EventFlags |
| stk_sync_fastmutex.h | Implementation of synchronization primitive: stk::sync::FastMutex |
| stk_sync_msgqueue.h | Implementation of synchronization primitives: stk::sync::MessageQueue - runtime-sized queue over an external buffer. stk::sync::MessageQueueT<N,MSG> - compile-time-sized queue with internal storage |
| stk_sync_mutex.h | Implementation of synchronization primitive: stk::sync::Mutex |
| stk_sync_pipe.h | Implementation of synchronization primitives: stk::sync::Pipe - runtime-sized byte-stream pipe over an external buffer. stk::sync::PipeT<T,N> - compile-time-sized, type-safe pipe with internal storage |
| stk_sync_rwmutex.h | Implementation of synchronization primitive: stk::sync::RWMutex |
| stk_sync_semaphore.h | Implementation of synchronization primitive: stk::sync::SemaphoreT and stk::sync::Semaphore |
| stk_sync_spinlock.h | Implementation of synchronization primitive: stk::sync::SpinLock |
| time | |
| stk_time.h | Collection of time-related primitives (stk::time namespace) |
| stk_time_timer.h | Implementation of stk::time::TimerHost, a software timer multiplexer that manages multiple stk::time::Timer instances |
| stk_time_util.h | Time-related utilities: stk::time::PeriodicTrigger, stk::time::Stopwatch |
| stk.h | Top-level STK include. Provides the Kernel class template and all built-in task-switching strategies |
| stk_arch.h | Hardware Abstraction Layer (HAL) declarations for the stk::hw namespace |
| stk_common.h | Contains interface definitions of the library |
| stk_defs.h | Compiler and platform low-level definitions for STK |
| stk_helper.h | Contains helper implementations which simplify user-side code |
| stk_linked_list.h | Intrusive doubly-linked list implementation used internally by the kernel |
| stk_version.h | Version definitions of STK (Semantic Versioning 2.0.0) |
| src | |
| arch | |
| arm | |
| cortex-m | |
| stk_arch_arm-cortex-m.cpp | |
| risc-v | |
| stk_arch_risc-v.cpp | |
| x86 | |
| win32 | |
| stk_arch_x86-win32.cpp | |
| memory | |
| stk_memory_allocator_default.cpp | Default ready-made implementation of stk::memory::MemoryAllocator backed by a static BytePool |
| stk_memory_allocator_malloc.cpp | Default ready-made implementation of stk::memory::MemoryAllocator backed by C malloc |