GithubHelp home page GithubHelp logo

yahiafarghaly / vtal Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 121 KB

vTAL (Virtual Timer Abstraction Layer) aims to provide a standard interface for using multiple of virtual timers simultaneously while one physical timer is presented on the target system.

License: MIT License

CMake 0.08% C 98.52% Shell 0.01% Assembly 1.38%
timers abstraction standard virtual-timers logical-timers embedded multiple-timers linux arm avr

vtal's Introduction

vTAL - Virtual Timer Abstraction Layer

vTAL with small v aims to provide a standard interface for using multiple of virtual timers simultaneously while a one physical timer is presented on the target system.

vTAL represents standard APIs call for the application layer of a certain software while underneath providing low level APIs calls of the physical timer so it can be ported on any system and get the benefit of using so many virtual timers as you want while the system has only one hardware timer.

The project is mainly aimed to be used in an embedded software environment but also, it can be used with Linux/Windows OS environment.

The project consists of two main parts which are standarized as shown in the following figure:

  • vTAL (Virtual Timer Abstraction Layer).
  • HTAL (Hardware Timer Abstraction Layer).

vTAL description

This is the part which involves with the application developing. It is very abstracted so you don't feel the details of the hardware timer.

HTAL description

This layer contains standard APIs which each one expected to do a certain functionlity such that vTAL algorithm for handling too many virtual timers can work properly. It implies the details implementation of the working with the hardware timer.

What makes it special

  • To use vTAL, you only need to write the implementation of HTAL APIs for the target system. And write it for a single shot timer case.
  • The implementation of vTAL doesn't depend on memory allocation on heap. Only array in the stack and the size is configured from vTALConfig.h
  • Nice interface of anything exist around.
  • Written only in C and compliant to ISO 9899:1990 as possible.

Documentations

It is ported to

  • Any OS based on Linux Kernel(> v2.6)
  • Stellaris LM4F120XL (ARM based) using one physical 32-bit timer. (WTIMER0A)
  • AVR Atmega16/32 using 8-bit timer.(Timer0)

ToDo

  • Port & Test it on Windows.

vtal's People

Contributors

yahiafarghaly avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ador3lora

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.