Skip to content

Commit 495f8e4

Browse files
committed
add RF_TXCO_EN on PH1 and set HSI calibration to its default value
1 parent 758f3b2 commit 495f8e4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_RAK811/PinNames.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ typedef enum {
106106
ANT_CTX_PA = PA_4,
107107
ANT_CRX_RX = PB_6,
108108
ANT_CBT_HF = PB_7,
109+
RF_TCXO_EN = PH_1,
109110

110111
SPI_MISO = PB_4,
111112
SPI_MOSI = PB_5,

targets/TARGET_STM/TARGET_STM32L1/TARGET_MTB_RAK811/device/system_clock.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ uint8_t SetSysClock_PLL_HSI(void)
123123
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
124124
RCC_OscInitStruct.HSEState = RCC_HSE_OFF;
125125
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
126+
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
126127
// SYSCLK = 32 MHz ((16 MHz * 4) / 2)
127128
// USBCLK = 64 MHz (16 MHz * 4) --> USB not possible
128129
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;

0 commit comments

Comments
 (0)