From 28d1dd2430a80d350c9a53a1f5be08de8c3f9dc1 Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Tue, 12 Feb 2019 18:32:58 -0800 Subject: [PATCH] platform: Use CSR_ instead of for csr_*() Some older toolchains may not have all the csr's defined. Update all the csr functions to use the CSR_ #define values instead of the toolchain defined values. Suggested-by: Olof Johansson Signed-off-by: Atish Patra --- platform/kendryte/k210/platform.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/kendryte/k210/platform.h b/platform/kendryte/k210/platform.h index ddfdf15b..b9e5a870 100644 --- a/platform/kendryte/k210/platform.h +++ b/platform/kendryte/k210/platform.h @@ -88,7 +88,7 @@ #define SPI1_BASE_ADDR (0x53000000U) #define SPI3_BASE_ADDR (0x54000000U) -#define read_cycle() csr_read(mcycle) +#define read_cycle() csr_read(CSR_MCYCLE) /* * PLIC External Interrupt Numbers