renesas-ra/ra: Fix SysTick clock source.

The SysTick_Config function must use the system/CPU clock to configure the
ticks.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2024-01-12 14:17:44 +02:00 committed by Damien George
parent 068aa28fc5
commit 4c7d955a62
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@
#define RA_RA_CONFIG_H_
#include <stdint.h>
#include "py/mpconfig.h"
#if defined(RA4M1) | defined(RA4W1)
#define SCI_CH_MAX 10

View File

@ -30,7 +30,7 @@
void ra_init(void) {
ra_int_init();
SysTick_Config(PCLK / 1000);
SysTick_Config(MICROPY_HW_MCU_SYSCLK / 1000);
internal_flash_init();
}