Mercurial > ~darius > hgwebdir.cgi > stm32temp
diff hw.c @ 86:345a42f6151b
Catch up with change to new board
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Thu, 12 Mar 2015 23:22:35 +1030 |
parents | bb52e6dad784 |
children | 5fc6a25f40ef |
line wrap: on
line diff
--- a/hw.c Thu Mar 12 23:22:11 2015 +1030 +++ b/hw.c Thu Mar 12 23:22:35 2015 +1030 @@ -103,7 +103,7 @@ /* USART configuration */ /* USART1 - 115200 8n1, no flow control TX & RX enabled */ - USART_InitStructure.USART_BaudRate = 115200; + USART_InitStructure.USART_BaudRate = 38400; USART_InitStructure.USART_WordLength = USART_WordLength_8b; USART_InitStructure.USART_StopBits = USART_StopBits_1; USART_InitStructure.USART_Parity = USART_Parity_No; @@ -270,6 +270,16 @@ GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; GPIO_Init(GPIOE, &GPIO_InitStructure); + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_8 | GPIO_Pin_9; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; + GPIO_Init(GPIOC, &GPIO_InitStructure); + + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11 | GPIO_Pin_12; + GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; + GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; + GPIO_Init(GPIOA, &GPIO_InitStructure); + /* Setup 1-wire bus */ OWInit();