Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

Commit

Permalink
Breaking change: Update of GPIO special function mapping (#1204)
Browse files Browse the repository at this point in the history
The API `uCellGpioConfigSpecialFunction()` has a breaking change to its parameter `specialFunction ` due to the update of `uCellGpioSpecialFunction_t` enum.
A new parameter (`U_CELL_GPIO_SPECIAL_FUNCTION_INPUT_WITH_INTERRUPT`) is added and few values are remapped.
  • Loading branch information
SaqibAkram-Doit authored Oct 3, 2024
1 parent f052a4d commit 22708b2
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions cell/api/u_cell_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ typedef enum {
* the interface manual of your module for details.
*/
typedef enum {
U_CELL_GPIO_SPECIAL_FUNCTION_OUTPUT = 0,
U_CELL_GPIO_SPECIAL_FUNCTION_INPUT = 1,
U_CELL_GPIO_SPECIAL_FUNCTION_NETWORK_STATUS_INDICATION = 2,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_SUPPLY_ENABLE = 3,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_DATA_READY = 4,
Expand All @@ -123,22 +125,24 @@ typedef enum {
U_CELL_GPIO_SPECIAL_FUNCTION_MASTER_CLOCK_GENERATION = 14,
U_CELL_GPIO_SPECIAL_FUNCTION_UART_INTERFACE = 15,
U_CELL_GPIO_SPECIAL_FUNCTION_WIFI_ENABLE = 16,
U_CELL_GPIO_SPECIAL_FUNCTION_RING_INDICATOR = 17,
U_CELL_GPIO_SPECIAL_FUNCTION_LAST_GASP = 18,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_ANTENNA_OR_LNA_CONTROL = 19,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_PULSE_GNSS = 20,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_PULSE_OUTPUT = 21,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_STAMP_OF_EXTERNAL_INTERRUPT = 22,
U_CELL_GPIO_SPECIAL_FUNCTION_FAST_POWER_OFF = 23,
U_CELL_GPIO_SPECIAL_FUNCTION_LWM2M_PULSE = 24,
U_CELL_GPIO_SPECIAL_FUNCTION_HARDWARE_FLOW_CONTROL = 25,
U_CELL_GPIO_SPECIAL_FUNCTION_ANTENNA_DYNAMIC_TUNING = 26,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_TIME_PULSE_INPUT = 27,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_TIME_STAMP_OF_EXTERNAL_INTERRUPT = 28,
U_CELL_GPIO_SPECIAL_FUNCTION_DTR_POWER_SAVING = 29,
U_CELL_GPIO_SPECIAL_FUNCTION_32_KHZ_OUTPUT = 30,
U_CELL_GPIO_SPECIAL_FUNCTION_SAFE_MEMORY_AND_POWER_OFF = 31,
U_CELL_GPIO_SPECIAL_FUNCTION_UPSV_CONTROL = 32,
U_CELL_GPIO_SPECIAL_FUNCTION_INPUT_WITH_INTERRUPT = 17,
U_CELL_GPIO_SPECIAL_FUNCTION_RING_INDICATOR = 18,
U_CELL_GPIO_SPECIAL_FUNCTION_LAST_GASP = 19,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_ANTENNA_OR_LNA_CONTROL = 20,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_PULSE_GNSS = 21,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_PULSE_OUTPUT = 22,
U_CELL_GPIO_SPECIAL_FUNCTION_TIME_STAMP_OF_EXTERNAL_INTERRUPT = 23,
U_CELL_GPIO_SPECIAL_FUNCTION_FAST_POWER_OFF = 24,
U_CELL_GPIO_SPECIAL_FUNCTION_LWM2M_PULSE = 25,
U_CELL_GPIO_SPECIAL_FUNCTION_HARDWARE_FLOW_CONTROL = 26,
U_CELL_GPIO_SPECIAL_FUNCTION_ANTENNA_DYNAMIC_TUNING = 27,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_TIME_PULSE_INPUT = 28,
U_CELL_GPIO_SPECIAL_FUNCTION_EXTERNAL_GNSS_TIME_STAMP_OF_EXTERNAL_INTERRUPT = 29,
U_CELL_GPIO_SPECIAL_FUNCTION_DTR_POWER_SAVING = 30,
// GPIO MODE 31 is not supported.
U_CELL_GPIO_SPECIAL_FUNCTION_32_KHZ_OUTPUT = 32,
U_CELL_GPIO_SPECIAL_FUNCTION_SAFE_MEMORY_AND_POWER_OFF = 33,
U_CELL_GPIO_SPECIAL_FUNCTION_UPSV_CONTROL = 34,
U_CELL_GPIO_SPECIAL_FUNCTION_PAD_DISABLED = 255
} uCellGpioSpecialFunction_t;

Expand Down

0 comments on commit 22708b2

Please sign in to comment.