diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-05-26 12:06:14 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2021-05-26 13:11:06 +0200 |
commit | 1c893b540454ffd46e72cf0fce9e7e6d962195b5 (patch) | |
tree | 636075660e821a1b1bc563287975b4a4b9fd5773 /include | |
parent | c6fd88e37cacbdcb7adc470bc18e7f700a113e58 (diff) | |
download | ethos-u-core-driver-1c893b540454ffd46e72cf0fce9e7e6d962195b5.tar.gz |
Optimizations21.05-rc3
Removing the ASSERT() makro using assert() instead. assert() is better
controlled with the NDEBUG define.
Using uintptr_t instead of uint32_t * for the NPU base address. This
saves a division by 4 in the register read and write functions.
Change-Id: I65a91fe35dc63666e50bdf7a756ad15b56dc66e9
Diffstat (limited to 'include')
-rw-r--r-- | include/ethosu_device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ethosu_device.h b/include/ethosu_device.h index 35f7924..0221ad1 100644 --- a/include/ethosu_device.h +++ b/include/ethosu_device.h @@ -56,7 +56,7 @@ enum ethosu_error_codes struct ethosu_device { - volatile uint32_t *base_address; + volatile uintptr_t base_address; uint32_t proto; uint32_t pmcr; uint32_t pmccntr[2]; |