Skip to content

Commit

Permalink
Build: Remove ENABLE_UART2 define
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jonasdn committed Feb 23, 2022
1 parent 3939db7 commit 22e06b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/modules/src/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 22e06b0

Please sign in to comment.