eeprom stuff

This commit is contained in:
2020-11-05 14:38:10 +01:00
parent 019f1b5cd0
commit cc24dc9640
4 changed files with 112 additions and 12 deletions

View File

@ -6,6 +6,7 @@
#include <main.h>
#include <usart.h>
#include <adc.h>
#include <spi.h>
#include <PontCoopScheduler.h>
@ -14,6 +15,7 @@
#include <mbusComm.h>
#include <logger.h>
#include <frontend.h>
#include <eeprom.h>
void my_setup_1() {
schInit();
@ -182,6 +184,8 @@ void my_setup_2() {
show(LED_RED, OFF);
show(LED_GREEN, ON);
eepromInit();
frontendInit();
frontendSetThreshold(240);
@ -224,3 +228,8 @@ void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
}
}
void HAL_SPI_TxCpltCallback(SPI_HandleTypeDef *hspi) {
if (hspi == &eepromSpi) {
eepromSpiTxCpltCallback(hspi);
}
}