Skip to content

Serial update #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 15, 2018
Merged

Serial update #264

merged 8 commits into from
Jun 15, 2018

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Jun 14, 2018

This PR includes several update around Serial feature;

  • Review Serial menu, 3 options:
    - Enabled with generic Serial: default, define HAL_UART_MODULE_ENABLED
    and instantiate Serial using SERIAL_UART_INSTANCE and PIN_SERIAL_RX/PIN_SERIAL_Tx
    - Enabled without generic Serial: define HAL_UART_MODULE_ENABLED
    - Disabled (No Serial): HAL_UART_MODULE_ENABLED not defined

    Allow to build without HAL_UART_MODULE_ENABLED (save memory)
    Now, HAL_UART_MODULE_ENABLED should not be defined in stm32yyxx_hal_conf.h

  • Add LPUART1 management

  • Fix serial_[rx|tx]_active functions

  • Clean up comments

  • Fix UART7 causes Nucleo F091RC to lock up #260

Review Serial menu, 3 options:
  - Enabled with generic Serial: default, define HAL_UART_MODULE_ENABLED
    and instanciate Serial using SERIAL_UART_INSTANCE and PIN_SERIAL_RX/PIN_SERIAL_Tx
  - Enabled without generic Serial: define HAL_UART_MODULE_ENABLED
  - Disabled (No Serial): HAL_UART_MODULE_ENABLED not defined

Allow to build without HAL_UART_MODULE_ENABLED (save memory)
Now, HAL_UART_MODULE_ENABLED should not be defined in stm32yyxx_hal_conf.h

Signed-off-by: Frederic Pillon <[email protected]>
@fpistm fpistm self-assigned this Jun 14, 2018
@fpistm fpistm added this to the 1.3.0 milestone Jun 14, 2018
@fpistm fpistm added the enhancement New feature or request label Jun 14, 2018
fpistm added 7 commits June 15, 2018 09:08
Signed-off-by: Frederic Pillon <[email protected]>
Backup domain is handled by HAL_RCCEx_PeriphCLKConfig() when changing
RTC clock source.
If one other peripheral uses LSE and RTC do not use it, force
reset of the backup domain will break this peripheral.

Signed-off-by: Frederic.Pillon <[email protected]>
Handle properly clock activation.

Signed-off-by: Frederic Pillon <[email protected]>
Avoid duplicated common settings
Use GPIO_SPEED_FREQ_VERY_HIGH if exists
Init OneBitSampling fields if exists

Signed-off-by: Frederic Pillon <[email protected]>
HAL_UART_GetState() return a combined value.
So mask needs to be applied before compare the value.

Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
__HAL_GET_PENDING_IT() read IT line status in
SYSCFG register which required to be clocked.

This set of registers is implemented only on STM32F09x
to collect all pending interrupt sources associated with
each interrupt line into a single register.
This allows users to check by single read which peripheral
requires service in case more than one source is associated
to the interrupt line.

Fix stm32duino#260

Signed-off-by: Frederic Pillon <[email protected]>
@fpistm fpistm merged commit 7f1b336 into stm32duino:master Jun 15, 2018
@fpistm fpistm deleted the Serial_update branch June 15, 2018 07:10
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull request Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant