tonton81 / FlexCAN_T4

FlexCAN (CAN 2.0 / CANFD) Library for Teensy 3.x and 4.0
https://forum.pjrc.com/threads/56035-FlexCAN_T4-FlexCAN-for-Teensy-4
MIT License
196 stars 66 forks source link

Alternative pins are not avaliable after FlexCan started on Teensy 3.5 an 3.6 #15

Closed opelpanfan closed 4 years ago

opelpanfan commented 4 years ago

ALT pins not available as GIO pins after CAN started. Pin 29 and 30 affected on Teensy 3.5 and 3.6

PR ALT_35_36 raised with a fix in FlexCAN_T4.tpp lines 576, 579, 644, 647 I believe are wrong as pins set to 0 pins should be reset back to GPIO state using PORT_PCR_MUX(1)