Giter Club home page Giter Club logo

StateOS

StateOS is free, extremely simple and very fast real-time operating system (RTOS) designed for deeply embedded applications.

Targets

ARM Cortex-M, STM8.

Inspiration

StateOS was inspired by the concept of a state machine. Procedure executed by the task (task state) doesn't have to be noreturn-type. It will be executed into an infinite loop. There's a dedicated function for immediate change the task state (task function).

Documentation

All documentation is contained within source files, in particular header files.

Gettin started

Building an application for a specific compiler is realised using the appropriate makefile script.

Features

  • kernel can operate in preemptive or cooperative mode
  • kernel can operate with 16, 32 or 64-bit timer counter
  • kernel can operate in tick-less mode
  • implemented basic protection using MPU (use nullptr, stack overflow)
  • implemented functions for asynchronous communication with unmasked interrupt handlers
  • spin locks
  • once flags
  • events
  • signals with protection mask
  • flags (any, all, protect, ignore)
  • barriers
  • semaphores (binary, limited, counting)
  • mutexes with configurable type, protocol and robustness
  • fast mutexes (error checking)
  • condition variables
  • read/write locks
  • memory pools
  • raw buffers
  • message queues
  • mailbox queues
  • event queues
  • job queues
  • timers (one-shot, periodic)
  • hierarchical state machine
  • cmsis-rtos api
  • cmsis-rtos2 api
  • nasa-osal support
  • c++ wrapper
  • support for std::thread
  • all documentation is contained within source files, in particular header files
  • examples and templates are in separate repositories on GitHub
  • archival releases on sourceforge

Supported stdc++ features

  • std::thread, std::jthread, std::stop_callback, std::this_thread, ...
  • std::mutex, std::shared_mutex, std::condition_variable, ...
  • std::binary_semaphore, std::counting_semaphore, ...
  • std::lock_guard, std::unique_lock, std::shared_lock, ...
  • std::future, std::promise, std::assync, ...
  • std::barrier, std::latch, ...
  • std::chrono, ...
  • thread local storage (thread_local)
  • and more ...

License

This project is licensed under the terms of the MIT License (MIT).

stateos's Projects

common icon common

Common submodule for embedded applications

demos icon demos

Free, simple, extremely lightweight, stackless, cooperative, co-routine system (OS) for microcontrollers

demos-x86-x64 icon demos-x86-x64

Free quasi operating system (OS). Template for x86/x64 CPU.

intros icon intros

Free cooperative operating system (OS) for microcontrollers

intros-lm4f120xl icon intros-lm4f120xl

Free cooperative operating system (OS). Example designed for EK-LM4F120XL board.

stateos icon stateos

Free real-time operating system (RTOS) for microcontrollers with advanced c++ wrapper and support for std::thread

stateos-lm4f120xl icon stateos-lm4f120xl

Free real-time operating system (RTOS). Example designed for EK-LM4F120XL board.

stateos_cpp11 icon stateos_cpp11

RTOS designed for microcrocontrollers using std::thread. TEMPLATE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.