Skip to content

Purdue-Solar/common-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common Lib

Includes some frequently used pieces of code for STM32 microcontrollers.

C headers

  • bit_operations.h - Useful extended bitwise operations (set, extract, rotate, reverse endianness, etc.)
  • delay.h - Simplified microsecond delay functions
  • stm32_includer.h - Simplifies generation of STM32 specific includes
  • timer_helpers.h - Helper functions for manipulating and get information from timers

C++ headers

  • errors.hpp - Manages creating and printing nested error messages
  • gpio_pin.hpp - Wrapper class for easily manipulating GPIO pins
  • high_precision_counter.hpp - Microsecond counter for measuring time over long periods
  • interrupt_queue.hpp - Queue to allow generating callbacks during interrupts that get run in a non-interrupt context
  • memory_operations.hpp - Simplified methods for reading and writing from byte arrays
  • scheduler.hpp - Class to run tasks at regular intervals

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published