ESP8266 Developer Zone The Official ESP8266 Forum 2014-12-24T13:53:54+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=100 2014-12-24T13:53:54+08:00 2014-12-24T13:53:54+08:00 https://bbs.espressif.com:443/viewtopic.php?t=100&p=340#p340 <![CDATA[RTOS V0.0.5 GPIO DRIVER(BETA)]]> Get the origional version from github and add this files ...

You can try like this :

Code:

    gpio_intr_handler_register(gpio_intr_handler);
    _xt_isr_unmask(1<<ETS_GPIO_INUM);

    GPIO_ConfigTypeDef test_conf;
    test_conf.GPIO_IntrType=GPIO_PIN_INTR_NEGEDGE;
    test_conf.GPIO_Mode=GPIO_Mode_Input;
    test_conf.GPIO_Pin=GPIO_Pin_14|GPIO_Pin_15;
    test_conf.GPIO_Pullup=GPIO_PullUp_DIS;
    gpio_config(&test_conf);



I have not tested it thoroughly , well, just have a look and give your suggestion ...

other driver of RTOS verion wil be released these days...
gpio-driver.rar

Statistics: Posted by costaud — Wed Dec 24, 2014 1:53 pm


]]>