Skip to content

Commit 9b99067

Browse files
quytranpzzKhiemNguyenT
authored andcommitted
hal: renesas: rx: Fixes the build warning in RSPI
Fixing the build warning on RSPI source Signed-off-by: Quy Tran <[email protected]>
1 parent 1daff13 commit 9b99067

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

drivers/rx/README

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ Patch List:
4747
drivers/rx/rdp/src/r_flash_rx/src/r_flash_nofcu.h
4848
drivers/rx/rdp/src/r_flash_rx/src/r_flash_rx.c
4949
drivers/rx/rdp/src/r_flash_rx/src/r_flash_rx.h
50+
51+
* Fix the build warnings in RSPI driver
52+
Impacted files:
53+
drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx.c
54+
drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx_private.h

drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Includes <System Includes> , "Project Includes"
6363
/* Defines for RSPI support */
6464
#include "platform.h"
6565
#include "r_rspi_rx_if.h"
66+
#include "r_bsp_locking.h"
6667

6768
#if RSPI_CFG_LONGQ_ENABLE == 1
6869
/* Uses LONGQ driver header file. */

drivers/rx/rdp/src/r_rspi_rx/src/r_rspi_rx_private.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ Macro definitions
7373
#endif
7474

7575
/* Definitions of endian */
76-
#define RSPI_LITTLE_ENDIAN (defined(__LIT) || \
77-
defined(__LITTLE) || \
78-
defined(__RX_LITTLE_ENDIAN__))
76+
#if defined(__LIT) || defined(__LITTLE) || defined(__RX_LITTLE_ENDIAN__)
77+
#define RSPI_LITTLE_ENDIAN 1
78+
#else
79+
#define RSPI_LITTLE_ENDIAN 0
80+
#endif
7981

8082
#define RSPI_BYTE_DATA (0x01)
8183
#define RSPI_WORD_DATA (0x02)

0 commit comments

Comments
 (0)