Skip to content

Commit a081ba8

Browse files
authored
Fix variable name mismatch, mpu_wrappers type mismatch. (#1181)
Fix variable name mismatch introduced by #1166. Fix MPU v2 wrappers incorrectly using UBaseType_t instead of BaseType.
1 parent de276eb commit a081ba8

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

include/mpu_prototypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,12 +346,12 @@ TickType_t MPU_xTimerGetExpiryTime( TimerHandle_t xTimer ) FREERTOS_SYSTEM_CALL;
346346
* with all the APIs. */
347347
TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName,
348348
const TickType_t xTimerPeriodInTicks,
349-
const UBaseType_t uxAutoReload,
349+
const BaseType_t xAutoReload,
350350
void * const pvTimerID,
351351
TimerCallbackFunction_t pxCallbackFunction ) PRIVILEGED_FUNCTION;
352352
TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName,
353353
const TickType_t xTimerPeriodInTicks,
354-
const UBaseType_t uxAutoReload,
354+
const BaseType_t xAutoReload,
355355
void * const pvTimerID,
356356
TimerCallbackFunction_t pxCallbackFunction,
357357
StaticTimer_t * pxTimerBuffer ) PRIVILEGED_FUNCTION;

portable/Common/mpu_wrappers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1806,15 +1806,15 @@
18061806
portRAISE_PRIVILEGE();
18071807
portMEMORY_BARRIER();
18081808

1809-
vTimerSetReloadMode( xTimer, uxAutoReload );
1809+
vTimerSetReloadMode( xTimer, xAutoReload );
18101810
portMEMORY_BARRIER();
18111811

18121812
portRESET_PRIVILEGE();
18131813
portMEMORY_BARRIER();
18141814
}
18151815
else
18161816
{
1817-
vTimerSetReloadMode( xTimer, uxAutoReload );
1817+
vTimerSetReloadMode( xTimer, xAutoReload );
18181818
}
18191819
}
18201820
#endif /* if ( configUSE_TIMERS == 1 ) */

portable/Common/mpu_wrappers_v2.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3558,10 +3558,10 @@
35583558
#if ( configUSE_TIMERS == 1 )
35593559

35603560
void MPU_vTimerSetReloadModeImpl( TimerHandle_t xTimer,
3561-
const UBaseType_t uxAutoReload ) PRIVILEGED_FUNCTION;
3561+
const BaseType_t xAutoReload ) PRIVILEGED_FUNCTION;
35623562

35633563
void MPU_vTimerSetReloadModeImpl( TimerHandle_t xTimer,
3564-
const UBaseType_t uxAutoReload ) /* PRIVILEGED_FUNCTION */
3564+
const BaseType_t xAutoReload ) /* PRIVILEGED_FUNCTION */
35653565
{
35663566
TimerHandle_t xInternalTimerHandle = NULL;
35673567
int32_t lIndex;
@@ -3579,7 +3579,7 @@
35793579

35803580
if( xInternalTimerHandle != NULL )
35813581
{
3582-
vTimerSetReloadMode( xInternalTimerHandle, uxAutoReload );
3582+
vTimerSetReloadMode( xInternalTimerHandle, xAutoReload );
35833583
}
35843584
}
35853585
}
@@ -3733,7 +3733,7 @@
37333733

37343734
TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName,
37353735
const TickType_t xTimerPeriodInTicks,
3736-
const UBaseType_t uxAutoReload,
3736+
const BaseType_t xAutoReload,
37373737
void * const pvTimerID,
37383738
TimerCallbackFunction_t pxCallbackFunction ) /* PRIVILEGED_FUNCTION */
37393739
{
@@ -3745,7 +3745,7 @@
37453745

37463746
if( lIndex != -1 )
37473747
{
3748-
xInternalTimerHandle = xTimerCreate( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, MPU_TimerCallback );
3748+
xInternalTimerHandle = xTimerCreate( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, MPU_TimerCallback );
37493749

37503750
if( xInternalTimerHandle != NULL )
37513751
{
@@ -3768,7 +3768,7 @@
37683768

37693769
TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName,
37703770
const TickType_t xTimerPeriodInTicks,
3771-
const UBaseType_t uxAutoReload,
3771+
const BaseType_t xAutoReload,
37723772
void * const pvTimerID,
37733773
TimerCallbackFunction_t pxCallbackFunction,
37743774
StaticTimer_t * pxTimerBuffer ) /* PRIVILEGED_FUNCTION */
@@ -3781,7 +3781,7 @@
37813781

37823782
if( lIndex != -1 )
37833783
{
3784-
xInternalTimerHandle = xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, uxAutoReload, pvTimerID, MPU_TimerCallback, pxTimerBuffer );
3784+
xInternalTimerHandle = xTimerCreateStatic( pcTimerName, xTimerPeriodInTicks, xAutoReload, pvTimerID, MPU_TimerCallback, pxTimerBuffer );
37853785

37863786
if( xInternalTimerHandle != NULL )
37873787
{

0 commit comments

Comments
 (0)