From 22e06b0c269a018d950afd234ae006134eba4184 Mon Sep 17 00:00:00 2001 From: Jonas Danielsson Date: Wed, 23 Feb 2022 09:46:16 +0100 Subject: [PATCH] Build: Remove ENABLE_UART2 define UART2 is used from different decks, if anyone wants to use UART2 for other stuff, or in an app-layer app they can initialize it themself. The added benefit of this define is slim and it is a bit confusing. --- .github/workflows/CI.yml | 2 +- src/modules/src/system.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 076fe67259..981ec8539a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -76,7 +76,7 @@ jobs: submodules: true - name: All features - run: docker run --rm -v ${PWD}:/module bitcraze/builder bash -c "make tag_defconfig && ./tools/build/build PLATFORM=cf2 CONFIG_DEBUG=y "EXTRA_CFLAGS=-DOW_WRITE_TEST -DOW_READ_TEST -DENABLE_UART2" UNIT_TEST_STYLE=min" + run: docker run --rm -v ${PWD}:/module bitcraze/builder bash -c "make tag_defconfig && ./tools/build/build PLATFORM=cf2 CONFIG_DEBUG=y "EXTRA_CFLAGS=-DOW_WRITE_TEST -DOW_READ_TEST" UNIT_TEST_STYLE=min" features: runs-on: ubuntu-latest diff --git a/src/modules/src/system.c b/src/modules/src/system.c index 2361832fc4..f0869b961a 100644 --- a/src/modules/src/system.c +++ b/src/modules/src/system.c @@ -174,9 +174,6 @@ void systemTask(void *arg) #ifdef CONFIG_DEBUG_PRINT_ON_UART1 uart1Init(115200); #endif -#ifdef ENABLE_UART2 - uart2Init(115200); -#endif initUsecTimer(); i2cdevInit(I2C3_DEV);