mirror of https://github.com/ARMmbed/mbed-os.git
Replace USBTX/RX everywhere else
parent
8a4b88c762
commit
cd5330e5a9
|
@ -44,7 +44,7 @@
|
|||
#endif
|
||||
|
||||
extern mac_api_s *mac_interface;
|
||||
UnbufferedSerial pc(USBTX, USBRX);
|
||||
UnbufferedSerial pc(CONSOLE_TX, CONSOLE_RX);
|
||||
osThreadId_t main_thread;
|
||||
static CircularBuffer<uint8_t, RX_BUFFER_SIZE> rx_buffer;
|
||||
static uint8_t ns_heap[HEAP_FOR_MAC_TESTER_SIZE];
|
||||
|
|
|
@ -49,7 +49,7 @@ using namespace utest::v1;
|
|||
|
||||
|
||||
static BufferedSerial buffered_serial_obj(
|
||||
USBTX, USBRX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE
|
||||
CONSOLE_TX, CONSOLE_RX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ using namespace utest::v1;
|
|||
|
||||
|
||||
static UnbufferedSerial unbuffered_serial_obj(
|
||||
USBTX, USBRX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE
|
||||
CONSOLE_TX, CONSOLE_RX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE
|
||||
);
|
||||
|
||||
static ssize_t unbuffered_serial_read(void *buffer, ssize_t length)
|
||||
|
|
|
@ -74,7 +74,7 @@ Some boards have pins which cannot be tested without causing problems elsewhere.
|
|||
MBED_WEAK const PinList *pinmap_restricted_pins()
|
||||
{
|
||||
static const PinName pins[] = {
|
||||
USBTX, USBRX
|
||||
CONSOLE_TX, CONSOLE_RX
|
||||
};
|
||||
static const PinList pin_list = {
|
||||
sizeof(pins) / sizeof(pins[0]),
|
||||
|
|
Loading…
Reference in New Issue