forked from Nitrokey/chopstx
Unofficial mirror of GNUK's submodule: Chopstx
License
TheStaticTurtle/chopstx
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more.
- Open with GitHub Desktop
- Download ZIP
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
This branch is 8 commits ahead, 9 commits behind Nitrokey:master.
Contribute
-
This branch is 8 commits ahead of Nitrokey:master.
Open a pull request to contribute your changes upstream.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Chopstx - Threads and only Threads Version 1.14 2018-03-02 Niibe Yutaka Flying Stone Technology What's Chopstx? =============== Chopstx is an RT thread library for STM32F103 and GD32F103 (ARM Cortex-M3), STM32F030 (ARM Cortex-M0), MKL27Z (ARM Cortex-M0plus), and emulation on GNU/Linux. While most RTOSes come with many features, drivers, and protocol stacks, Chopstx just offers a simple RT thread library. With Chopstx, interrupt handling is also done by a thread. This enables coherent code for ease of maintenance. While threads are important, we don't need more threads than necessary. Chopstx provides a feature of poll, so that we can minimize use of threads. Note that this library is _not_ related to the hand game: https://en.wikipedia.org/wiki/Chopsticks_(hand_game) Thanks to Yao Wei and Enrico Zini for giving me an opportunity visiting the wiki page above, when my children were playing the game. License ======= It is distributed under GNU General Public Licence version 3 or later (GPLv3+), with additional permission. Please see COPYING and EXCEPTION. Example code ============ We have some examples in this distribution; Useful ones are LED blinker and USB CDC-ACM device. For STM32F103, you can build it USB CDC-ACM demo by: $ cd example-cdc $ ln -sf ../board/board-olimex-stm32-h103.h board.h $ make If you want to try GD32F103, Add -DMHZ=96 to DEFS in Makefile. For a specific board named FSM-55, an example of LED matrix dynamic driver is provided. See the directory: example-fsm-55. For STM32 Primer2, see the directory: example-primer2. Future Works ============ Convenience function to determine the bottom of thread stack, configuration of thread size by compiler's output would be next things to be done. Experimental SMP port for Cortex-A7 is under development. For SMP, more careful considerations for shared access to objects of struct chx_pq is needed. So, modifications required will not be small. --
About
Unofficial mirror of GNUK's submodule: Chopstx
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- C 97.4%
- Makefile 1.5%
- Other 1.1%