diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2021-05-25 09:55:22 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2021-07-02 17:11:13 +0100 |
commit | a489058d7b1d7bab8d0e4db53f98b7762d7482a2 (patch) | |
tree | 29b01fa2022bd90db8d782e7a203ebb5eadba055 /src/rtos/chibios.c | |
parent | 3ad52aa34f6763dddc2a903c255a09f7c7e21ed7 (diff) | |
download | riscv-openocd-a489058d7b1d7bab8d0e4db53f98b7762d7482a2.zip riscv-openocd-a489058d7b1d7bab8d0e4db53f98b7762d7482a2.tar.gz riscv-openocd-a489058d7b1d7bab8d0e4db53f98b7762d7482a2.tar.bz2 |
rtos: rename CamelCase symbols
Only one exported symbol from eCos is included in this patch.
The eCos code is left untouched to prevent conflicts with patches
currently under review.
While there, remove an unused camelcase macro
Change-Id: I8d22dec6e243c00665d99a8b8ba00474b4f088db
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6305
Tested-by: jenkins
Reviewed-by: Marc Schink <dev@zapb.de>
Diffstat (limited to 'src/rtos/chibios.c')
-rw-r--r-- | src/rtos/chibios.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rtos/chibios.c b/src/rtos/chibios.c index 2a23017..cb471b4 100644 --- a/src/rtos/chibios.c +++ b/src/rtos/chibios.c @@ -62,9 +62,9 @@ struct chibios_chdebug { uint8_t cf_off_time; /**< @brief Offset of @p p_time field. */ }; -#define GET_CH_KERNEL_MAJOR(codedVersion) ((codedVersion >> 11) & 0x1f) -#define GET_CH_KERNEL_MINOR(codedVersion) ((codedVersion >> 6) & 0x1f) -#define GET_CH_KERNEL_PATCH(codedVersion) ((codedVersion >> 0) & 0x3f) +#define GET_CH_KERNEL_MAJOR(coded_version) ((coded_version >> 11) & 0x1f) +#define GET_CH_KERNEL_MINOR(coded_version) ((coded_version >> 6) & 0x1f) +#define GET_CH_KERNEL_PATCH(coded_version) ((coded_version >> 0) & 0x3f) /** * @brief ChibiOS thread states. @@ -184,10 +184,10 @@ static int chibios_update_memory_signature(struct rtos *rtos) } /* Convert endianness of version field */ - const uint8_t *versionTarget = (const uint8_t *) + const uint8_t *versiontarget = (const uint8_t *) &signature->ch_version; signature->ch_version = rtos->target->endianness == TARGET_LITTLE_ENDIAN ? - le_to_h_u32(versionTarget) : be_to_h_u32(versionTarget); + le_to_h_u32(versiontarget) : be_to_h_u32(versiontarget); const uint16_t ch_version = signature->ch_version; LOG_INFO("Successfully loaded memory map of ChibiOS/RT target " |