blob: 4d698a13367be997ad2736c4971cc7b5edd88965 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
/**
@page RCC_ClockConfig RCC Clock Config example
@verbatim
******************************************************************************
* @file RCC/RCC_ClockConfig/readme.txt
* @author MCD Application Team
* @brief Description of the RCC Clock Config example.
******************************************************************************
*
* Copyright (c) 2019 STMicroelectronics. All rights reserved.
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
@endverbatim
@par Example Description
The main purpose of this example is to serve as a reference for clock configuration
operation needed by most of the BLE applications.
Thus it is just illustrating how to configure the system clock
and also how to configure the source clock of some other peripherals used
by BLE applications:
- RTC: clocked by LSE
- LPUART1: clocked by PCLK1
- USART1: clocked by PCLK2
- RFWKP: clocked by LSE
HSE is selected as system clock source, i.e. the system clock is running at 32 MHz.
@note On the STM32WB5MM-DK board, MCO pins aren't output to the STMOD+ connectors
thus generated system clock signal cannot be observed whith an oscilloscope.
@note The application need to ensure that the SysTick time base is always set to 1 millisecond
to have correct HAL operation.
@par Keywords
RCC, System, Clock Configuration, HSE
@par Directory contents
- RCC/RCC_ClockConfig/Inc/stm32wbxx_hal_conf.h HAL configuration file
- RCC/RCC_ClockConfig/Inc/stm32wbxx_it.h Interrupt handlers header file
- RCC/RCC_ClockConfig/Inc/main.h Header for main.c module
- RCC/RCC_ClockConfig/Src/stm32wbxx_it.c Interrupt handlers
- RCC/RCC_ClockConfig/Src/main.c Main program
- RCC/RCC_ClockConfig/Src/system_stm32wbxx.c STM32WBxx system source file
- RCC/RCC_ClockConfig/Src/stm32wbxx_hal_msp.c HAL MSP module
@par Hardware and Software environment
- This example runs on STM32WB5Mxx devices.
- This example has been tested with STM32WB5MM-DK
board and can be easily tailored to any other supported device
and development board.
@par How to use it ?
In order to make the program work, you must do the following :
- Open your preferred toolchain
- Rebuild all files and load your image into target memory
- Run the example
* <h3><center>© COPYRIGHT STMicroelectronics</center></h3>
*/
|