RTOS V0.0.5 GPIO DRIVER(BETA)

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

RTOS V0.0.5 GPIO DRIVER(BETA)

Postby costaud » Wed Dec 24, 2014 1:53 pm

This version of gpio driver is a STM32-like version...
Get the origional version from github and add this files ...

You can try like this :

Code: Select all

    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...
Attachments
gpio-driver.rar
(14.62 KiB) Downloaded 862 times

Who is online

Users browsing this forum: No registered users and 211 guests