Skip to content

Commit

Permalink
Update Zephyr MSDK Hal based on MSDK PR: analogdevicesinc/msdk#1291
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 16, 2024
1 parent 013155c commit 868b3f8
Show file tree
Hide file tree
Showing 14 changed files with 418 additions and 114 deletions.
37 changes: 33 additions & 4 deletions MAX/Libraries/PeriphDrivers/Include/MAX32655/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,29 @@ 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.
* @param wut Pointer to Wakeup Timer instance to clear interrupt flags for.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt staus from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_IntStatus(mxc_wut_regs_t *wut);
__attribute__((deprecated("Use MXC_WUT_GetFlags instead. See wut.h for more details."))) uint32_t
MXC_WUT_IntStatus(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt status from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_GetFlags(mxc_wut_regs_t *wut);

/**
* @brief Set the timer compare count.
Expand Down Expand Up @@ -210,13 +225,27 @@ int MXC_WUT_GetTime(mxc_wut_regs_t *wut, uint32_t ticks, uint32_t *time, mxc_wut
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_Edge(mxc_wut_regs_t *wut);
__attribute__((deprecated("Use MXC_WUT_WaitForEdge instead. See wut.h for more details."))) void
MXC_WUT_Edge(mxc_wut_regs_t *wut);

/**
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_WaitForEdge(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
__attribute__((deprecated("Use MXC_WUT_StoreCount instead. See wut.h for more details."))) void
MXC_WUT_Store(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
void MXC_WUT_Store(mxc_wut_regs_t *wut);
void MXC_WUT_StoreCount(mxc_wut_regs_t *wut);

/**
* @brief Restore the DBB clock with the stored count and snapshot values.
Expand Down
37 changes: 33 additions & 4 deletions MAX/Libraries/PeriphDrivers/Include/MAX32657/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,29 @@ 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.
* @param wut Pointer to Wakeup Timer instance to clear interrupt flags for.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt staus from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_IntStatus(mxc_wut_regs_t *wut);
__attribute__((deprecated("Use MXC_WUT_GetFlags instead. See wut.h for more details."))) uint32_t
MXC_WUT_IntStatus(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt status from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_GetFlags(mxc_wut_regs_t *wut);

/**
* @brief Set the timer compare count.
Expand Down Expand Up @@ -208,13 +223,27 @@ int MXC_WUT_GetTime(mxc_wut_regs_t *wut, uint32_t ticks, uint32_t *time, mxc_wut
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_Edge(mxc_wut_regs_t *wut);
__attribute__((deprecated("Use MXC_WUT_WaitForEdge instead. See wut.h for more details."))) void
MXC_WUT_Edge(mxc_wut_regs_t *wut);

/**
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_WaitForEdge(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
__attribute__((deprecated("Use MXC_WUT_StoreCount instead. See wut.h for more details."))) void
MXC_WUT_Store(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
void MXC_WUT_Store(mxc_wut_regs_t *wut);
void MXC_WUT_StoreCount(mxc_wut_regs_t *wut);

/**
* @brief Restore the DBB clock with the stored count and snapshot values.
Expand Down
33 changes: 29 additions & 4 deletions MAX/Libraries/PeriphDrivers/Include/MAX32665/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,26 @@ 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.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
__attribute__((deprecated("Use MXC_WUT_GetFlags instead. See wut.h for more details."))) uint32_t
MXC_WUT_IntStatus(void);

/**
* @brief Get the timer interrupt status.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_IntStatus(void);
uint32_t MXC_WUT_GetFlags(void);

/**
* @brief Set the timer compare count.
Expand Down Expand Up @@ -203,12 +216,24 @@ int MXC_WUT_GetTime(uint32_t ticks, uint32_t *time, mxc_wut_unit_t *units);
/**
* @brief Wait for an edge of the WUT count register.
*/
void MXC_WUT_Edge(void);
__attribute__((deprecated("Use MXC_WUT_WaitForEdge instead. See wut.h for more details."))) void
MXC_WUT_Edge(void);

/**
* @brief Wait for an edge of the WUT count register.
*/
void MXC_WUT_WaitForEdge(void);

/**
* @brief Store the count and snapshot values.
*/
__attribute__((deprecated("Use MXC_WUT_StoreCount instead. See wut.h for more details."))) void
MXC_WUT_Store(void);

/**
* @brief Store the count and snapshot values.
*/
void MXC_WUT_Store(void);
void MXC_WUT_StoreCount(void);

/**
* @brief Restore the DBB clock with the stored count and snapshot values.
Expand Down
37 changes: 33 additions & 4 deletions MAX/Libraries/PeriphDrivers/Include/MAX32680/wut.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,29 @@ 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.
* @param wut Pointer to Wakeup Timer instance to clear interrupt flags for.
*/
void MXC_WUT_ClearFlags(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt status from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
__attribute__((deprecated("Use MXC_WUT_GetFlags instead. See wut.h for more details."))) uint32_t
MXC_WUT_IntStatus(mxc_wut_regs_t *wut);

/**
* @brief Get the timer interrupt status.
* @param wut Pointer to Wakeup Timer instance to get interrupt status from.
* @return Returns the interrupt status. 1 if interrupt has occurred.
*/
uint32_t MXC_WUT_IntStatus(mxc_wut_regs_t *wut);
uint32_t MXC_WUT_GetFlags(mxc_wut_regs_t *wut);

/**
* @brief Set the timer compare count.
Expand Down Expand Up @@ -210,13 +225,27 @@ int MXC_WUT_GetTime(mxc_wut_regs_t *wut, uint32_t ticks, uint32_t *time, mxc_wut
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_Edge(mxc_wut_regs_t *wut);
__attribute__((deprecated("Use MXC_WUT_WaitForEdge instead. See wut.h for more details."))) void
MXC_WUT_Edge(mxc_wut_regs_t *wut);

/**
* @brief Wait for an edge of the WUT count register.
* @param wut Pointer to Wakeup Timer instance to wait on.
*/
void MXC_WUT_WaitForEdge(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
__attribute__((deprecated("Use MXC_WUT_StoreCount instead. See wut.h for more details."))) void
MXC_WUT_Store(mxc_wut_regs_t *wut);

/**
* @brief Store the count and snapshot values.
* @param wut Pointer to Wakeup Timer instance to store count and snapshot values for.
*/
void MXC_WUT_Store(mxc_wut_regs_t *wut);
void MXC_WUT_StoreCount(mxc_wut_regs_t *wut);

/**
* @brief Restore the DBB clock with the stored count and snapshot values.
Expand Down
Loading

0 comments on commit 868b3f8

Please sign in to comment.