fixed wrong argument types

This commit is contained in:
stnolting 2020-07-16 16:14:48 +02:00
parent 192b9a3b1a
commit 5db0155c06
2 changed files with 4 additions and 4 deletions

View file

@ -46,9 +46,9 @@
int neorv32_cpu_irq_enable(uint8_t irq_sel);
int neorv32_cpu_irq_disable(uint8_t irq_sel);
uint64_t neorv32_cpu_get_cycle(void);
void neorv32_cpu_set_mcycle(uint32_t value);
void neorv32_cpu_set_mcycle(uint64_t value);
uint64_t neorv32_cpu_get_instret(void);
void neorv32_cpu_set_minstret(uint32_t value);
void neorv32_cpu_set_minstret(uint64_t value);
uint64_t neorv32_cpu_get_systime(void);
void neorv32_cpu_delay_ms(uint32_t time_ms);

View file

@ -117,7 +117,7 @@ uint64_t neorv32_cpu_get_cycle(void) {
*
* @param[in] value New value for mcycle[h] CSR (64-bit).
**************************************************************************/
void neorv32_cpu_set_mcycle(uint32_t value) {
void neorv32_cpu_set_mcycle(uint64_t value) {
union {
uint64_t uint64;
@ -168,7 +168,7 @@ uint64_t neorv32_cpu_get_instret(void) {
*
* @param[in] value New value for mcycle[h] CSR (64-bit).
**************************************************************************/
void neorv32_cpu_set_minstret(uint32_t value) {
void neorv32_cpu_set_minstret(uint64_t value) {
union {
uint64_t uint64;