comparison Discovery/Src/externCPU2bootloader.c @ 699:01f40cb1057e

Cleanup warnings: The code still contained several warnings which have now been resolved. Big thank you to Thomas :-)
author Ideenmodellierer
date Tue, 18 Oct 2022 20:56:19 +0200
parents 5ca177d2df5d
children
comparison
equal deleted inserted replaced
698:2c2b9c6eb089 699:01f40cb1057e
47 static uint8_t boot_write_memory(uint32_t address, uint8_t length_minus_1, uint8_t *data); 47 static uint8_t boot_write_memory(uint32_t address, uint8_t length_minus_1, uint8_t *data);
48 static uint8_t boot_erase_memory(void); 48 static uint8_t boot_erase_memory(void);
49 static void Bootloader_send_command(uint8_t command); 49 static void Bootloader_send_command(uint8_t command);
50 static void Bootloader_spi_single(uint8_t TxByte); 50 static void Bootloader_spi_single(uint8_t TxByte);
51 static void Bootloader_spi(uint16_t lengthData, uint8_t *aTxBuffer, uint8_t *aRxBuffer); 51 static void Bootloader_spi(uint16_t lengthData, uint8_t *aTxBuffer, uint8_t *aRxBuffer);
52 static void Bootloader_Error_Handler(void); 52 //static void Bootloader_Error_Handler(void);
53 53
54 /* Exported functions --------------------------------------------------------*/ 54 /* Exported functions --------------------------------------------------------*/
55 55
56 uint8_t extCPU2bootloader_start(uint8_t *version, uint16_t *chipID) 56 uint8_t extCPU2bootloader_start(uint8_t *version, uint16_t *chipID)
57 { 57 {
284 HAL_GPIO_WritePin(OSCILLOSCOPE_GPIO_PORT,OSCILLOSCOPE_PIN,GPIO_PIN_SET); // only for testing with Oscilloscope 284 HAL_GPIO_WritePin(OSCILLOSCOPE_GPIO_PORT,OSCILLOSCOPE_PIN,GPIO_PIN_SET); // only for testing with Oscilloscope
285 */ 285 */
286 } 286 }
287 287
288 288
289 /*
289 static void Bootloader_Error_Handler(void) 290 static void Bootloader_Error_Handler(void)
290 { 291 {
291 while(1); 292 while(1);
292 } 293 }
294 */