add note for Serial2 (not yet implemented)
This commit is contained in:
1 parent
d5dc04de03
commit
6ee2212913
3 files changed
+14
-8
No files matched your search
+5
-3
@@ -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
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user