Move variables to CCM RAM

This commit is contained in:
2020-08-23 21:51:34 +02:00
parent 149c5715c6
commit cc6e922d1b
2 changed files with 11 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ bool __attribute__((optimize("O3"))) systick_ticks_have_passed(uint64_t start_ti
*/
void __attribute__((optimize("O3"))) SysTick_Handler()
{
static uint32_t pre_tick = 0UL;
static uint32_t IN_SECTION(.ccm.bss) pre_tick = 0UL;
pre_tick++;
if (pre_tick == 10) {
@@ -121,5 +121,6 @@ void __attribute__((optimize("O3"))) SysTick_Handler()
wait_tick_ms++;
global_tick_ms++;
}
lcd_tick_100us++;
}