/makair-firmware

🧠 Firmware for the MakAir's microcontroller

Primary LanguageC++OtherNOASSERTION

Ventilator Firmware

Versions

See CHANGELOG.md.

Pre-compiled binaries are available in the Releases section.

Documentation

Code documentation can be found there.

How To Build?

In order to setup your environment and build the code, please follow the following commands (for MacOS):

  1. brew install arduino-cli
  2. arduino-cli config init --additional-urls https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
  3. arduino-cli core update-index
  4. arduino-cli core install STM32:stm32
  5. arduino-cli lib install LiquidCrystal && arduino-cli lib install "Analog Buttons" && arduino-cli lib install OneButton

Then, compile the project:

arduino-cli compile --fqbn STM32:stm32:Nucleo_64:opt=o3std,pnum=NUCLEO_F411RE --verbose srcs/respirator.cpp --output output/respirator-production

Configuration

High-level configuration options are available and documented in includes/config.h.

Low-level configuration options can be found in includes/parameters.h.

Sonar analysis

The following version of software are build and analysed.

Software Mode Hardware Valve version Link
integration-test HW1 pinch valve respirator-integration-test-HW1
integration-test HW2 pinch valve respirator-integration-test-HW2
production HW1 pinch valve respirator-production-HW1
production HW2 pinch valve respirator-production-HW2
qualification HW1 pinch valve respirator-qualification-HW1
qualification HW2 pinch valve respirator-qualification-HW2