Skip to content

UCI-Rocket-Project/stm32hal-drivers

Repository files navigation

UCIRP STM32 HAL Drivers

To use the drivers, add this repository as a submodule with:

git submodule add https://github.com/UCI-Rocket-Project/stm32hal-drivers.git lib

Contributing

  1. Drivers for each device should be placed in a separate directory:
|--device_one
|  |--docs
|  |--examples
|  |--src
|  |  |- device_one.cc
|  |  |- device_one.h
|--device_two
|  |- device_two.cc
|  |- device_two.h
|-README.md
  1. Dedicated READMEs for each driver is recommended but not required, while comments within the source files that outline the essentials (function parameters, structs) are required.

  2. Drivers should have a descriptive name in the following format:

[deviceType]_[devicePartNumber]_[communicationProtocol]

For example, the MS5607 Altimeter Driver over SPI will have the name:

altimeter_ms5607_spi
  1. All supported STM32 product lines shall be referenced inside the header file via macros. For example:
#if defined(STM32F1)
#include "stm32f1xx_hal.h"
#endif
  1. All contributed code should be formatted with clang-format and screened with pre-commit.
    Main branch is locked and all changes require a PR.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages