Commit Graph

5 Commits (df28d42a770e0da7c65f156c72e22ab876171b4b)

Author SHA1 Message Date
ccli8 df28d42a77
Fix build issues with cellular (#397)
* Cellular: Add back weak CellularInterface::get_default_instance

The enables the cellular call flow below:
1. Weak CellularInterface::get_default_instance (NetworkInterfaceDefaults.cpp)
2. Weak CellularInterface::get_target_default_instance (NetworkInterfaceDefaults.cpp)
3. Weak CellularContext::get_default_instance (CellularContext.cpp)
4. Weak CellularDevice::get_default_instance (CellularDevice.cpp)
5. Weak CellularDevice::get_target_default_instance (CellularDevice.cpp)

So that cellular modem driver can override CellularDevice::get_default_instance
or CellularDevice::get_target_default_instance to provide actual default
instance.

* Cellular: Fix overriding CellularDevice::get_default_instance failure

With e.g. GCC linker option "--undefined=<LINK_FOO>", pull in the object
file implemening CellularDevice::get_default_instance anyway for being
able to override weak symbol successfully even though from static library.

See: https://stackoverflow.com/questions/42588983/what-does-the-gnu-ld-undefined-option-do

* Cellular: Fix ThisThread::sleep_until link error

ATHandler::cmd_start (ATHandler.c) calls ThisThread::sleep_until, which
has parameter abs_time, whose type is Clock::time_point. Clock::time_point
type has different definitions dependent on MBED_CONF_RTOS_PRESENT defined
or not (rtos/Kernel.h). For cellular application whose executable cmake
target always links mbed-os rather than mbed-baremetal, mbed-cellular must
also link mbed-rtos-flags to be consistent with executable, so that both
have MBED_CONF_RTOS_PRESENT defined.
2024-12-04 00:29:33 -08:00
Jamie Smith 5a118826a8
Fix CellularInterface functions never being defined (#307)
* Fix several link errors with mbed-cellular

* Fix unittest failure

* Try again to fix unit tests?

* OK try and fix these a little better

* Fix style
2024-07-19 01:36:19 -07:00
jeromecoutant 8e58d64e13 Remove Cellular dependency in netsocket
Tip: Create a .mbedignore file with

connectivity/cellular*
connectivity/drivers/cellular*
2020-12-03 18:16:33 +01:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Rajkumar Kanagaraj ea6a7ddbaa Refactor features/netsocket and move to connectivity/netsocket 2020-07-23 06:15:09 -07:00