add RF_TXCO_EN on PH1 and set HSI calibration to its default value

pull/6043/head
Wilfried Chauveau 2018-02-19 10:40:08 +00:00
parent 758f3b2dbd
commit 495f8e4e5b
2 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,7 @@ typedef enum {
ANT_CTX_PA = PA_4,
ANT_CRX_RX = PB_6,
ANT_CBT_HF = PB_7,
RF_TCXO_EN = PH_1,
SPI_MISO = PB_4,
SPI_MOSI = PB_5,

View File

@ -123,6 +123,7 @@ uint8_t SetSysClock_PLL_HSI(void)
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSEState = RCC_HSE_OFF;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
// SYSCLK = 32 MHz ((16 MHz * 4) / 2)
// USBCLK = 64 MHz (16 MHz * 4) --> USB not possible
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;