commaai / panda

code powering the comma.ai panda
MIT License
1.53k stars 776 forks source link

STM32f4 CAN initialization cleanup #1855

Closed dzid26 closed 8 months ago

dzid26 commented 8 months ago

It's a small attempt to make those calls a little less spread out and keep CAN1,2,3 initializations in a single file. It was easier to analyze for me. Also removes #ifdef STM32F4 which was only necessary for the pedal which uses GPIO_AF9_CAN1.

See if you like, no big deal if closed.