Re: Custom board PIO - philosophy

2021-05-30 Thread TimH
Thanks Alan, I'd forgotten that there's a board-specific sam_mcan.c file (I'm so bogged down creating the correct arch. mcan driver for this processor; based on the one for the samv7)! I will put my custom stuff in there. Obvious now you made me think about it :) On 30/05/2021 11:42, Alan

Re: Custom board PIO - philosophy

2021-05-30 Thread Alan Carvalho de Assis
Hi Tim, Normally an arch CAN driver doesn't have this enable pin or other similar GPIO. But if you plan to do it for your custom driver, it is better to use a generic solution, like the CAN TX/RX pins do. Also UART, SPI and I2C uses this solution. Creating an #ifdef for each board inside your dr