Replace USBTX/RX everywhere else

pull/14457/head
George Psimenos 2021-03-24 10:11:30 +00:00
parent 8a4b88c762
commit cd5330e5a9
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@
#endif #endif
extern mac_api_s *mac_interface; extern mac_api_s *mac_interface;
UnbufferedSerial pc(USBTX, USBRX); UnbufferedSerial pc(CONSOLE_TX, CONSOLE_RX);
osThreadId_t main_thread; osThreadId_t main_thread;
static CircularBuffer<uint8_t, RX_BUFFER_SIZE> rx_buffer; static CircularBuffer<uint8_t, RX_BUFFER_SIZE> rx_buffer;
static uint8_t ns_heap[HEAP_FOR_MAC_TESTER_SIZE]; static uint8_t ns_heap[HEAP_FOR_MAC_TESTER_SIZE];

View File

@ -49,7 +49,7 @@ using namespace utest::v1;
static BufferedSerial buffered_serial_obj( static BufferedSerial buffered_serial_obj(
USBTX, USBRX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE CONSOLE_TX, CONSOLE_RX, MBED_CONF_PLATFORM_STDIO_BAUD_RATE
); );

View File

@ -47,7 +47,7 @@ using namespace utest::v1;
static UnbufferedSerial unbuffered_serial_obj( 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) static ssize_t unbuffered_serial_read(void *buffer, ssize_t length)

View File

@ -74,7 +74,7 @@ Some boards have pins which cannot be tested without causing problems elsewhere.
MBED_WEAK const PinList *pinmap_restricted_pins() MBED_WEAK const PinList *pinmap_restricted_pins()
{ {
static const PinName pins[] = { static const PinName pins[] = {
USBTX, USBRX CONSOLE_TX, CONSOLE_RX
}; };
static const PinList pin_list = { static const PinList pin_list = {
sizeof(pins) / sizeof(pins[0]), sizeof(pins) / sizeof(pins[0]),