pse-firmware/Core/Src/PSE_unit.c
2023-08-09 14:49:02 +02:00

21 lines
406 B
C

/*
* PSE_unit.c
*
* Created on: Aug 9, 2023
* Author: leo
*/
#include "PSE_unit.h"
// Dummy loading function until I decide between loading from SPIFlash or SD-MMC
void load_units(pse_unit* units, uint8_t unit_num){
for(int i = 0; i < unit_num; i++){
units[i] = (pse_unit){
.enabled = i%2,
.port = i,
.flow = 1500,
.volume = 0,
.set_volume = 0,
};
}
}