From 591e1ef211a77e775237ef6568d9fd6286cf2c8c Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Mon, 2 Mar 2026 17:00:46 +0100 Subject: [PATCH] Fix the comments on MTIME in the headers as well This comment is in autogenerated header files... Still. --- src/rp2350/hardware_regs/include/hardware/regs/sio.h | 2 +- src/rp2350/hardware_structs/include/hardware/structs/sio.h | 2 +- src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rp2350/hardware_regs/include/hardware/regs/sio.h b/src/rp2350/hardware_regs/include/hardware/regs/sio.h index c4cb2904..59570377 100644 --- a/src/rp2350/hardware_regs/include/hardware/regs/sio.h +++ b/src/rp2350/hardware_regs/include/hardware/regs/sio.h @@ -2132,7 +2132,7 @@ #define SIO_MTIME_CTRL_EN_ACCESS "RW" // ============================================================================= // Register : SIO_MTIME -// Description : Read/write access to the high half of RISC-V Machine-mode +// Description : Read/write access to the low half of RISC-V Machine-mode // timer. This register is shared between both cores. If both // cores write on the same cycle, core 1 takes precedence. #define SIO_MTIME_OFFSET _u(0x000001b0) diff --git a/src/rp2350/hardware_structs/include/hardware/structs/sio.h b/src/rp2350/hardware_structs/include/hardware/structs/sio.h index 49a452c8..71cee126 100644 --- a/src/rp2350/hardware_structs/include/hardware/structs/sio.h +++ b/src/rp2350/hardware_structs/include/hardware/structs/sio.h @@ -249,7 +249,7 @@ typedef struct { uint32_t _pad3[2]; _REG_(SIO_MTIME_OFFSET) // SIO_MTIME - // Read/write access to the high half of RISC-V Machine-mode timer + // Read/write access to the low half of RISC-V Machine-mode timer // 0xffffffff [31:0] MTIME (0x00000000) io_rw_32 mtime; diff --git a/src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h b/src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h index ba5d206d..b1be4998 100644 --- a/src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h +++ b/src/rp2_common/cmsis/stub/CMSIS/Device/RP2350/Include/RP2350.h @@ -4017,7 +4017,7 @@ typedef struct { /*!< SIO Structure interrupts are routed to normal system-level interrupt lines as well as to the MIP.MTIP inputs on the RISC-V cores. */ __IM uint32_t RESERVED3[2]; - __IOM uint32_t MTIME; /*!< Read/write access to the high half of RISC-V Machine-mode timer. + __IOM uint32_t MTIME; /*!< Read/write access to the low half of RISC-V Machine-mode timer. This register is shared between both cores. If both cores write on the same cycle, core 1 takes precedence. */ __IOM uint32_t MTIMEH; /*!< Read/write access to the high half of RISC-V Machine-mode timer.