Rev 24 | Rev 26 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 24 | Rev 25 | ||
---|---|---|---|
Line 171... | Line 171... | ||
171 | HAL_GPIO_WritePin ( USB_PULLUP_GPIO_Port, USB_PULLUP_Pin, GPIO_PIN_RESET); |
171 | HAL_GPIO_WritePin ( USB_PULLUP_GPIO_Port, USB_PULLUP_Pin, GPIO_PIN_RESET); |
172 | HAL_Delay (1000); |
172 | HAL_Delay (1000); |
173 | HAL_GPIO_WritePin ( USB_PULLUP_GPIO_Port, USB_PULLUP_Pin, GPIO_PIN_SET); |
173 | HAL_GPIO_WritePin ( USB_PULLUP_GPIO_Port, USB_PULLUP_Pin, GPIO_PIN_SET); |
174 | 174 | ||
175 | /* setup the USART control blocks */ |
175 | /* setup the USART control blocks */ |
176 | # |
176 | |
177 | 177 | ||
178 | #if defined SERIAL_UART1 |
178 | #if defined SERIAL_UART1 |
179 | init_usart_ctl (&uc1, huart1.Instance); |
179 | init_usart_ctl (&uc1, huart1.Instance); |
180 | 180 | ||
- | 181 | ||
181 | EnableSerialRxInterrupt (&uc1); |
182 | EnableSerialRxInterrupt (&uc1); |
- | 183 | ||
182 | #endif |
184 | #endif |
183 | 185 | ||
184 | /* Initialize the bmp280 */ |
186 | /* Initialize the bmp280 */ |
185 | rslt = bmp280_init (&bmp); |
187 | rslt = bmp280_init (&bmp); |
186 | // print_rslt(" bmp280_init status", rslt); |
188 | // print_rslt(" bmp280_init status", rslt); |