求助:GPIO初始化如何设置没有低电平跳变?

cmmm7565
Posts: 1
Joined: Sun Dec 03, 2023 5:51 am

求助:GPIO初始化如何设置没有低电平跳变?

Postby cmmm7565 » Sun Dec 03, 2023 2:35 pm

根据例程配置GPIO,此配置上电时gpio引脚会有300us的低电平才会拉高,,我看了配置里面是设置了上拉功能,,我需要配置的时候不会有这个低电平的跳变,,,这个应该怎么配置呀?有没有遇到过类似的问题的友友?

Code: Select all

/**************** LED_WHITE *************************/    
    gpio_reset_pin(LED_WHITE);
    /* Set the GPIO as a push/pull output */
    gpio_set_direction(LED_WHITE, GPIO_MODE_OUTPUT);

    /* Set the GPIO level according to the state (LOW or HIGH)*/
    gpio_set_level(LED_WHITE, 1);
 

Who is online

Users browsing this forum: No registered users and 86 guests