From c148b0d69de8ac93b94ad932e81a4933dba37019 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Wed, 15 Jun 2022 09:17:53 +0200 Subject: [PATCH] Corrected naming convention of a parameter. --- source/port/ARM_CORTEXM/GCC/tbxcomp.s | 4 ++-- source/port/ARM_CORTEXM/Keil/tbxcomp.s | 4 ++-- source/port/LINUX/tbxport.c | 6 +++--- source/tbxport.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/port/ARM_CORTEXM/GCC/tbxcomp.s b/source/port/ARM_CORTEXM/GCC/tbxcomp.s index 93a69ca..5f70f7c 100644 --- a/source/port/ARM_CORTEXM/GCC/tbxcomp.s +++ b/source/port/ARM_CORTEXM/GCC/tbxcomp.s @@ -73,8 +73,8 @@ TbxPortInterruptsDisable: ** by writing the value of the CPU status register that was returned by ** TbxPortInterruptsDisable(). ** Prototype: -** void TbxPortInterruptsRestore(tTbxPortCpuSR prev_cpu_sr); -** \param prev_cpu_sr The previous value of the CPU status register from right before +** void TbxPortInterruptsRestore(tTbxPortCpuSR prevCpuSr); +** \param prevCpuSr The previous value of the CPU status register from right before ** the interrupts where disabled. This value is returned by function ** TbxPortInterruptsDisable(). ** diff --git a/source/port/ARM_CORTEXM/Keil/tbxcomp.s b/source/port/ARM_CORTEXM/Keil/tbxcomp.s index e47ee35..13dee23 100644 --- a/source/port/ARM_CORTEXM/Keil/tbxcomp.s +++ b/source/port/ARM_CORTEXM/Keil/tbxcomp.s @@ -66,8 +66,8 @@ TbxPortInterruptsDisable FUNCTION ;** by writing the value of the CPU status register that was returned by ;** TbxPortInterruptsDisable(). ;** Prototype: -;** void TbxPortInterruptsRestore(tTbxPortCpuSR prev_cpu_sr); -;** \param prev_cpu_sr The previous value of the CPU status register from right before +;** void TbxPortInterruptsRestore(tTbxPortCpuSR prevCpuSr); +;** \param prevCpuSr The previous value of the CPU status register from right before ;** the interrupts where disabled. This value is returned by function ;** TbxPortInterruptsDisable(). ;** diff --git a/source/port/LINUX/tbxport.c b/source/port/LINUX/tbxport.c index edc9f48..89c197d 100644 --- a/source/port/LINUX/tbxport.c +++ b/source/port/LINUX/tbxport.c @@ -94,15 +94,15 @@ tTbxPortCpuSR TbxPortInterruptsDisable(void) ** function TbxPortInterruptsDisable() was previously called. It does this ** by writing the value of the CPU status register that was returned by ** TbxPortInterruptsDisable(). -** \param prev_cpu_sr The previous value of the CPU status register from right before +** \param prevCpuSr The previous value of the CPU status register from right before ** the interrupts where disabled. This value is returned by function ** TbxPortInterruptsDisable(). ** ****************************************************************************************/ -void TbxPortInterruptsRestore(tTbxPortCpuSR prev_cpu_sr) +void TbxPortInterruptsRestore(tTbxPortCpuSR prevCpuSr) { /* Should the simulated global interrupts be restored to the enabled state? */ - if (prev_cpu_sr == TBX_PORT_CPU_SR_IRQ_EN) + if (prevCpuSr == TBX_PORT_CPU_SR_IRQ_EN) { /* Simulate enabling the global interrupts by no longer locking out other threads. */ (void)pthread_mutex_unlock(&critSectMutex); diff --git a/source/tbxport.h b/source/tbxport.h index aff8373..d420be5 100644 --- a/source/tbxport.h +++ b/source/tbxport.h @@ -46,7 +46,7 @@ extern "C" { * Function prototypes ****************************************************************************************/ tTbxPortCpuSR TbxPortInterruptsDisable(void); -void TbxPortInterruptsRestore(tTbxPortCpuSR prev_cpu_sr); +void TbxPortInterruptsRestore(tTbxPortCpuSR prevCpuSr); #ifdef __cplusplus