Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

stm32f4xx: configurable usart module #34

Closed
forGGe opened this issue May 3, 2016 · 1 comment
Closed

stm32f4xx: configurable usart module #34

forGGe opened this issue May 3, 2016 · 1 comment

Comments

@forGGe
Copy link
Collaborator

forGGe commented May 3, 2016

Current implementation of the usart_bus platform module:

    // Configure UART
    // TODO: make configuration values be chosen at compile time
    init_struct.USART_BaudRate             = 115200;
    init_struct.USART_WordLength           = USART_WordLength_8b;
    init_struct.USART_StopBits             = USART_StopBits_1;
    init_struct.USART_Parity               = USART_Parity_No;
    init_struct.USART_Mode                 = USART_Mode_Rx | USART_Mode_Tx;
    init_struct.USART_HardwareFlowControl  = USART_HardwareFlowControl_None;

It contains hard-coded init values. The issue is about creating compile-time configuration of the particular usart bus.

@forGGe
Copy link
Collaborator Author

forGGe commented Jun 4, 2016

Merged.

@forGGe forGGe closed this as completed Jun 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant