add note for Serial2 (not yet implemented)

This commit is contained in:
hathach committed 2018-11-06 16:39:10 +07:00
1 parent d5dc04de03
commit 6ee2212913
3 files changed
+14 -8

No files matched your search

+5 -3
View File
@@ -205,10 +205,12 @@ size_t Uart::write(const uint8_t data)
return 1;
}
Uart SERIAL_PORT_HARDWARE( NRF_UART0, UARTE0_UART0_IRQn, PIN_SERIAL_RX, PIN_SERIAL_TX );
#define NRF_UART0_IRQn UARTE0_UART0_IRQn
Uart SERIAL_PORT_HARDWARE( NRF_UART0, NRF_UART0_IRQn, PIN_SERIAL_RX, PIN_SERIAL_TX );
#ifdef HAVE_HWSERIAL2
// TODO UART1 is UARTE only, need update class Uart to work
Uart Serial2( NRF_UARTE1, UARTE1_IRQn, PIN_SERIAL2_RX, PIN_SERIAL2_TX );
#endif
extern "C"
{
+4 -3
View File
@@ -93,6 +93,10 @@ class Uart : public HardwareSerial
#define SERIAL_PORT_HARDWARE Serial1
#define SERIAL_PORT_HARDWARE_OPEN Serial1
// TODO need to update class Uart to work with UARTE
//extern Uart Serial2;
//#define HAVE_HWSERIAL2
#else
#define SERIAL_PORT_MONITOR Serial
@@ -100,7 +104,4 @@ class Uart : public HardwareSerial
#endif
#ifdef __cplusplus
extern Uart SERIAL_PORT_HARDWARE;
#endif
+5 -2
View File
@@ -84,8 +84,11 @@ static const uint8_t AREF = PIN_AREF;
/*
* Serial interfaces
*/
#define PIN_SERIAL_RX (8)
#define PIN_SERIAL_TX (6)
#define PIN_SERIAL_RX (33)
#define PIN_SERIAL_TX (34)
#define PIN_SERIAL2_RX (8)
#define PIN_SERIAL2_TX (6)
/*
* SPI Interfaces