Skip to content

Commit

Permalink
Corrected naming convention of a parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
feaser committed Jun 15, 2022
1 parent 4132bdf commit c148b0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions source/port/ARM_CORTEXM/GCC/tbxcomp.s
Original file line number Diff line number Diff line change
Expand Up @@ -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().
**
Expand Down
4 changes: 2 additions & 2 deletions source/port/ARM_CORTEXM/Keil/tbxcomp.s
Original file line number Diff line number Diff line change
Expand Up @@ -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().
;**
Expand Down
6 changes: 3 additions & 3 deletions source/port/LINUX/tbxport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion source/tbxport.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extern "C" {
* Function prototypes
****************************************************************************************/
tTbxPortCpuSR TbxPortInterruptsDisable(void);
void TbxPortInterruptsRestore(tTbxPortCpuSR prev_cpu_sr);
void TbxPortInterruptsRestore(tTbxPortCpuSR prevCpuSr);


#ifdef __cplusplus
Expand Down

0 comments on commit c148b0d

Please sign in to comment.