Other Parts Discussed in Thread: HALCOGEN, , TMS570LS1224
I need to use pins LIN_TX and LIN_RX as GPIOs. I have to read both pins. What is the programming pattern to be followed?
1) in HALCoGen set pin TX and pin RX mode as GIO
2) in HALCoGenset pin TX and RX direction as a read (clearing out checkbox DIR)
3) in HALCoGen, tab driver, enable GIO driver
4) in my CCS project include "lin.h"
5) in my CCS project initialize gioInit()
6) read pin LIN TX with gioGetBit(linPORT, PIN_LIN_TX) and read pin LIN RX with gioGetBit(linPORT, PIN_LIN_RX)
Could you please double check if I'm correct? The problem I have I that I don't see what I'm supposed to read from LIN TX and RX
Regards