STM32F042 registry wrongly showing missing USART2

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
Post Reply
ulikoehler
Posts: 71
Joined: Tue Mar 17, 2015 2:32 am
Been thanked: 3 times

STM32F042 registry wrongly showing missing USART2

Post by ulikoehler »

Hi,
I just noticed a possible bug in the STM32F0 registry.
At line 840, stm32_registry.h (current git master) defined

Code: Select all

#define STM32_HAS_USART2                    FALSE

under the condition

Code: Select all

#elif defined(STM32F042x6)


However, from the datasheet http://www.st.com/web/en/resource/technical/document/datasheet/DM00105814.pdf it is clearly visible that the STM32F042x family always has two USARTs (without any exceptions).

I therefore suggest to change line 840 to

Code: Select all

#define STM32_HAS_USART2                    TRUE


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

Re: STM32F042 registry wrongly showing missing USART2

Post by Giovanni »

Hi,

Thanks fixing.

Giovanni
Post Reply