|
|
@ -1,6 +1,5 @@ |
|
|
|
#include "main.h" |
|
|
|
#include "public_service/public_service.h" |
|
|
|
|
|
|
|
/* TIM2 init function */ |
|
|
|
void MX_TIM2_Init(void) { |
|
|
|
__HAL_RCC_GPIOA_CLK_ENABLE(); |
|
|
@ -177,9 +176,10 @@ void subboard40_and_50_temperature_ctrl_board_init() { |
|
|
|
} |
|
|
|
|
|
|
|
void subboard40_and_50_temperature_ctrl_board_i2c_reset() { |
|
|
|
printf("restart temperature sensor\n"); |
|
|
|
HAL_I2C_DeInit(&hi2c1); |
|
|
|
__HAL_RCC_I2C1_CLK_DISABLE(); |
|
|
|
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6); |
|
|
|
HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7); |
|
|
|
// HAL_GPIO_DeInit(GPIOB, GPIO_PIN_6); |
|
|
|
// HAL_GPIO_DeInit(GPIOB, GPIO_PIN_7); |
|
|
|
MX_I2C1_Init(); |
|
|
|
} |