Skip to content

Commit

Permalink
Update Zephyr MSDK Hal based on MSDK PR: analogdevicesinc/msdk#1205
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 2, 2024
1 parent 6e05428 commit c485724
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

/******************************************************************************
*
* Copyright (C) 2024 Analog Devices, Inc.
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -191,7 +193,6 @@ extern "C" {
#define MXC_R_AFE_ADC_ONE_ADC_TRIM1 ((uint32_t)0x00F80002UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xF80002</tt> */
#define MXC_R_AFE_ADC_ONE_ANA_TRIM ((uint32_t)0x00F90002UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xF90002</tt> */
#define MXC_R_AFE_ADC_ONE_SYS_CTRL ((uint32_t)0x00FA0001UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xFA0001</tt> */
#define MXC_R_AFE_ADC_ONE_TS_CTRL ((uint32_t)0x00FC0001UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xFC0001</tt> */
/**@} end of group afe_adc_one_registers */

/**
Expand Down Expand Up @@ -2025,23 +2026,6 @@ extern "C" {

/**@} end of group AFE_ADC_ONE_SYS_CTRL_Register */

/**
* @ingroup afe_adc_one_registers
* @defgroup AFE_ADC_ONE_TS_CTRL AFE_ADC_ONE_TS_CTRL
* @brief Temperature Sensor Control
* @{
*/
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN_POS 0 /**< TS_CTRL_TS_EN Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN_POS)) /**< TS_CTRL_TS_EN Mask */

#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN_POS 1 /**< TS_CTRL_TS_CONV_EN Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN_POS)) /**< TS_CTRL_TS_CONV_EN Mask */

#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY_POS 2 /**< TS_CTRL_TS_INTG_RDY Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY_POS)) /**< TS_CTRL_TS_INTG_RDY Mask */

/**@} end of group AFE_ADC_ONE_TS_CTRL_Register */

#ifdef __cplusplus
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

/******************************************************************************
*
* Copyright (C) 2024 Analog Devices, Inc.
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -91,6 +93,7 @@ extern "C" {
#define MXC_R_AFE_ADC_ZERO_PGA ((uint32_t)0x000E0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0xE0001</tt> */
#define MXC_R_AFE_ADC_ZERO_WAIT_EXT ((uint32_t)0x000F0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0xF0001</tt> */
#define MXC_R_AFE_ADC_ZERO_WAIT_START ((uint32_t)0x00100001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x100001</tt> */
#define MXC_R_AFE_ADC_ZERO_PART_ID ((uint32_t)0x00110003UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x110003</tt> */
#define MXC_R_AFE_ADC_ZERO_SYSC_SEL ((uint32_t)0x00120003UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x120003</tt> */
#define MXC_R_AFE_ADC_ZERO_SYS_OFF_A ((uint32_t)0x00130003UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x130003</tt> */
#define MXC_R_AFE_ADC_ZERO_SYS_OFF_B ((uint32_t)0x00140003UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x140003</tt> */
Expand Down Expand Up @@ -190,8 +193,6 @@ extern "C" {
#define MXC_R_AFE_ADC_ZERO_ADC_TRIM1 ((uint32_t)0x00780002UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x780002</tt> */
#define MXC_R_AFE_ADC_ZERO_ANA_TRIM ((uint32_t)0x00790002UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x790002</tt> */
#define MXC_R_AFE_ADC_ZERO_SYS_CTRL ((uint32_t)0x007A0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x7A0001</tt> */
#define MXC_R_AFE_ADC_ZERO_TS_CTRL ((uint32_t)0x007C0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x7C0001</tt> */
#define MXC_R_AFE_ADC_ZERO_PART_ID ((uint32_t)0x00910003UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x910003</tt> */
/**@} end of group afe_adc_zero_registers */

/**
Expand Down Expand Up @@ -554,6 +555,20 @@ extern "C" {

/**@} end of group AFE_ADC_ZERO_WAIT_EXT_Register */

/**
* @ingroup afe_adc_zero_registers
* @defgroup AFE_ADC_ZERO_PART_ID AFE_ADC_ZERO_PART_ID
* @brief Silicon Revision ID
* @{
*/
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS 0 /**< PART_ID_REV_ID Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x1FUL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */

#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS 5 /**< PART_ID_ADC_SEL Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL ((uint32_t)(0x1UL << MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS)) /**< PART_ID_ADC_SEL Mask */

/**@} end of group AFE_ADC_ZERO_PART_ID_Register */

/**
* @ingroup afe_adc_zero_registers
* @defgroup AFE_ADC_ZERO_SYSC_SEL AFE_ADC_ZERO_SYSC_SEL
Expand Down Expand Up @@ -2011,37 +2026,6 @@ extern "C" {

/**@} end of group AFE_ADC_ZERO_SYS_CTRL_Register */

/**
* @ingroup afe_adc_zero_registers
* @defgroup AFE_ADC_ZERO_TS_CTRL AFE_ADC_ZERO_TS_CTRL
* @brief Temperature Sensor Control
* @{
*/
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN_POS 0 /**< TS_CTRL_TS_EN Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN_POS)) /**< TS_CTRL_TS_EN Mask */

#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN_POS 1 /**< TS_CTRL_TS_CONV_EN Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN_POS)) /**< TS_CTRL_TS_CONV_EN Mask */

#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY_POS 2 /**< TS_CTRL_TS_INTG_RDY Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY_POS)) /**< TS_CTRL_TS_INTG_RDY Mask */

/**@} end of group AFE_ADC_ZERO_TS_CTRL_Register */

/**
* @ingroup afe_adc_zero_registers
* @defgroup AFE_ADC_ZERO_PART_ID AFE_ADC_ZERO_PART_ID
* @brief Silicon Revision ID
* @{
*/
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS 0 /**< PART_ID_REV_ID Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x1FUL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */

#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS 5 /**< PART_ID_ADC_SEL Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL ((uint32_t)(0x1UL << MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS)) /**< PART_ID_ADC_SEL Mask */

/**@} end of group AFE_ADC_ZERO_PART_ID_Register */

#ifdef __cplusplus
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ extern "C" {
#define MXC_R_AFE_ADC_ONE_ADC_TRIM1 ((uint32_t)0x00F80002UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xF80002</tt> */
#define MXC_R_AFE_ADC_ONE_ANA_TRIM ((uint32_t)0x00F90002UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xF90002</tt> */
#define MXC_R_AFE_ADC_ONE_SYS_CTRL ((uint32_t)0x00FA0001UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xFA0001</tt> */
#define MXC_R_AFE_ADC_ONE_TS_CTRL ((uint32_t)0x00FC0001UL) /**< Offset from AFE_ADC_ONE Base Address: <tt> 0xFC0001</tt> */
/**@} end of group afe_adc_one_registers */

/**
Expand Down Expand Up @@ -563,7 +562,10 @@ extern "C" {
* @{
*/
#define MXC_F_AFE_ADC_ONE_PART_ID_REV_ID_POS 0 /**< PART_ID_REV_ID Position */
#define MXC_F_AFE_ADC_ONE_PART_ID_REV_ID ((uint32_t)(0x7UL << MXC_F_AFE_ADC_ONE_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */
#define MXC_F_AFE_ADC_ONE_PART_ID_REV_ID ((uint32_t)(0x1FUL << MXC_F_AFE_ADC_ONE_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */

#define MXC_F_AFE_ADC_ONE_PART_ID_ADC_SEL_POS 5 /**< PART_ID_ADC_SEL Position */
#define MXC_F_AFE_ADC_ONE_PART_ID_ADC_SEL ((uint32_t)(0x1UL << MXC_F_AFE_ADC_ONE_PART_ID_ADC_SEL_POS)) /**< PART_ID_ADC_SEL Mask */

/**@} end of group AFE_ADC_ONE_PART_ID_Register */

Expand Down Expand Up @@ -2024,23 +2026,6 @@ extern "C" {

/**@} end of group AFE_ADC_ONE_SYS_CTRL_Register */

/**
* @ingroup afe_adc_one_registers
* @defgroup AFE_ADC_ONE_TS_CTRL AFE_ADC_ONE_TS_CTRL
* @brief Temperature Sensor Control
* @{
*/
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN_POS 0 /**< TS_CTRL_TS_EN Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_EN_POS)) /**< TS_CTRL_TS_EN Mask */

#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN_POS 1 /**< TS_CTRL_TS_CONV_EN Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_CONV_EN_POS)) /**< TS_CTRL_TS_CONV_EN Mask */

#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY_POS 2 /**< TS_CTRL_TS_INTG_RDY Position */
#define MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ONE_TS_CTRL_TS_INTG_RDY_POS)) /**< TS_CTRL_TS_INTG_RDY Mask */

/**@} end of group AFE_ADC_ONE_TS_CTRL_Register */

#ifdef __cplusplus
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ extern "C" {
#define MXC_R_AFE_ADC_ZERO_ADC_TRIM1 ((uint32_t)0x00780002UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x780002</tt> */
#define MXC_R_AFE_ADC_ZERO_ANA_TRIM ((uint32_t)0x00790002UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x790002</tt> */
#define MXC_R_AFE_ADC_ZERO_SYS_CTRL ((uint32_t)0x007A0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x7A0001</tt> */
#define MXC_R_AFE_ADC_ZERO_TS_CTRL ((uint32_t)0x007C0001UL) /**< Offset from AFE_ADC_ZERO Base Address: <tt> 0x7C0001</tt> */
/**@} end of group afe_adc_zero_registers */

/**
Expand Down Expand Up @@ -563,7 +562,10 @@ extern "C" {
* @{
*/
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS 0 /**< PART_ID_REV_ID Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x3FUL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */
#define MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID ((uint32_t)(0x1FUL << MXC_F_AFE_ADC_ZERO_PART_ID_REV_ID_POS)) /**< PART_ID_REV_ID Mask */

#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS 5 /**< PART_ID_ADC_SEL Position */
#define MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL ((uint32_t)(0x1UL << MXC_F_AFE_ADC_ZERO_PART_ID_ADC_SEL_POS)) /**< PART_ID_ADC_SEL Mask */

/**@} end of group AFE_ADC_ZERO_PART_ID_Register */

Expand Down Expand Up @@ -2024,23 +2026,6 @@ extern "C" {

/**@} end of group AFE_ADC_ZERO_SYS_CTRL_Register */

/**
* @ingroup afe_adc_zero_registers
* @defgroup AFE_ADC_ZERO_TS_CTRL AFE_ADC_ZERO_TS_CTRL
* @brief Temperature Sensor Control
* @{
*/
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN_POS 0 /**< TS_CTRL_TS_EN Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_EN_POS)) /**< TS_CTRL_TS_EN Mask */

#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN_POS 1 /**< TS_CTRL_TS_CONV_EN Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_CONV_EN_POS)) /**< TS_CTRL_TS_CONV_EN Mask */

#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY_POS 2 /**< TS_CTRL_TS_INTG_RDY Position */
#define MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY ((uint8_t)(0x1UL << MXC_F_AFE_ADC_ZERO_TS_CTRL_TS_INTG_RDY_POS)) /**< TS_CTRL_TS_INTG_RDY Mask */

/**@} end of group AFE_ADC_ZERO_TS_CTRL_Register */

#ifdef __cplusplus
}
#endif
Expand Down
26 changes: 0 additions & 26 deletions MAX/Libraries/PeriphDrivers/Source/AFE/afe_adc_one_reva.svd
Original file line number Diff line number Diff line change
Expand Up @@ -2789,32 +2789,6 @@
</field>
</fields>
</register>
<register>
<name>TS_CTRL</name>
<description>Temperature Sensor Control</description>
<addressOffset>0x00FC0001</addressOffset>
<size>8</size>
<fields>
<field>
<name>TS_EN</name>
<description>Description not included</description>
<bitOffset>0</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>TS_CONV_EN</name>
<description>Description not included</description>
<bitOffset>1</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>TS_INTG_RDY</name>
<description>Description not included</description>
<bitOffset>2</bitOffset>
<bitWidth>1</bitWidth>
</field>
</fields>
</register>
</registers>
</peripheral>
<!-- AFE ADC1: Stacked Die -->
Expand Down
28 changes: 1 addition & 27 deletions MAX/Libraries/PeriphDrivers/Source/AFE/afe_adc_zero_reva.svd
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@
<register>
<name>PART_ID</name>
<description>Silicon Revision ID</description>
<addressOffset>0x00910003</addressOffset>
<addressOffset>0x00110003</addressOffset>
<fields>
<field>
<name>REV_ID</name>
Expand Down Expand Up @@ -2789,32 +2789,6 @@
</field>
</fields>
</register>
<register>
<name>TS_CTRL</name>
<description>Temperature Sensor Control</description>
<addressOffset>0x007C0001</addressOffset>
<size>8</size>
<fields>
<field>
<name>TS_EN</name>
<description>Description not included</description>
<bitOffset>0</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>TS_CONV_EN</name>
<description>Description not included</description>
<bitOffset>1</bitOffset>
<bitWidth>1</bitWidth>
</field>
<field>
<name>TS_INTG_RDY</name>
<description>Description not included</description>
<bitOffset>2</bitOffset>
<bitWidth>1</bitWidth>
</field>
</fields>
</register>
</registers>
</peripheral>
<!-- AFE ADC0: Stacked Die -->
Expand Down
2 changes: 1 addition & 1 deletion MAX/msdk_sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
aee8e41e31f0c2642c3e526aec5e849516f90e5f
bb1f929917cf228e0a539402ba3046ad164d6d65

0 comments on commit c485724

Please sign in to comment.