RedoX wrote:That's really cool. If you have a Git/Svn repository with your changes for the USB driver, I would be okay to have a look and see if I can help.
If I did that now I would make you cry or maybe LOL! Seriously though, I expected to be finishing probably by next Wednesday. If I have not commited it by then, please feel free to ping me and I will add a github repo with this so that we can work on it together.
RedoX wrote:Here's a new patch to add support for the Teensy3.1 to ChibiOS. This time, there is way less duplication. The only hack that I kept is for the PLL initialization to get 72MHz for the Teensy3.1. There must be a cleaner way to implement it, but for now, it works with my Teensy3.1... Please, have a look and tell me what you think about it.
It's still kinda big patch. I'll review it after the USB driver is done. I think there's lots of ways for we to make code even more reusable between different uC lines.
RedoX wrote:Any reason why st_lld and pal_lld are not in LLD/ ? They look the same for K20x and KL2x...
Also, I think there is a clean way to move serial_lld to LLD/ even if KL2x uses this UARTLP_Typedef for UART0 instead of the UART_Typedef. I don't have any board to test so I won't do it for now... but the KL25 Freedom is cheap so I might order one next time I need some parts. I think the spi_lld could also be moved to LLD/ since the KL2x family also has support for DMA.
The reason is that it was made with one specific model in mind and never tested on the others! My bad, I'll fix it in the near future. Thanks for the suggestions.