Skip to content

juanic/sAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sAPI library for microcontrollers

This library implements a simple API that acts as a HAL (Hardware Abstraction Layer) for microcontrollers.

NOTE: Always use the released versions because these are tested all examples and the API documentation is consistent. The master branch may contain inconsistencies because this library is currently under development.

Included modules

Internal Peripherals

  • Data types.
  • Peripheral Map.
  • ISR Vector.
  • Board.
  • Tick.
  • GPIO.
  • UART.
  • ADC.
  • DAC.
  • I2C.
  • SPI.
  • RTC.
  • SCT.
  • Timer.
  • Sleep.

High Level modules

  • Delay. Use Tick module.
  • PWM. Use SCT and GPIO modules.
  • Circular Buffer.
  • Convert.
  • Print. Use UART and Convert modules.
  • Debug Print. Use Print module.
  • Console Print. Use Print module.

External Peripherals using sAPI

  • 7-segment display. Use GPIO and Delay modules.
  • Keypad. Use GPIO and Delay modules.
  • Angular Servo (0 to 180°). Use Timer and GPIO modules.
  • Magnetometer (compass) sensor HMC5883L. Use I2C module.

Every module includes an example.

Boards

Available for boards:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 91.3%
  • C++ 8.3%
  • Makefile 0.4%