AM273x MCU+ SDK  08.04.00
GPIO Migration Guide

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.

API changes

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.

<tr>
    <td>GPIO_setConfig
    <td>\ref GPIO_setTrigType
    <td>In MCU+SDK, this GPIO_setConfig is separated into sub APIs such as \ref GPIO_setTrigType, \ref GPIO_setDirMode.
</tr>
































<tr>
    <td>GPIO_disableInt
    <td>None
    <td>In MCU+SDK, Bank interrupt disable is available instead of specific pin.
</tr>
<tr>
    <td>GPIO_enableInt
    <td>None
    <td>In MCU+SDK, Bank interrupt enable is available instead of specific pin.
</tr>
<tr>
    <td>GPIO_init
    <td>None
    <td>Removed as abstraction is done with simplified APIs.
</tr>
<tr>
    <td>GPIO_setCallback
    <td>None
    <td>Not Applicable.
</tr>
<tr>
    <td>GPIO_toggle
    <td>None
    <td>None
</tr>

Important Notes

  • In MCU+ SDK, users are recommended to use SysConfig as this will greatly simplify the task of driver configuration.

See Also