Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello,
I'm trying to use the CC1310 I2C slave controller in combination with TI-RTOS.
I have looked that the solution described in the following post, but due to power restrictions a task-driven polled implementation will not work in my setup...
The documentation say that no slave controller driver is implemented, so I guess that I have to write my own...
When writing my own driver I get stuck on how to register interrupt service routines. I have tried to register my own interrupt service routines using the API-functions provided in driverlib\i2c.h, but I get compile/linker errors. I have traced the ISR registration problem and it seems that TI-RTOS takes control and moves the Interrupt vector table to RAM...
I also have trouble figuring out how the status and Interrupt flags work in the I2C slave controller. I have tried to write a polled driver based on the example above. When I try to detect start and stop conditions using that raw interrupt flags through SRIS the status flags in SSTAT is cleared, something I did not expect...
I would greatly appreciate help on how to register and get the I2C slave controller hardware interrupts to work with TI-RTOS or any other information that might help me get an I2C slave working.
Regards,
Lars Mattsson