Optimised BSS_Init.

This commit is contained in:
Dual Tachyon 2023-09-01 19:41:53 +01:00
parent 1398332c7f
commit c91da706ab

6
init.c
View File

@ -18,8 +18,8 @@
#include <stdint.h>
extern uint8_t __bss_start__[];
extern uint8_t __bss_end__[];
extern uint32_t __bss_start__[];
extern uint32_t __bss_end__[];
extern uint8_t flash_data_start[];
extern uint8_t sram_data_start[];
extern uint8_t sram_data_end[];
@ -29,7 +29,7 @@ void DATA_Init(void);
void BSS_Init(void)
{
uint8_t *pBss;
uint32_t *pBss;
for (pBss = __bss_start__; pBss < __bss_end__; pBss++) {
*pBss = 0;