Skip to content

Commit

Permalink
Deprecated MXC_WUT_IntClear for MAX32655, 32665, 32657, 78000, 78002 …
Browse files Browse the repository at this point in the history
…in favor of MXC_WUT_ClearFlags for an updated naming scheme
  • Loading branch information
crsz20 committed Dec 11, 2024
1 parent df646bf commit 094d9ac
Show file tree
Hide file tree
Showing 17 changed files with 88 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Examples/MAX32655/WUT/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

void WUT_IRQHandler(void)
{
MXC_WUT_IntClear(MXC_WUT0);
MXC_WUT_ClearFlags(MXC_WUT0);
}

// *****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX32665/WUT/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
/***** Functions *****/
void WUT_IRQHandler(void)
{
MXC_WUT_IntClear();
MXC_WUT_ClearFlags();
}

// *****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX32680/WUT/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void setTrigger(int waitForTrigger)

void WUT_IRQHandler(void)
{
MXC_WUT_IntClear(MXC_WUT);
MXC_WUT_ClearFlags(MXC_WUT);
}

// *****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX78000/WUT/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void setTrigger(int waitForTrigger)

void WUT_IRQHandler(void)
{
MXC_WUT_IntClear();
MXC_WUT_ClearFlags();
}

// *****************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Examples/MAX78002/WUT/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void setTrigger(int waitForTrigger)

void WUT_IRQHandler(void)
{
MXC_WUT_IntClear();
MXC_WUT_ClearFlags();
}

// *****************************************************************************
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX32655/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,14 @@ uint32_t MXC_WUT_GetCount(mxc_wut_regs_t *wut);
* @brief Clear the timer interrupt.
* @param wut Pointer to Wakeup Timer instance to clear interrupts for.
*/
void MXC_WUT_IntClear(mxc_wut_regs_t *wut);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(mxc_wut_regs_t *wut);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX32657/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,14 @@ uint32_t MXC_WUT_GetCount(mxc_wut_regs_t *wut);
* @brief Clear the timer interrupt.
* @param wut Pointer to Wakeup Timer instance to clear interrupts for.
*/
void MXC_WUT_IntClear(mxc_wut_regs_t *wut);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(mxc_wut_regs_t *wut);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX32665/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,14 @@ uint32_t MXC_WUT_GetCount(void);
/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_IntClear(void);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(void);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(void);

/**
* @brief Get the timer interrupt status.
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX32680/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,14 @@ uint32_t MXC_WUT_GetCount(mxc_wut_regs_t *wut);
* @brief Clear the timer interrupt.
* @param wut Pointer to Wakeup Timer instance to clear interrupts for.
*/
void MXC_WUT_IntClear(mxc_wut_regs_t *wut);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(mxc_wut_regs_t *wut);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
Expand Down
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Include/MAX32690/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ uint32_t MXC_WUT_GetCount(mxc_wut_regs_t *wut);
* @brief Clear the timer interrupt.
*/
__attribute__((
deprecated("Use MXC_NVIC_SetVector instead. See nvic_table.h for more details.")))void
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(void);

/**
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX78000/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,14 @@ uint32_t MXC_WUT_GetCount(void);
/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_IntClear(void);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(void);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(void);

/**
* @brief Get the timer interrupt status.
Expand Down
9 changes: 8 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX78002/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ uint32_t MXC_WUT_GetCount(void);
/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_IntClear(void);
__attribute__((
deprecated("Use MXC_WUT_ClearFlags instead. See wut.h for more details.")))void
MXC_WUT_IntClear(void);

/**
* @brief Clear the timer interrupt.
*/
void MXC_WUT_ClearFlags(void);

/**
* @brief Get the timer interrupt status.
Expand Down
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/Source/WUT/wut_ai85.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ void MXC_WUT_IntClear(void)
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
void MXC_WUT_ClearFlags(void)
{
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
uint32_t MXC_WUT_IntStatus(void)
{
Expand Down Expand Up @@ -223,7 +229,7 @@ int MXC_WUT_Handler(void)
mxc_wut_complete_cb_t cbTemp;

/* Clear the interrupt flags */
MXC_WUT_IntClear();
MXC_WUT_ClearFlags();

if (!trimPending) {
return E_NO_ERROR;
Expand Down
6 changes: 6 additions & 0 deletions Libraries/PeriphDrivers/Source/WUT/wut_ai87.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ void MXC_WUT_IntClear(void)
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
void MXC_WUT_ClearFlags(void)
{
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
uint32_t MXC_WUT_IntStatus(void)
{
Expand Down
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/Source/WUT/wut_me14.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ void MXC_WUT_IntClear(void)
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
void MXC_WUT_ClearFlags(void)
{
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)MXC_WUT);
}

/* ************************************************************************* */
uint32_t MXC_WUT_IntStatus(void)
{
Expand Down Expand Up @@ -234,7 +240,7 @@ int MXC_WUT_Handler(void)
mxc_wut_complete_cb_t cbTemp;

/* Clear the interrupt flags */
MXC_WUT_IntClear();
MXC_WUT_ClearFlags();

if (!trimPending) {
return E_NO_ERROR;
Expand Down
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/Source/WUT/wut_me17.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ void MXC_WUT_IntClear(mxc_wut_regs_t *wut)
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)wut);
}

/* ************************************************************************* */
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut)
{
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)wut);
}

/* ************************************************************************* */
uint32_t MXC_WUT_IntStatus(mxc_wut_regs_t *wut)
{
Expand Down Expand Up @@ -223,7 +229,7 @@ int MXC_WUT_Handler(mxc_wut_regs_t *wut)
mxc_wut_complete_cb_t cbTemp;

/* Clear the interrupt flags */
MXC_WUT_IntClear(wut);
MXC_WUT_ClearFlags(wut);

if (!trimPending) {
return E_NO_ERROR;
Expand Down
8 changes: 7 additions & 1 deletion Libraries/PeriphDrivers/Source/WUT/wut_me30.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ void MXC_WUT_IntClear(mxc_wut_regs_t *wut)
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)wut);
}

/* ************************************************************************* */
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut)
{
MXC_WUT_RevA_IntClear((mxc_wut_reva_regs_t *)wut);
}

/* ************************************************************************* */
uint32_t MXC_WUT_IntStatus(mxc_wut_regs_t *wut)
{
Expand Down Expand Up @@ -223,7 +229,7 @@ int MXC_WUT_Handler(mxc_wut_regs_t *wut)
mxc_wut_complete_cb_t cbTemp;

/* Clear the interrupt flags */
MXC_WUT_IntClear(wut);
MXC_WUT_ClearFlags(wut);

if (!trimPending) {
return E_NO_ERROR;
Expand Down

0 comments on commit 094d9ac

Please sign in to comment.