Other Parts Discussed in Thread: SYSBIOS, CC2650
Tool/software: TI-RTOS
I am running the CC2650MODA in standalone mode and using the CC2650EM examples since both of them have the 5XD pin compatibility. Using the PIN drivers i am able to blink the LED however when i run the default PWM example code(which uses the GPIO driver which itself seems to be an easier abstraction layer over the PIN driver?), it doesn't actually do anything. Just to test if the GPIO driver is working i modified the PWM code to blink an LED using GPIO_toggle(IOID_9); however the LED doesn't blink at all(it just glows). Following is the changed part of the PWM code -
void blink(){ GPIO_toggle(IOID_9); Task_sleep(500000/Clock_tickPeriod); GPIO_toggle(IOID_9); Task_sleep(500000/Clock_tickPeriod); } Void pwmLEDFxn(){ /* Loop forever incrementing the PWM duty */ while (1) { blink(); Task_sleep(1000); } }
I also included the #include <ti/sysbios/knl/Clock.h> header, however the project builds and even runs properly , no errors whatsoever , it just doesn't perform what its supposed to.
Any idea what is happening?
I referred to this issue which seems to the same, but they eventually end up using PIN driver. I would like to work with the abstraction that GPIO drivers provide. Please help with any tips.
I also couldn't find the GPIO driver's documentation in the RTOS documentation which does have documentation for the PIN driver though. The only way to know what GPIO Driver's functions do is to read the GPIO.h file. Is the driver still under development?