Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix centre console displays #281

Merged
merged 2 commits into from
May 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions projects/bms_carrier/src/relays.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ static RelayType relay_toggle = NO_RELAYS;
static SoftTimer relays_timer;

static const GpioAddress pos_relay_en = { .port = GPIO_PORT_B, .pin = 8 };
// TODO(mitch) below address does not match schematic but is set when pos relay is on
static const GpioAddress pos_relay_sense = { .port = GPIO_PORT_B, .pin = 7 };
static const GpioAddress pos_relay_sense = { .port = GPIO_PORT_B, .pin = 5 };

static const GpioAddress neg_relay_en = { .port = GPIO_PORT_B, .pin = 4 };
static const GpioAddress neg_relay_sense = { .port = GPIO_PORT_B, .pin = 3 };
Expand Down
8 changes: 6 additions & 2 deletions projects/centre_console/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ void run_slow_cycle() {}

int main() {
tasks_init();
log_init();
// log_init();
gpio_init();
#ifdef MS_PLATFORM_ARM
USART_DeInit(USART1);
#endif
gpio_it_init();
I2CSettings i2c_settings = {
.speed = I2C_SPEED_STANDARD,
Expand All @@ -87,9 +91,9 @@ int main() {

LOG_DEBUG("Welcome to TEST! \n");

display_init();
init_master_task();
tasks_start();
// display_init();

LOG_DEBUG("exiting main? \n");
return 0;
Expand Down
Loading