diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-11-18 15:10:55 -0500 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-11-18 15:10:55 -0500 |
| commit | cff905096851398315b22dca341e89ab657f12d8 (patch) | |
| tree | ed54c08d5abe79b44b63c2178c31d017321b87d8 /project/Core/Src/System/systick.c | |
| parent | b1dbfba428fe51d17f4f99e843a37a2b4eff47b2 (diff) | |
| download | 340-repo-Sowgro-cff905096851398315b22dca341e89ab657f12d8.tar.gz 340-repo-Sowgro-cff905096851398315b22dca341e89ab657f12d8.tar.bz2 340-repo-Sowgro-cff905096851398315b22dca341e89ab657f12d8.zip | |
complete activity 13
Diffstat (limited to '')
| -rw-r--r-- | project/Core/Src/System/systick.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project/Core/Src/System/systick.c b/project/Core/Src/System/systick.c index f9e2470..5d4d259 100644 --- a/project/Core/Src/System/systick.c +++ b/project/Core/Src/System/systick.c @@ -20,7 +20,7 @@ void init_systick() s->CSR &= ~1; s->CSR |= 1<<2; s->CSR |= 1<<1; // enable interrupt - s->RVR = 78124; // 100 ms + s->RVR = 79; s->CSR |= 1; } @@ -60,7 +60,7 @@ int check_systick() { static uint32_t count = 0; void SysTick_Handler() { - player_action_tick(count++); + count++; } uint32_t systick_get_count() { |
