Tool/software: TI-RTOS
Hello,
I am currently developing a custom application around the simple_central example. I have a custom PCB with the SABLE-X-R2 module on it with several buttons, sensors, and a display. I am trying to get the simple central application merged with another application that I have for reading sensors, talking over SPI with the display, and other things.
I am having trouble making sense of the flow of the functions in the simple_central.c file. I have two buttons on my board that I would like to use to navigate the menu for the example, but I don't want to have them as interrupts like defined in the board_key.c file. I tried calling just the SimpleCentral_startGapDiscovery(); and then the SimpleCentral_connectToFirstDevice(); in my own application thread, but it goes into an aport spin loop.
What is the proper way to go about merging the functionality from the simple_central example into a custom application? I have been unable to find documentation that goes over the specifics of the simple central example and the structure of the program.
Thanks,
Josh