Forked to initiate the Current Loop Gain
Dependencies: mbed QEI DmTftLibraryEx
Diff: main.cpp
- Revision:
- 22:12c555cade79
- Parent:
- 21:ab8027016a2c
- Child:
- 23:b9d23a2f390e
--- a/main.cpp Thu Jan 20 08:15:44 2022 +0000 +++ b/main.cpp Thu Jan 20 13:26:03 2022 +0000 @@ -13,22 +13,7 @@ DigitalOut SD_CS( D8 ); // MBED description of pin DigitalIn userButton( USER_BUTTON ); -//DigitalOut doD13 (D13); // MBED description of pin - -void PrintCompileSupportMessage( void ); - -/*! - * \brief Specify serial datarate for UART debug output - */ -void baud( int baudrate ) -{ - Serial s( USBTX, USBRX ); - s.baud( baudrate ); -} - int main (void){ - baud (115200); // LA: Usa "printf" sulla seriale di bordo - F_CS = 1; // LA: HW Initialization InProgress SD_CS = 1; // LA: HW Initialization InProgress @@ -36,20 +21,18 @@ // LA: FactoryReset se "userButton" premuto all'avvio // - if( userButton == 0 ) - { + if (userButton == 0) { FactoryReset( ); } - MenuInit( ); // LA: Inizializza il Display + MenuInit( ); // LA: Inizializza il Display while (1) { StabilusMenu (); } } -void FactoryReset( void ) -{ +void FactoryReset (void) { EepromFactoryReset( ); HAL_NVIC_SystemReset( ); }