Configure PROFET
This commit is contained in:
parent
ea4c10a093
commit
838c6195bb
|
@ -1,8 +1,11 @@
|
|||
#include "slave_monitoring.h"
|
||||
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "main.h"
|
||||
#include "ts_state_machine.h"
|
||||
|
||||
#include "stm32f3xx_hal.h"
|
||||
#include "stm32f3xx_hal_gpio.h"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -18,6 +21,14 @@ void slaves_init() {
|
|||
memset(&slaves[i].voltages, 0, sizeof(slaves[i].voltages));
|
||||
memset(&slaves[i].temperatures, 0, sizeof(slaves[i].temperatures));
|
||||
}
|
||||
|
||||
HAL_GPIO_WritePin(SLAVE_POWER_0_GPIO_Port, SLAVE_POWER_0_Pin, GPIO_PIN_SET);
|
||||
HAL_GPIO_WritePin(SLAVE_POWER_1_GPIO_Port, SLAVE_POWER_1_Pin, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(SLAVE_POWER_DSEL_GPIO_Port, SLAVE_POWER_DSEL_Pin,
|
||||
GPIO_PIN_RESET);
|
||||
// TODO: Enable & read out current
|
||||
HAL_GPIO_WritePin(SLAVE_POWER_DEN_GPIO_Port, SLAVE_POWER_DEN_Pin,
|
||||
GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
void slaves_check() {
|
||||
|
|
Loading…
Reference in New Issue