serial_api: add changes to port from Softdevice 14.2 to 15.0

pull/10652/head
Naveen Kaje 2018-08-16 15:39:12 -05:00 committed by desmond.chen
parent af8d171a73
commit 3ee440c9db
1 changed files with 3 additions and 3 deletions

View File

@ -1504,13 +1504,13 @@ int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx
*/
if (instance == 0) {
if (nrf_drv_is_in_RAM(tx) || (tx_length <= UART0_FIFO_BUFFER_SIZE)) {
if (nrfx_is_in_ram(tx) || (tx_length <= UART0_FIFO_BUFFER_SIZE)) {
valid = true;
}
}
#if UART1_ENABLED
else {
if (nrf_drv_is_in_RAM(tx) || (tx_length <= UART1_FIFO_BUFFER_SIZE)) {
if (nrfx_is_in_ram(tx) || (tx_length <= UART1_FIFO_BUFFER_SIZE)) {
valid = true;
}
}
@ -1522,7 +1522,7 @@ int serial_tx_asynch(serial_t *obj, const void *tx, size_t tx_length, uint8_t tx
uint8_t *buffer = NULL;
/* Tx buffer is in RAM. */
if (nrf_drv_is_in_RAM(tx)) {
if (nrfx_is_in_ram(tx)) {
buffer = (uint8_t *) tx;
} else {