diff options
| author | Avi Levkovich <avi@twine-s.com> | 2020-12-27 17:12:22 +0200 |
|---|---|---|
| committer | Avi Levkovich <avi@twine-s.com> | 2020-12-27 17:12:22 +0200 |
| commit | 7f6fe6268b58bed8cea7128cf5bfc3915aa64cf6 (patch) | |
| tree | 580312249020c21a5584a377f444f7dd0d156597 /Software/Embedded_SW/Embedded/Main.c | |
| parent | ad969db71a39b4854d744412eb6482c0391a4dd9 (diff) | |
| download | Tango-7f6fe6268b58bed8cea7128cf5bfc3915aa64cf6.tar.gz Tango-7f6fe6268b58bed8cea7128cf5bfc3915aa64cf6.zip | |
Update BTSR + indentify main board HW version
Diffstat (limited to 'Software/Embedded_SW/Embedded/Main.c')
| -rw-r--r-- | Software/Embedded_SW/Embedded/Main.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Main.c b/Software/Embedded_SW/Embedded/Main.c index 899143c36..9c647e847 100644 --- a/Software/Embedded_SW/Embedded/Main.c +++ b/Software/Embedded_SW/Embedded/Main.c @@ -238,6 +238,7 @@ int main(void) { FRESULT Fresult = FR_OK; time_t time_store = 0; + unsigned char Brd_ID = 0, Assy_ID = 0; // Enable interrupts to the processor. // ROM_IntMasterDisable(); @@ -355,8 +356,19 @@ int main(void) I2C_DispRFIDTask_Init();//I2C Task for dispensers & RFID + + Read_HW_Version(&Brd_ID, &Assy_ID); + + #ifdef USE_UART4_FOR_BTSR - BTSR_Init(); + if(Assy_ID > 0) + { + BTSR_Init(); + } + else + { + ReportWithPackageFilter(ThreadFilter,"BTSR - ERROR: Wrong HW Version",__FILE__,__LINE__,(int)Brd_ID,RpError,(int)Assy_ID,0); + } #endif #if defined(USE_RFID_LOGIC) || defined(USE_RFID_STUB) |
