8000 renesas-ra/ra: Fix SysTick clock source. · micropython/micropython@1f04808 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f04808

Browse files
iabdalkaderdpgeorge
authored andcommitted
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>
1 parent a75ca8a commit 1f04808

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ports/renesas-ra/ra/ra_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#define RA_RA_CONFIG_H_
2727

2828
#include <stdint.h>
29+
#include "py/mpconfig.h"
2930

3031
#if defined(RA4M1) | defined(RA4W1)
3132
#define SCI_CH_MAX 10

ports/renesas-ra/ra/ra_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
void ra_init(void) {
3232
ra_int_init();
33-
SysTick_Config(PCLK / 1000);
33+
SysTick_Config(MICROPY_HW_MCU_SYSCLK / 1000);
3434
internal_flash_init();
3535
}
3636

0 commit comments

Comments
 (0)
0