From 742be1d85729f680586cbaaf7e12dda8c270bfa0 Mon Sep 17 00:00:00 2001 From: dyldonahue <98500199+dyldonahue@users.noreply.github.com> Date: Fri, 26 Jan 2024 12:35:35 -0500 Subject: [PATCH] fixed CS pin num (#74) * fixed CS pin num * Updating submodule to build --------- Co-authored-by: Dylan Donahue Co-authored-by: nwdepatie --- Core/Src/segment.c | 3 ++- Drivers/Embedded-Base | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/Src/segment.c b/Core/Src/segment.c index c960e9b..a58a461 100644 --- a/Core/Src/segment.c +++ b/Core/Src/segment.c @@ -2,6 +2,7 @@ #include #include #include +#include "main.h" #include #define THERM_WAIT_TIME 500 /* ms */ @@ -56,7 +57,7 @@ void segment_init() printf("Initializing Segments..."); ltc68041 = malloc(sizeof(ltc_config)); - LTC6804_initialize(ltc68041, &hspi1, GPIOA, 4); + LTC6804_initialize(ltc68041, &hspi1, GPIOA, SPI_1_CS_Pin); pull_chip_configuration(); diff --git a/Drivers/Embedded-Base b/Drivers/Embedded-Base index c2ea04a..c9b2d70 160000 --- a/Drivers/Embedded-Base +++ b/Drivers/Embedded-Base @@ -1 +1 @@ -Subproject commit c2ea04a5b042dd3102c9d8f3b7bfdcf9a27182b4 +Subproject commit c9b2d70b3e3838af107783ae654a986ffe79f6f6