Commit fb70fa4e authored by Richard Miller's avatar Richard Miller

Don't swap uart1 rx-tx pins

parent 8d32de12
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- ******************************************************************************
* File Name : SDK.gpdsc
* Date : 12/11/2016 15:19:56
* Date : 19/11/2016 18:56:39
* Description : Generator PDSC File generated by STM32CubeMX (DO NOT EDIT!)
****************************************************************************** -->
......@@ -12,7 +12,7 @@
<url>/mnt/extra/mystorm/target/sdk</url>
<releases>
<release version="1.0.0">
- Generated: 12/11/2016 15:19:56
- Generated: 19/11/2016 18:56:39
</release>
</releases>
<requirements>
......
......@@ -2,7 +2,7 @@
File.Version=6
I2C1.IPParameters=Timing
I2C1.Timing=0x10909CEC
KeepUserPlacement=false
KeepUserPlacement=true
Mcu.Family=STM32L4
Mcu.IP0=I2C1
Mcu.IP1=NVIC
......@@ -330,7 +330,7 @@ SPI3.IPParameters=Mode,CalculateBaudRate,DataSize,CLKPolarity,CLKPhase,CRCCalcul
SPI3.Mode=SPI_MODE_MASTER
USART1.BaudRate=57600
USART1.IPParameters=BaudRate,WordLength,SwapParam
USART1.SwapParam=UART_ADVFEATURE_SWAP_ENABLE
USART1.SwapParam=UART_ADVFEATURE_SWAP_DISABLE
USART1.WordLength=UART_WORDLENGTH_8B
USB_OTG_FS.IPParameters=VirtualMode
USB_OTG_FS.VirtualMode=Device_Only
......
......@@ -253,8 +253,7 @@ static void MX_USART1_UART_Init(void)
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
huart1.Init.OneBitSampling = UART_ONE_BIT_SAMPLE_DISABLE;
huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_SWAP_INIT;
huart1.AdvancedInit.Swap = UART_ADVFEATURE_SWAP_ENABLE;
huart1.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_NO_INIT;
if (HAL_UART_Init(&huart1) != HAL_OK)
{
Error_Handler();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment