Skip to content

Commit 0840419

Browse files
committed
TELIT HE910: Move onboard chip source files to connectivity drivers dir
This is a better location and make them available to all targets that may have the chip on-baord.
1 parent 96035d8 commit 0840419

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

connectivity/drivers/cellular/TELIT/HE910/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ target_include_directories(mbed-cellular
88

99
target_sources(mbed-cellular
1010
INTERFACE
11+
ONBOARD_TELIT_HE910.cpp
1112
TELIT_HE910.cpp
1213
)
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ void ONBOARD_TELIT_HE910::power_up()
8181
// Do nothing if it's already powered.
8282
if (gpio_read(&radioOn)) {
8383
return;
84-
}
85-
else {
84+
} else {
8685
// power it up.
8786
release_power_button();
8887
}
@@ -107,8 +106,7 @@ void ONBOARD_TELIT_HE910::power_down()
107106
// Do nothing if it's already off.
108107
if (!gpio_read(&radioOn)) {
109108
return;
110-
}
111-
else {
109+
} else {
112110
// power down.
113111
press_power_button();
114112
}

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ elseif("MTS_DRAGONFLY_F413RH" IN_LIST MBED_TARGET_LABELS)
99
target_include_directories(mbed-core INTERFACE TARGET_MTS_DRAGONFLY_F413RH)
1010
set(PERIPHERALPINS_FILE TARGET_MTS_DRAGONFLY_F413RH/PeripheralPins.c)
1111
set(SYSTEM_CLOCK_FILE TARGET_MTS_DRAGONFLY_F413RH/system_clock.c)
12-
13-
# TODO CMAKE: Should the ONBOARD_TELIT_HE910.cpp and ONBOARD_TELIT_HE910.h
14-
# below be moved to mbed-os/connectivity/drivers/cellular/TELIT/HE910 ?
15-
target_sources(mbed-core INTERFACE TARGET_MTS_DRAGONFLY_F413RH/ONBOARD_TELIT_HE910.cpp)
1612
elseif("NUCLEO_F413ZH" IN_LIST MBED_TARGET_LABELS)
1713
target_include_directories(mbed-core INTERFACE TARGET_NUCLEO_F413ZH)
1814
set(PERIPHERALPINS_FILE TARGET_NUCLEO_F413ZH/PeripheralPins.c)

0 commit comments

Comments
 (0)