Skip to content

Commit 5b16ccf

Browse files
author
Kristian Nielsen
committed
Few NUCLEO-F302R8 fixups
1 parent ddb2577 commit 5b16ccf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ For advanced user, you can use the repository: see the [Using git repository](ht
3030
* [Nucleo F207ZG](http://www.st.com/en/evaluation-tools/nucleo-f207zg.html)
3131

3232
* STM32F3
33+
* [Nucleo F302R8](http://www.st.com/en/evaluation-tools/nucleo-f302r8.html)
3334
* [Nucleo F303RE](http://www.st.com/en/evaluation-tools/nucleo-f303re.html)
3435
* [Nucleo F303K8](http://www.st.com/en/evaluation-tools/nucleo-f303k8.html)
3536

Diff for: variants/NUCLEO_F302R8/variant.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ WEAK void SystemClock_Config(void)
116116
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
117117
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
118118
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL9;
119-
RCC_OscInitStruct.PLL.PREDIV = RCC_PREDIV_DIV1;
120119
HAL_RCC_OscConfig(&RCC_OscInitStruct);
121120

122121
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK

Diff for: variants/NUCLEO_F302R8/variant.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ enum {
4646
PA9, //D8
4747
PC7, //D9
4848
PB6, //D10
49-
PB_15,//D11
50-
PB_14,//D12
51-
PB_13,//D13
49+
PB15,//D11
50+
PB14,//D12
51+
PB13,//D13
5252
PB9, //D14
5353
PB8, //D15
5454
// ST Morpho
@@ -142,7 +142,7 @@ enum {
142142
//Timer Definitions
143143
//Do not use timer used by PWM pins when possible. See PinMap_PWM.
144144
#define TIMER_TONE TIM6
145-
#define TIMER_UART_EMULATED TIM7
145+
#define TIMER_UART_EMULATED TIM17
146146

147147
//Do not use basic timer: OC is required
148148
#define TIMER_SERVO TIM2 //TODO: advanced-control timers don't work

0 commit comments

Comments
 (0)