This section describes the differences between GPIO APIs of MCU+ SDK and Processor SDK RTOS (PDK). This can be used as a migration aid when moving from Processor SDK RTOS (PDK) to MCU+ SDK.
In MCU+ SDK, the GPIO APIs are simplified. Most of the CSL and LLD are merged into single API. Refer GPIO for more details.
There are changes in functions names, structure names and macro names. The changes in function names are listed below.
PDK | MCU+ SDK | Change Description / Remarks |
---|---|---|
GPIO_setConfig | GPIO_setDirMode | In MCU+SDK, this GPIO_setConfig is separated into sub APIs such as GPIO_setTrigType, GPIO_setDirMode. |
GPIO_write | GPIO_pinWriteHigh | API rename along with interface parameter changes. |
GPIO_write | GPIO_pinWriteLow | API rename along with interface parameter changes. |
GPIO_read | GPIO_pinRead | API rename along with interface parameter changes. |
None | GPIO_pinOutValueRead | In MCU+SDK, this API can be used to determine the output logic level(value) on a specified GPIO pin. |
GPIO_setConfig | GPIO_setTrigType | In MCU+SDK, this GPIO_setConfig is separated into sub APIs such as GPIO_setTrigType, GPIO_setDirMode. |
None | GPIO_bankIntrEnable | In MCU+SDK, this API can be used to enable the bank interrupt. |
None | GPIO_bankIntrDisable | In MCU+SDK, this API can be used to disable the bank interrupt. |
None | GPIO_getIntrStatus | In MCU+SDK, this API can be used to determine the enabled interrupt status of a specified pin. |
GPIO_clearInt | GPIO_clearIntrStatus | In MCU+SDK, this API can be used to clear the enabled interrupt status of a specified pin. |
None | GPIO_getBankIntrStatus | In MCU+SDK, this API is used to return the interrupt status of the specified bank. |
None | GPIO_clearBankIntrStatus | In MCU+SDK, this API is used to clear the interrupt status of the specified bank. |
GPIO_disableInt | None | In MCU+SDK, Bank interrupt disable is available instead of specific pin. |
GPIO_enableInt | None | In MCU+SDK, Bank interrupt enable is available instead of specific pin. |
GPIO_init | None | Removed as abstraction is done with simplified APIs. |
GPIO_setCallback | None | Not Applicable. |
GPIO_toggle | None | None |