Giter Site home page Giter Site logo

raftycrafty / tinythread Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xhawk18/tinythread

0.0 0.0 0.0 10.61 MB

TinyThread is a small multi-thread library for embedded system. Currently it supports Cortex-M0 chips, such as Nuvoton Nano100/NUC100/M051 series.

License: Other

C 95.41% Assembly 0.74% C++ 0.72% HTML 2.56% Objective-C 0.52% CSS 0.06%

tinythread's Introduction

1. TinyThread Specifications
   Multitask
      Round-Robin
      Preemptive
      Can avoid priority inversion by mutex
   Task Specifications
      Define Tasks, Unlimited
      Active Tasks, Unlimited
      User Priorities, Unlimited
      Thread Stack Checking, Supported
      Context Switch Time,
         <300 cycles without thread sleeping and stack checking supported.
         <400 cycles with thread sleeping and stack checking supported.
   Time
      delay, supported by tt_sleep()
      micro delay, supported by tt_usleep()
   Inter-Task Communication
      Semaphores, Unlimited
      Mutexes, Unlimited
      Recursive mutexes, Unlimited
      Conditions, Unlimited
      Mailbox(Message), Unlimited
   Thread/Irq Communication
      Semaphores/Mutexes/Recursive Mutexed/Conditions can be used in Irq.
      (Some functions are limited, see Doc\TinyThread.doc)

2. Memory specifications
   RAM Space for a Task
      TaskStackSize + 68 Bytes(MAX)
      TaskStackSize + 28 Bytes(MIN)
   RAM Space for a Semaphore, 8 Bytes
   RAM Space for a Mutex, 8 Bytes
   RAM Space for a Recursive Mutex, 16 Bytes
   RAM Space for a Condition, 12 Bytes
   RAM Space for a Mailbox, 40 Bytes + user defined message buffer

3. Reference document
   Doc\TinyThread.doc

4. About the BSP
   This library contains part of NUC100 and M051 series BSP.
   To get full BSP libraries, please visit
       http://www.nuvoton.com/NuMicro


tinythread's People

Contributors

xhawk18 avatar

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.