Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions drivers/rx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,19 @@ if(CONFIG_USE_RX_RDP_LVD)
rdp/src/r_lvd_rx/src
rdp/src/r_lvd_rx/src/targets/${CONFIG_SOC_SERIES})
endif()

if(CONFIG_USE_RX_RDP_CTSU)
zephyr_library_sources(
rdp/src/r_ctsu_qe/src/r_ctsu_qe.c
rdp/src/r_ctsu_qe/src/r_ctsu_qe_pinset.c
rdp/src/rm_touch_qe/src/rm_touch_qe.c
)
zephyr_include_directories(
rdp/src/r_ctsu_qe
rdp/src/r_ctsu_qe/inc
rdp/src/rm_touch_qe
rdp/src/rm_touch_qe/inc
)
endif()

zephyr_compile_definitions_ifdef(CONFIG_INPUT_RENESAS_RX_QE_TOUCH_CFG QE_TOUCH_CONFIGURATION)
351 changes: 351 additions & 0 deletions drivers/rx/rdp/src/r_bsp/mcu/all/fsp_common_api.h

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions drivers/rx/rdp/src/r_bsp/mcu/all/r_fsp_error.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* Copyright (c) 2011 Renesas Electronics Corporation and/or its affiliates
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/***********************************************************************************************************************
* File Name : r_fsp_error.h
* Description : The user chooses which MCU and board they are developing for in this file. If the board you are using
* is not listed below, please add your own or use the default 'User Board'.
***********************************************************************************************************************/
/***********************************************************************************************************************
* History : DD.MM.YYYY Version Description
* : 23.04.2021 1.00 First Release
* : 26.02.2025 1.01 Changed the disclaimer.
***********************************************************************************************************************/
#ifndef R_FSP_ERROR_H_
#define R_FSP_ERROR_H_


/***********************************************************************************************************************
* Includes
**********************************************************************************************************************/
#include "fsp_common_api.h"

/***********************************************************************************************************************
* Macro definitions
**********************************************************************************************************************/
/** Macro to log and return error without an assertion. */
#ifndef FSP_RETURN

#define FSP_RETURN(err) FSP_ERROR_LOG((err)); \
return err;
#endif

/** This function is called before returning an error code. To stop on a runtime error, define fsp_error_log in
* user code and do required debugging (breakpoints, stack dump, etc) in this function.*/
#define FSP_ERROR_LOG(err)

/** Default assertion calls ::FSP_ERROR_RETURN if condition "a" is false. Used to identify incorrect use of API's in FSP
* functions. */
#define FSP_ASSERT(a) FSP_ERROR_RETURN((a), FSP_ERR_ASSERTION)

/** All FSP error codes are returned using this macro. Calls ::FSP_ERROR_LOG function if condition "a" is false. Used
* to identify runtime errors in FSP functions. */

#define FSP_ERROR_RETURN(a, err) \
{ \
if ((a)) \
{ \
(void) 0; /* Do nothing */ \
} \
else \
{ \
FSP_ERROR_LOG(err); \
return err; \
} \
}


#endif /* R_FSP_ERROR_H_ */
Loading