summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtish Patra <[email protected]>2019-02-12 18:32:58 -0800
committerAnup Patel <[email protected]>2019-02-14 09:31:18 +0530
commit28d1dd2430a80d350c9a53a1f5be08de8c3f9dc1 (patch)
treeaf19d21d40c88c979f39c038c995bc7125eefe9e
parent70a474d2c24dc3e0c8841e6ef5cc96797deadbf5 (diff)
platform: Use CSR_<FOO> instead of <foo> 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 <[email protected]> Signed-off-by: Atish Patra <[email protected]>
-rw-r--r--platform/kendryte/k210/platform.h2
1 files changed, 1 insertions, 1 deletions
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