mbed-os github
Dependencies: ADS1015 Faulhaber HTU21D_mod MS5837_potless Sensor_Head_RevB_3 USBDevice_dfu Utilsdfu beep
Fork of ARNSRS_testDFU by
Diff: main.cpp
- Revision:
- 51:16a055fd287c
- Parent:
- 49:a7432da60647
- Child:
- 52:4e36a88711d6
diff -r 82c4cfb954c4 -r 16a055fd287c main.cpp --- a/main.cpp Thu May 24 23:42:37 2018 +0000 +++ b/main.cpp Wed May 30 13:02:01 2018 +0000 @@ -33,6 +33,8 @@ #define PIN_V_PILES_DIGI PC_3 #define PIN_V_USB_DIGI PA_0 +USBSerial serialMonit; + //#define OUTPUT(...) { NVIC_DisableIRQ(USART3_IRQn); serialMonit.printf(__VA_ARGS__); fflush(stdout);NVIC_EnableIRQ(USART3_IRQn);} #define OUTPUT(...) { NVIC_DisableIRQ(USART2_IRQn); serialMonit.printf(__VA_ARGS__); fflush(stdout);NVIC_EnableIRQ(USART2_IRQn);} #define IHM(...) { NVIC_DisableIRQ(USART3_IRQn); display.printf(__VA_ARGS__); fflush(stdout);NVIC_EnableIRQ(USART3_IRQn);} @@ -154,17 +156,6 @@ //Buzzer Beep buzzer(PC_8); -void __initialize_hardware_early(void){ - if ( *((unsigned long *) 0x10007FF0) = 0xDEADBEEF ){ - *((unsigned long *) 0x10007FF0) = 0xCAFEFEED; - UTILS::DFU(); - while(1); - } else { - USBSerial serialMonit;//( 0x0483 , 0x5740 , 0x0001 , true ) ; A declarer en dur dans la lib - SystemInit();} - } - - void Affichage() {