Skip to content

Conversation

@FRASTM
Copy link
Contributor

@FRASTM FRASTM commented Nov 7, 2024

Tests the ADC clock domain on the stm32g0 serie
Possible ADC clock sources are system clock or PLL_P or HSI

Running the tests/drivers/clock_control/stm32_clock_configuration/stm32_common_devices on the nucleo_g071rb
with boards/g0_i2c1_sysclk_lptim1_lsi.overlay, can detect the ADC clock sources :

  • STM32_SRC_SYSCLK
  • STM32_SRC_PLL_P
  • STM32_SRC_HSI

@FRASTM FRASTM force-pushed the test_g0_adc_clock branch from a15f2ad to c3120bc Compare November 7, 2024 17:19
@rruuaanng rruuaanng added platform: STM32 ST Micro STM32 area: Tests Issues related to a particular existing or missing test area: Clock Control labels Nov 8, 2024
@FRASTM FRASTM force-pushed the test_g0_adc_clock branch from c3120bc to 8114c24 Compare November 8, 2024 09:28
@FRASTM FRASTM marked this pull request as ready for review November 8, 2024 10:07
@zephyrbot zephyrbot requested a review from nordic-krch November 8, 2024 10:08
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's be more explicit on the clock in use

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nucleo_g071rb DTS gives SYSCLK as clock source for the ADC1

Comment on lines 104 to 116
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of these test cases doesn't have a matching test configuration and will end as dead code.

Copy link
Contributor Author

@FRASTM FRASTM Nov 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding #if defined(STM32_SRC_SYSCLK) and #if defined(STM32_SRC_HSI)

@FRASTM FRASTM force-pushed the test_g0_adc_clock branch 2 times, most recently from 7ef4f1a to 9c84a43 Compare November 19, 2024 14:04
Tests the ADC clock domain on the stm32g0 serie
Possible ADC clock sources are SYStem clock (default) or PLL_P.
No clock source HSI for the ADC tested here.

Signed-off-by: Francois Ramu <[email protected]>
@kartben
Copy link
Contributor

kartben commented Nov 29, 2024

ping @nordic-krch

@kartben kartben merged commit 1680887 into zephyrproject-rtos:main Nov 29, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Clock Control area: Tests Issues related to a particular existing or missing test platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants