begining of tx, but nothing work

TODO fix all !
This commit is contained in:
Rémi Heredero 2023-03-03 16:10:37 +01:00
parent 95af13e627
commit 8d56267f66

View File

@ -44,6 +44,7 @@
#include "mcc_generated_files/mcc.h" #include "mcc_generated_files/mcc.h"
#include "lcd/lcd.h" #include "lcd/lcd.h"
#include "measure.h" #include "measure.h"
#include "modbus.h"
#define MAX_COL 16 #define MAX_COL 16
/* /*
@ -60,6 +61,7 @@ void main(void)
Lcd_Init(); Lcd_Init();
adc_init(); adc_init();
modbus_init(0x80);
uint16_t offsetCurrent = 0; uint16_t offsetCurrent = 0;
offsetCurrent = measure_current(offsetCurrent); offsetCurrent = measure_current(offsetCurrent);
@ -108,6 +110,9 @@ void resetTMR0(void){
} }
void endFrame(void){ void endFrame(void){
TMR0_StopTimer();
modbus_analyse_and_answer();
// TODO // TODO
} }
/** /**