STM32G0xx patches

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
mobyfab
Posts: 484
Joined: Sat Nov 19, 2011 6:47 pm
Has thanked: 21 times
Been thanked: 31 times

STM32G0xx patches

Post by mobyfab »

Hello,

I'm submitting a couple patches to get more features out of the G0.

First is to fix CRC defines (they all have CRC)
Second is to add a weak IRQ handler definition for USB-C PD.

For the second patch, the implementation is minimal (we don't have UCPD in stm32_registry.h) but it should work for everyone since it's a weak stub.
Attachments
g0x-patches.zip
(1.4 KiB) Downloaded 188 times
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32G0xx patches

Post by Giovanni »

Hi,

The patch is problematic because it uses a GCC-specific attribute, the code is supposed to be compiler-agnostic.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32G0xx patches

Post by Giovanni »

I added the CRC fix, I am working on a proper shared handler like it is done for USARTs etc, it should be ready later today.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32G0xx patches

Post by Giovanni »

Hi,

I added a shared handler, see stm32_usb1_ucpd1_2.inc to see the general direction for shared IRQs, it is not yet enabled on G0 because I need to update all mcuconf.h files 1st.

Giovanni
Post Reply