contain lorawan with serial_rx enabled
Dependencies: pulga-lorawan-drv SPI_MX25R Si1133 BME280
Revision 17:2fc16c1d6434, committed 2018-05-11
- Comitter:
- mbed_official
- Date:
- Fri May 11 07:30:15 2018 +0100
- Parent:
- 16:8d460198a422
- Child:
- 18:1720bc3831ea
- Commit message:
- Remove unnecessary Serial object
Current trend in mbed-os is to use stdio for tracing. Therefore unnecessary
Serial objects should be removed.
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-lorawan
Changed in this revision
trace_helper.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/trace_helper.cpp Thu May 10 05:16:54 2018 +0100 +++ b/trace_helper.cpp Fri May 11 07:30:15 2018 +0100 @@ -15,13 +15,6 @@ * limitations under the License. */ -#include "drivers/Serial.h" - -/** - * Serial object for console tracing - */ -mbed::Serial pc(USBTX, USBRX, MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE); - /** * If we have tracing library available, we can see traces from within the * stack. The library could be made unavailable by removing FEATURE_COMMON_PAL @@ -39,7 +32,6 @@ static void serial_lock(); static void serial_unlock(); - static void trace_printer(const char* str); /** * Sets up trace for the application @@ -52,7 +44,6 @@ mbed_trace_mutex_wait_function_set(serial_lock); mbed_trace_mutex_release_function_set(serial_unlock); mbed_trace_init(); - mbed_trace_print_function_set(trace_printer); } /** @@ -71,15 +62,6 @@ mutex.unlock(); } - /** - * Prints the Mbed trace, used by trace library. - * Not intended for local use. - */ - static void trace_printer(const char* str) - { - pc.printf("%s\r\n", str); - } - #else void setup_trace()