File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 28
28
#include " utest/utest_stack_trace.h"
29
29
#include " tls_tests.h"
30
30
#include " cert.h"
31
+ #include " CellularDevice.h"
31
32
32
33
#ifndef ECHO_SERVER_ADDR
33
34
#error [NOT_SUPPORTED] Requires parameters for echo server
@@ -150,6 +151,11 @@ utest::v1::status_t greentea_setup(const size_t number_of_cases)
150
151
{
151
152
GREENTEA_SETUP (tls_global::TESTS_TIMEOUT, " default_auto" );
152
153
_ifup ();
154
+
155
+ #ifdef MBED_CONF_APP_BAUD_RATE
156
+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
157
+ #endif
158
+
153
159
tc_bucket.start ();
154
160
return greentea_test_setup_handler (number_of_cases);
155
161
}
Original file line number Diff line number Diff line change 21
21
#include " unity/unity.h"
22
22
#include " utest.h"
23
23
#include " udp_tests.h"
24
+ #include " CellularDevice.h"
24
25
25
26
using namespace utest ::v1;
26
27
@@ -70,6 +71,10 @@ static void _sigio_handler(osThreadId id)
70
71
71
72
void UDPSOCKET_ECHOTEST_BURST ()
72
73
{
74
+ #ifdef MBED_CONF_APP_BAUD_RATE
75
+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
76
+ #endif
77
+
73
78
SocketAddress udp_addr;
74
79
NetworkInterface::get_default_instance ()->gethostbyname (ECHO_SERVER_ADDR, &udp_addr);
75
80
udp_addr.set_port (ECHO_SERVER_PORT);
@@ -153,6 +158,10 @@ void UDPSOCKET_ECHOTEST_BURST()
153
158
154
159
void UDPSOCKET_ECHOTEST_BURST_NONBLOCK ()
155
160
{
161
+ #ifdef MBED_CONF_APP_BAUD_RATE
162
+ CellularDevice::get_default_instance ()->set_baud_rate (MBED_CONF_APP_BAUD_RATE);
163
+ #endif
164
+
156
165
SocketAddress udp_addr;
157
166
NetworkInterface::get_default_instance ()->gethostbyname (ECHO_SERVER_ADDR, &udp_addr);
158
167
udp_addr.set_port (ECHO_SERVER_PORT);
You can’t perform that action at this time.
0 commit comments