pse-firmware/Core/Src/PSE_unit.c

21 lines
408 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*i,
.volume = 0,
.set_volume = 0,
};
}
}