/* Wait for the current IOM command to complete.  */
void am_hal_iom_poll_complete(uint32_t ui32Module)
/* Wait for the current IOM command to complete.  */
void am_hal_iom_poll_complete(uint32_t ui32Module)
{
    if ( ui32Module >= AM_REG_IOMSTR_NUM_MODULES )
    {
        return;
    }
    while ( g_bIomBusy[ui32Module] );
}