update constants, SLAVE_POWER_1 behavior

This commit is contained in:
Kilian Bracher 2024-05-17 00:23:23 +02:00
parent 2680da3c4f
commit 05b5e8c3c6
2 changed files with 4 additions and 4 deletions

View File

@ -3,9 +3,9 @@
#include <stdint.h>
#define N_SLAVES 6
#define N_CELLS_SERIES 17
#define N_CELLS_PARALLEL 5
#define N_SLAVES 3
#define N_CELLS_SERIES 15
#define N_CELLS_PARALLEL 4
#define N_TEMP_SENSORS 32
#define SLAVE_TIMEOUT 500

View File

@ -47,7 +47,7 @@ void slaves_init() {
}
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_1_GPIO_Port, SLAVE_POWER_1_Pin, GPIO_PIN_SET);
HAL_GPIO_WritePin(SLAVE_POWER_DSEL_GPIO_Port, SLAVE_POWER_DSEL_Pin,
GPIO_PIN_RESET);
// TODO: Enable & read out current