led toggle function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

led toggle function

788 次查看
deepa5
Contributor I

im using s32k344,led toggle function is not working(Siul2_Ip_Togglepin();)can you please suggest me how to use it with configuration

0 项奖励
回复
1 回复

770 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @deepa5

The function is declared as such:

 

void Siul2_Dio_Ip_TogglePins(Siul2_Dio_Ip_GpioType * const base,
                             Siul2_Dio_Ip_PinsChannelType pins
                            )
{
    SIUL2_DIO_IP_DEV_ASSERT(NULL_PTR != base);
    Siul2_Dio_Ip_TogglePinsRunTime(base, pins);
}

 

Since it asks GPIO port, and PINS, you can import the Siul_Dio_Ip_Example and use the toggle functions with the following parameters:

 

Siul2_Dio_Ip_TogglePins(LED_Q172_PORT, 1 << LED_Q172_PIN);

 

Best regards,
Julián

 

0 项奖励
回复