Skip to content
kaos-rtPublic

About

No description, website, or topics provided.

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Contributing to KAOS-RT

English · Русский

KAOS-RT is designed to be a lightweight, readable kernel. A good change makes the system more useful while keeping its execution model simple and making important requirements explicit.

Read the contract before changing the kernel. If a change affects the public API or the semantics of events, timers, or the state-machine lifecycle, describe the intended use case in an issue discussion first.

What to contribute

  • A fix with a reproducible description of the problem.
  • A port for a specific microcontroller or family.
  • A minimal example that shows a practical use case.
  • A documentation update that resolves an ambiguity.
  • A small kernel improvement with a clear rationale and verification result.

Submit functional changes, refactoring, and broad formatting changes in separate pull requests.

Kernel boundaries

The kernel uses static allocation, cooperative execution, and a fixed order for servicing state machines. Keep fsm.c and fsm.h free of hidden dynamic allocation, threads, blocking waits, and platform dependencies.

A state-machine callback and fsm_loop_service() each perform a bounded step. When changing the public API, update the contract and a relevant example.

New or updated ports

Place ports in port/<mcu-family>/. In the port README or pull request description, specify the following.

  • Exact microcontroller model or supported family.
  • Compiler and required language extensions.
  • Logical tick source and its counter width.
  • Critical section mechanism.
  • Clock frequency parameter supplied by the board configuration.
  • Known limitations and how to verify the port on the target platform.

Set the hardware clock frequency in the board configuration. Leave it undefined by default in the port. See the porting guide for details.

Verification before submission

Include the following in the pull request description.

  • The purpose of the change and affected files.
  • The build configuration.
  • The checks performed and their results.
  • The platform for port or example changes.

Verify changes to the kernel, events, or timers in an application scenario. Test port changes on the corresponding target when it is available.

Documentation and licensing

Keep the README a brief entry point. Describe kernel requirements in the contract and platform limitations alongside the relevant port. Use comments to explain non-obvious decisions, API preconditions, and hardware constraints.

By contributing, you confirm you have the right to submit your work to the project under Apache License 2.0. Include required notices and check license compatibility before adding third-party code.

About

No description, website, or topics provided.

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors