| | |
| | | //delay_ms(1000); |
| | | |
| | | Program_Init(); |
| | | if(HAL_UART_Receive_DMA(&huart1,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE)) |
| | | if(HAL_UART_Receive_DMA(&huart1,m_EUART_DMA_RXBuf,EUART_RX_BUF_SIZE)) |
| | | { |
| | | Error_Handler(); |
| | | } |
| | |
| | | Delay_Ms(10); |
| | | dwt_configcontinuousframemode(124800); |
| | | dwt_writetxfctrl(13, 0); |
| | | |
| | | dwt_starttx(DWT_START_TX_IMMEDIATE); |
| | | while(1) |
| | | { |
| | | IdleTask(); |
| | |
| | | /** Configure LSE Drive Capability |
| | | */ |
| | | HAL_PWR_EnableBkUpAccess(); |
| | | __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_LOW); |
| | | __HAL_RCC_LSEDRIVE_CONFIG(RCC_LSEDRIVE_HIGH); |
| | | |
| | | /** Initializes the RCC Oscillators according to the specified parameters |
| | | * in the RCC_OscInitTypeDef structure. |