I have code running in TI-RTOS on the Cortex M4 and in Linux on the Cortex A15.
How do I read and write GPIO ports? This is for bit banging.
Assume that all the bits are on the same GPIO port for your answer,
I need to test some Microchip devices on the evaluation board and have no SPI available. I will have them on the design but for now I need to bitbang the SPI.
I will need to access GPIO as outputs and inputs in both M4 and Linux beside this. My LIN driver needs to do some bit banging since there is no LIN port on this device.
Example below
Not likely the GPIO or bits I would use, just so you understand what I mean :
GPIO2 bits 0 and 5 on Linux
GPIO2 bits 1 and 4 on TI-RTOS on Cortex M4
Michel