From 6964b91d7bb7efc7b7833502dcab31cad9a372ff Mon Sep 17 00:00:00 2001 From: EricB-ADI Date: Wed, 21 Aug 2024 15:49:09 -0500 Subject: [PATCH] Revert "fix(PeriphDrivers): Clarify GPIO drive strength enum documentation (#986)" This reverts commit a96ccc6b23e503b7d4e7d4075a530c4fda43309a. --- .../PeriphDrivers/Include/MAX32520/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32570/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32572/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32650/gpio.h | 24 ++++--------------- .../PeriphDrivers/Include/MAX32655/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32660/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32662/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32665/gpio.h | 24 ++++--------------- .../PeriphDrivers/Include/MAX32670/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32672/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32675/gpio.h | 24 ++++--------------- .../PeriphDrivers/Include/MAX32680/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX32690/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX78000/gpio.h | 22 ++++------------- .../PeriphDrivers/Include/MAX78002/gpio.h | 24 ++++--------------- 15 files changed, 64 insertions(+), 274 deletions(-) diff --git a/Libraries/PeriphDrivers/Include/MAX32520/gpio.h b/Libraries/PeriphDrivers/Include/MAX32520/gpio.h index e4f4eb499c..9a4028ca82 100644 --- a/Libraries/PeriphDrivers/Include/MAX32520/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32520/gpio.h @@ -127,26 +127,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32570/gpio.h b/Libraries/PeriphDrivers/Include/MAX32570/gpio.h index 16d643f945..93ba48c145 100644 --- a/Libraries/PeriphDrivers/Include/MAX32570/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32570/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32572/gpio.h b/Libraries/PeriphDrivers/Include/MAX32572/gpio.h index 6160c4d700..1ac45ff9d6 100644 --- a/Libraries/PeriphDrivers/Include/MAX32572/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32572/gpio.h @@ -127,26 +127,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32650/gpio.h b/Libraries/PeriphDrivers/Include/MAX32650/gpio.h index fe8d78730e..3908b760b1 100644 --- a/Libraries/PeriphDrivers/Include/MAX32650/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32650/gpio.h @@ -126,27 +126,13 @@ typedef enum { } mxc_gpio_vssel_t; /** - * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). + * @brief Enumeration type for drive strength configuration. */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32655/gpio.h b/Libraries/PeriphDrivers/Include/MAX32655/gpio.h index 14d13cf992..826deaeaf6 100644 --- a/Libraries/PeriphDrivers/Include/MAX32655/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32655/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32660/gpio.h b/Libraries/PeriphDrivers/Include/MAX32660/gpio.h index 0ec9e92ef3..7b6882ecd8 100644 --- a/Libraries/PeriphDrivers/Include/MAX32660/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32660/gpio.h @@ -105,26 +105,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32662/gpio.h b/Libraries/PeriphDrivers/Include/MAX32662/gpio.h index d3131883a6..7c1ce1d0ed 100644 --- a/Libraries/PeriphDrivers/Include/MAX32662/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32662/gpio.h @@ -125,26 +125,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32665/gpio.h b/Libraries/PeriphDrivers/Include/MAX32665/gpio.h index 4931988d60..3637e4abd4 100644 --- a/Libraries/PeriphDrivers/Include/MAX32665/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32665/gpio.h @@ -124,27 +124,13 @@ typedef enum { } mxc_gpio_vssel_t; /** - * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). + * @brief Enumeration type for drive strength configuration. */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32670/gpio.h b/Libraries/PeriphDrivers/Include/MAX32670/gpio.h index d8933256ed..6c12e686d1 100644 --- a/Libraries/PeriphDrivers/Include/MAX32670/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32670/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32672/gpio.h b/Libraries/PeriphDrivers/Include/MAX32672/gpio.h index 97b7983436..936199c079 100644 --- a/Libraries/PeriphDrivers/Include/MAX32672/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32672/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32675/gpio.h b/Libraries/PeriphDrivers/Include/MAX32675/gpio.h index 661becff7a..6839e0bad9 100644 --- a/Libraries/PeriphDrivers/Include/MAX32675/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32675/gpio.h @@ -125,27 +125,13 @@ typedef enum { } mxc_gpio_vssel_t; /** - * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). + * @brief Enumeration type for the voltage level on a given pin. */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, ///< Drive Strength 0 + MXC_GPIO_DRVSTR_1, ///< Drive Strength 1 + MXC_GPIO_DRVSTR_2, ///< Drive Strength 2 + MXC_GPIO_DRVSTR_3, ///< Drive Strength 3 } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32680/gpio.h b/Libraries/PeriphDrivers/Include/MAX32680/gpio.h index 8b6bbfd3b4..b4ddc6d375 100644 --- a/Libraries/PeriphDrivers/Include/MAX32680/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32680/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, ///< Drive Strength GPIO_DS[2][pin]=0b00 - MXC_GPIO_DRVSTR_1, ///< Drive Strength GPIO_DS[2][pin]=0b01 - MXC_GPIO_DRVSTR_2, ///< Drive Strength GPIO_DS[2][pin]=0b10 - MXC_GPIO_DRVSTR_3, ///< Drive Strength GPIO_DS[2][pin]=0b11 + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX32690/gpio.h b/Libraries/PeriphDrivers/Include/MAX32690/gpio.h index 9f93da57f5..5e5f3f1aae 100644 --- a/Libraries/PeriphDrivers/Include/MAX32690/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX32690/gpio.h @@ -127,26 +127,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0 = 0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX78000/gpio.h b/Libraries/PeriphDrivers/Include/MAX78000/gpio.h index 3d33787bd6..dc9499e9d3 100644 --- a/Libraries/PeriphDrivers/Include/MAX78000/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX78000/gpio.h @@ -126,26 +126,12 @@ typedef enum { /** * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /** diff --git a/Libraries/PeriphDrivers/Include/MAX78002/gpio.h b/Libraries/PeriphDrivers/Include/MAX78002/gpio.h index 42203ee4f4..efe98e938f 100644 --- a/Libraries/PeriphDrivers/Include/MAX78002/gpio.h +++ b/Libraries/PeriphDrivers/Include/MAX78002/gpio.h @@ -125,27 +125,13 @@ typedef enum { } mxc_gpio_vssel_t; /** - * @brief Enumeration type for drive strength on a given pin. - * This represents what the two GPIO_DS[2] (Drive Strength) - * registers are set to for a given GPIO pin; NOT the - * drive strength level. - * - * For example: - * MXC_GPIO_DRVSTR_0: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_1: GPIO_DS1[pin] = 0; GPIO_DS0[pin] = 1 - * MXC_GPIO_DRVSTR_2: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 0 - * MXC_GPIO_DRVSTR_3: GPIO_DS1[pin] = 1; GPIO_DS0[pin] = 1 - * - * Refer to the user guide and datasheet to select the - * appropriate drive strength. Note: the drive strength values - * are not linear, and can vary from pin-to-pin and the state - * of the GPIO pin (alternate function and voltage level). + * @brief Enumeration type for drive strength configuration. */ typedef enum { - MXC_GPIO_DRVSTR_0, /**< Drive Strength GPIO_DS[2][pin]=0b00 */ - MXC_GPIO_DRVSTR_1, /**< Drive Strength GPIO_DS[2][pin]=0b01 */ - MXC_GPIO_DRVSTR_2, /**< Drive Strength GPIO_DS[2][pin]=0b10 */ - MXC_GPIO_DRVSTR_3, /**< Drive Strength GPIO_DS[2][pin]=0b11 */ + MXC_GPIO_DRVSTR_0, /**< Drive Strength 0 */ + MXC_GPIO_DRVSTR_1, /**< Drive Strength 1 */ + MXC_GPIO_DRVSTR_2, /**< Drive Strength 2 */ + MXC_GPIO_DRVSTR_3, /**< Drive Strength 3 */ } mxc_gpio_drvstr_t; /**