Skip to content

Commit 9e11e5b

Browse files
committed
Cellular: Replace UARTSerial references with BufferedSerial
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose of the class. It is the recommended buffered I/O serial class.
1 parent 18c941c commit 9e11e5b

40 files changed

+197
-205
lines changed

UNITTESTS/features/cellular/framework/AT/at_cellularcontext/at_cellularcontexttest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ TEST_F(TestAT_CellularContext, set_file_handle)
531531
AT_CellularContext ctx(at, &dev);
532532
ctx.set_file_handle(&fh1);
533533

534-
UARTSerial ss(NC, NC);
534+
BufferedSerial ss(NC, NC);
535535

536536
ctx.set_file_handle(&ss, PTC0, true);
537537
ctx.enable_hup(true);

UNITTESTS/features/cellular/framework/AT/at_cellularcontext/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ set(unittest-test-sources
3737
stubs/randLIB_stub.cpp
3838
stubs/Semaphore_stub.cpp
3939
stubs/us_ticker_stub.cpp
40-
stubs/UARTSerial_stub.cpp
40+
stubs/BufferedSerial_stub.cpp
4141
stubs/SerialBase_stub.cpp
4242
stubs/CellularContext_stub.cpp
4343
stubs/CellularUtil_stub.cpp

UNITTESTS/features/cellular/framework/AT/at_cellulardevice/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ set(unittest-test-sources
3838
stubs/NetworkStack_stub.cpp
3939
stubs/AT_CellularContext_stub.cpp
4040
stubs/Semaphore_stub.cpp
41-
stubs/UARTSerial_stub.cpp
41+
stubs/BufferedSerial_stub.cpp
4242
stubs/SerialBase_stub.cpp
4343
stubs/CellularStateMachine_stub.cpp
4444
stubs/CellularContext_stub.cpp

UNITTESTS/features/cellular/framework/device/athandler/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ set(unittest-test-sources
2424
stubs/EventQueue_stub.cpp
2525
stubs/FileHandle_stub.cpp
2626
stubs/us_ticker_stub.cpp
27-
stubs/UARTSerial_stub.cpp
27+
stubs/BufferedSerial_stub.cpp
2828
stubs/SerialBase_stub.cpp
2929
stubs/mbed_assert_stub.cpp
3030
stubs/mbed_poll_stub.cpp

UNITTESTS/features/cellular/framework/device/cellularcontext/cellularcontexttest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class testContext : public CellularContext
165165

166166
}
167167
#if (DEVICE_SERIAL && DEVICE_INTERRUPTIN) || defined(DOXYGEN_ONLY)
168-
virtual void set_file_handle(UARTSerial *serial, PinName dcd_pin = NC, bool active_high = false)
168+
virtual void set_file_handle(BufferedSerial *serial, PinName dcd_pin = NC, bool active_high = false)
169169
{
170170

171171
}

UNITTESTS/features/cellular/framework/device/cellularcontext/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set(unittest-test-sources
2929
stubs/CellularStateMachine_stub.cpp
3030
stubs/EventQueue_stub.cpp
3131
stubs/mbed_assert_stub.cpp
32-
stubs/UARTSerial_stub.cpp
32+
stubs/BufferedSerial_stub.cpp
3333
stubs/SerialBase_stub.cpp
3434
stubs/ATHandler_stub.cpp
3535
stubs/AT_CellularNetwork_stub.cpp

UNITTESTS/features/cellular/framework/device/cellulardevice/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(unittest-test-sources
2323
stubs/CellularStateMachine_stub.cpp
2424
stubs/EventQueue_stub.cpp
2525
stubs/mbed_assert_stub.cpp
26-
stubs/UARTSerial_stub.cpp
26+
stubs/BufferedSerial_stub.cpp
2727
stubs/SerialBase_stub.cpp
2828
stubs/ATHandler_stub.cpp
2929
stubs/AT_CellularNetwork_stub.cpp

UNITTESTS/features/cellular/framework/device/cellularstatemachine/unittest.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ set(unittest-test-sources
2323
stubs/CellularDevice_stub.cpp
2424
stubs/EventQueue_stub.cpp
2525
stubs/mbed_assert_stub.cpp
26-
stubs/UARTSerial_stub.cpp
26+
stubs/BufferedSerial_stub.cpp
2727
stubs/SerialBase_stub.cpp
2828
stubs/ATHandler_stub.cpp
2929
stubs/AT_CellularNetwork_stub.cpp

UNITTESTS/stubs/AT_CellularContext_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ AT_CellularContext::~AT_CellularContext()
5151
{
5252
}
5353

54-
void AT_CellularContext::set_file_handle(UARTSerial *serial, PinName dcd_pin, bool active_high)
54+
void AT_CellularContext::set_file_handle(BufferedSerial *serial, PinName dcd_pin, bool active_high)
5555
{
5656
}
5757

UNITTESTS/stubs/AT_CellularDevice_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ nsapi_error_t AT_CellularDevice::release_at_handler(ATHandler *at_handler)
6565
}
6666
}
6767

68-
CellularContext *AT_CellularDevice::create_context(UARTSerial *serial, const char *const apn, PinName dcd_pin,
68+
CellularContext *AT_CellularDevice::create_context(BufferedSerial *serial, const char *const apn, PinName dcd_pin,
6969
bool active_high, bool cp_req, bool nonip_req)
7070
{
7171
}

0 commit comments

Comments
 (0)