diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-02-12 18:32:58 -0800 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-14 09:31:18 +0530 |
commit | 28d1dd2430a80d350c9a53a1f5be08de8c3f9dc1 (patch) | |
tree | af19d21d40c88c979f39c038c995bc7125eefe9e /platform/kendryte | |
parent | 70a474d2c24dc3e0c8841e6ef5cc96797deadbf5 (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 <olof@lixom.net>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform/kendryte')
-rw-r--r-- | platform/kendryte/k210/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/kendryte/k210/platform.h b/platform/kendryte/k210/platform.h index ddfdf15..b9e5a87 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 |