Skip to content
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

Error in stm32u0xx_hal_pwr_ex.h documentation #3

Open
blackbird998 opened this issue Dec 18, 2024 · 1 comment
Open

Error in stm32u0xx_hal_pwr_ex.h documentation #3

blackbird998 opened this issue Dec 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation hal HAL-LL driver-related issue or pull-request. internal bug tracker Issue confirmed and logged into the internal bug tracking system pwr Power controller

Comments

@blackbird998
Copy link

Hi,
Starting from the line 227 in stm32u0xx_hal_pwr_ex.h

/** @defgroup PWREx_Flag  PWR Status Flags
  *        Elements values convention: 0000 0000 0XXY YYYYb
  *           - Y YYYY  : Flag position in the XX register (5 bits)
  *           - XX  : Status register (2 bits)
  *                 - 01: SR1 register
  *                 - 10: SR2 register
  *        The only exception is PWR_FLAG_WU, encompassing all
  *        wake-up flags and set to PWR_SR1_WUF.
  * @{
  */
[...]
#define PWR_FLAG_WUFI                        0x010FU             /*!< Wakeup on internal wakeup line            */
#define PWR_FLAG_FLASHRDY                    0x0207U             /*!< flash ready flag                          */
[...]

the XX status register bits seem to represent bits 8-9 and Y only bits 0-3 (0000 00XX 0000 YYYYb) and not 5-6 and 0-4 respectively (0000 0000 0XXY YYYYb).

Kind regards,
Adam

@ALABSTM ALABSTM added bug Something isn't working hal HAL-LL driver-related issue or pull-request. pwr Power controller labels Dec 18, 2024
@ALABSTM ALABSTM assigned KRASTM and unassigned TOUNSTM Dec 18, 2024
@KRASTM
Copy link
Contributor

KRASTM commented Dec 20, 2024

ST Internal Reference: 199231

@KRASTM KRASTM added internal bug tracker Issue confirmed and logged into the internal bug tracking system documentation Improvements or additions to documentation labels Dec 20, 2024
@KRASTM KRASTM moved this from To do to Analyzed in stm32cube-mcu-hal-dashboard Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation hal HAL-LL driver-related issue or pull-request. internal bug tracker Issue confirmed and logged into the internal bug tracking system pwr Power controller
Projects
Development

No branches or pull requests

4 participants