wwatson4506 / Ra8876LiteTeensy

Teensy RA8876 Driver
14 stars 7 forks source link

Remove code that resets the Flexio on every read/write... #28

Closed KurtE closed 1 week ago

KurtE commented 1 week ago

That is I commented out all of the: p->CTRL |= FLEXIO_CTRL_SWRST; Lines, so it does not consistently reset the Flexio object. So other objects might work on same flexio...

Code in place also, that if I am already in that mode don't need to do anything.

Updated the read and write single... to clear out the others settings.

So far it appears to work.

Added Debug code under #ifdef DEBUG and the like. Turned off... also DEBUG_FLEXIO, which has a function to print out flexio configuration, like:


FlexIO(0x20006504) Index: 1 - FlexIO_Config_SnglBeat_Read
CCM_CDCDR: 33f71f92
CCM FlexIO1: 0 FlexIO2: 3 FlexIO3: 3000
VERID:1010001 PARAM:2200808 CTRL:0 PIN: 30ff0
SHIFTSTAT:0 SHIFTERR=0 TIMSTAT=0
SHIFTSIEN:0 SHIFTEIEN=0 TIMIEN=0
SHIFTSDEN:0 SHIFTSTATE=0
SHIFTCTL: 00000000 00000000 00000000 00810401 00000000 00000000 00000000 00000000
SHIFTCFG: 00000000 00000000 00000000 00070000 00000000 00000000 00000000 00000000
TIMCTL:dc31081 0 0 0
TIMCFG:2210 0 0 0
TIMCMP:11d 0 0 0