Skip to content

Commit

Permalink
change fifo size
Browse files Browse the repository at this point in the history
  • Loading branch information
hnhoan committed Feb 26, 2019
1 parent 27744c3 commit 88fe302
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ARM/Nordic/src/uart_bleintrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const BLESRVC_CFG s_NUSBleSrvcCfg = {

static BLESRVC s_NUSBleSrvc;

#define NUS_INTRF_CFIFO_MEMSIZE CFIFO_MEMSIZE(10 * BLE_NUSUART_MAX_DATA_LEN)
#define NUS_INTRF_CFIFO_MEMSIZE CFIFO_TOTAL_MEMSIZE(20, BLE_NUSUART_MAX_DATA_LEN + sizeof(BLEINTRF_PKT) - 1)

alignas(4) static uint8_t s_NUSIntrfRxBuff[NUS_INTRF_CFIFO_MEMSIZE];
alignas(4) static uint8_t s_NUSIntrfTxBuff[NUS_INTRF_CFIFO_MEMSIZE];
Expand Down Expand Up @@ -175,7 +175,7 @@ const BLESRVC_CFG s_UartSrvcCfg = {
static BLESRVC s_UartBleSrvc;


#define BLUEIO_INTRF_CFIFO_MEMSIZE CFIFO_MEMSIZE(10 * BLE_NUSUART_MAX_DATA_LEN)
#define BLUEIO_INTRF_CFIFO_MEMSIZE CFIFO_TOTAL_MEMSIZE(20, BLE_NUSUART_MAX_DATA_LEN + sizeof(BLEINTRF_PKT) - 1)

alignas(4) static uint8_t s_BlueIOIntrfRxBuff[BLUEIO_INTRF_CFIFO_MEMSIZE];
alignas(4) static uint8_t s_BlueIOIntrfTxBuff[BLUEIO_INTRF_CFIFO_MEMSIZE];
Expand Down

0 comments on commit 88fe302

Please sign in to comment.