Mercurial > ~darius > hgwebdir.cgi > stm32temp
diff hw.c @ 31:03592ca4d37e
Port tempctrl.c from AVR. I removed the beep code as I don't have a
beeper on the STM32 board.
Reworked the heat/cool stuff so it can use separate ports.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 27 Nov 2012 13:20:52 +1030 |
parents | 435c6330896c |
children | 188d5a8a7470 |
line wrap: on
line diff
--- a/hw.c Tue Nov 27 13:19:11 2012 +1030 +++ b/hw.c Tue Nov 27 13:20:52 2012 +1030 @@ -276,13 +276,13 @@ TIM_SelectOnePulseMode(TIM6, TIM_OPMode_Single); TIM_UpdateDisableConfig(TIM6, DISABLE); - /* Setup GPIO for delay test & 1-wire - * PE2 -> pin 3 on header - * PE3 -> pin 4 on header */ - GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2 | GPIO_Pin_3; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; - GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP; - GPIO_Init(GPIOE, &GPIO_InitStructure); + /* Setup GPIO for delay test (2) 1-wire (3) & temp ctrl (4/5) + * PE2 -> 3 (on header) + * PE3 -> 4 + * PE4 -> 5 + * PE5 -> 6 + */ + GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2 | GPIO_Pin_3 | GPIO_Pin_4 | GPIO_Pin_5; OWInit();