Skip to content

Commit db843d7

Browse files
committed
mimxrt: Remove duplicate code in Makefile and main.c.
Which were added through combining several branches. Signed-off-by: robert-hh <robert@hammelrath.com>
1 parent e177084 commit db843d7

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

ports/mimxrt/Makefile

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,6 @@ INC += -I$(TOP)/lib/tinyusb/src
8989
INC += -I.
9090
INC += -Ihal
9191

92-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
93-
INC += \
94-
-I$(TOP)/extmod/nimble \
95-
-I$(TOP)/lib/mynewt-nimble/nimble/host/include \
96-
-I$(TOP)/lib/mynewt-nimble/nimble/include \
97-
-I$(TOP)/lib/mynewt-nimble/porting/nimble/include
98-
endif
99-
10092
# All settings for Ethernet support are controller by the value of MICROPY_PY_LWIP
10193
ifeq ($(MICROPY_PY_LWIP),1)
10294
INC += -Ilwip_inc
@@ -247,13 +239,6 @@ SRC_C += \
247239
ticks.c \
248240
tusb_port.c \
249241

250-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
251-
SRC_C += \
252-
drivers/ninaw10/nina_bt_hci.c \
253-
mpbthciport.c \
254-
mpnimbleport.c
255-
endif
256-
257242
SHARED_SRC_C += \
258243
shared/libc/printf.c \
259244
shared/libc/string0.c \
@@ -305,14 +290,6 @@ else
305290
SRC_HAL_C += hal/$(FLEXSPI_FLASH_TYPE)_config.c
306291
endif
307292

308-
ifeq ($(MICROPY_PY_BLUETOOTH),1)
309-
SRC_C += mpbthciport.c
310-
endif # MICROPY_PY_BLUETOOTH
311-
312-
ifeq ($(MICROPY_BLUETOOTH_NIMBLE),1)
313-
SRC_C += mpnimbleport.c
314-
endif
315-
316293
# Math library source files
317294
ifeq ($(MICROPY_FLOAT_IMPL),double)
318295
LIBM_SRC_C += $(addprefix lib/libm_dbl/,\

ports/mimxrt/main.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@
5555

5656
#include "systick.h"
5757
#include "extmod/modnetwork.h"
58-
#if MICROPY_PY_BLUETOOTH
59-
#include "extmod/modbluetooth.h"
60-
#include "mpbthciport.h"
61-
#endif
6258

6359
extern uint8_t _sstack, _estack, _gc_heap_start, _gc_heap_end;
6460

@@ -70,10 +66,6 @@ int main(void) {
7066
tusb_init();
7167
pendsv_init();
7268

73-
#if MICROPY_PY_BLUETOOTH
74-
mp_bluetooth_hci_init();
75-
#endif
76-
7769
#if MICROPY_PY_LWIP
7870
// lwIP doesn't allow to reinitialise itself by subsequent calls to this function
7971
// because the system timeout list (next_timeout) is only ever reset by BSS clearing.
@@ -84,10 +76,6 @@ int main(void) {
8476
#endif
8577
#endif
8678

87-
#if MICROPY_PY_BLUETOOTH
88-
mp_bluetooth_hci_init();
89-
#endif
90-
9179
#if MICROPY_PY_NETWORK_CYW43
9280
{
9381
cyw43_init(&cyw43_state);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy