summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2023-07-06 16:43:52 +0200
committerDamien George <damien@micropython.org>2023-09-14 23:51:30 +1000
commitabd9bed667d61f4a3d6b5fb2898ee270ac3ffc07 (patch)
tree0d3b3c5777f989654e390c54c6a42e203e3f545f
parent474bf4e1e3bce69ae333520aee658a07664c2294 (diff)
renesas-ra/fsp_cfg: Add common FSP config files.
Add DAC, SCE and USB FSP config files. Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
-rw-r--r--ports/renesas-ra/fsp_cfg/r_dac_cfg.h13
-rw-r--r--ports/renesas-ra/fsp_cfg/r_sce_cfg.h10
-rw-r--r--ports/renesas-ra/fsp_cfg/r_usb_basic_cfg.h113
-rw-r--r--ports/renesas-ra/fsp_cfg/r_usb_class_cfg.h5
-rw-r--r--ports/renesas-ra/fsp_cfg/r_usb_pcdc_cfg.h23
5 files changed, 164 insertions, 0 deletions
diff --git a/ports/renesas-ra/fsp_cfg/r_dac_cfg.h b/ports/renesas-ra/fsp_cfg/r_dac_cfg.h
new file mode 100644
index 000000000..5924bc46a
--- /dev/null
+++ b/ports/renesas-ra/fsp_cfg/r_dac_cfg.h
@@ -0,0 +1,13 @@
+/* generated configuration header file - do not edit */
+#ifndef R_DAC_CFG_H_
+#define R_DAC_CFG_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define DAC_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE)
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* R_DAC_CFG_H_ */
diff --git a/ports/renesas-ra/fsp_cfg/r_sce_cfg.h b/ports/renesas-ra/fsp_cfg/r_sce_cfg.h
new file mode 100644
index 000000000..4718cae39
--- /dev/null
+++ b/ports/renesas-ra/fsp_cfg/r_sce_cfg.h
@@ -0,0 +1,10 @@
+/* generated configuration header file - do not edit */
+#ifndef R_SCE_CFG_H_
+#define R_SCE_CFG_H_
+#define SCE_RSA_RETRY_COUNT_FOR_RSA_KEY_GENERATION 10240
+#define SCE_USER_SHA_384_ENABLED (0)
+#define SCE_USER_SHA_384_FUNCTION crypto_sha384_user_function
+#ifndef SCE_USER_FAST_BOOT
+#define SCE_USER_FAST_BOOT (0)
+#endif
+#endif /* R_SCE_CFG_H_ */
diff --git a/ports/renesas-ra/fsp_cfg/r_usb_basic_cfg.h b/ports/renesas-ra/fsp_cfg/r_usb_basic_cfg.h
new file mode 100644
index 000000000..cdb1fe0c0
--- /dev/null
+++ b/ports/renesas-ra/fsp_cfg/r_usb_basic_cfg.h
@@ -0,0 +1,113 @@
+/* generated configuration header file - do not edit */
+#ifndef R_USB_BASIC_CFG_H_
+#define R_USB_BASIC_CFG_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef NULL
+extern const uint16_t NULL[];
+#endif
+
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HCDC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HHID_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HMSC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HVND_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HPRN_USE
+#endif
+#if (1 != RA_NOT_DEFINED)
+#define USB_CFG_PCDC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PHID_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PMSC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PPRN_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PVND_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HCDC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HMSC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HHID_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HPRN_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_HUVC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PCDC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PPRN_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PHID_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PMSC_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_PAUD_USE
+#endif
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#define USB_CFG_DFU_USE
+#endif
+#if ((RA_NOT_DEFINED != RA_NOT_DEFINED) || (RA_NOT_DEFINED != RA_NOT_DEFINED) || (RA_NOT_DEFINED != RA_NOT_DEFINED))
+#define USB_CFG_OTG_USE
+#endif
+#if (defined(USB_CFG_HCDC_USE) || defined(USB_CFG_HPRN_USE) || defined(USB_CFG_HMSC_USE) || defined(USB_CFG_HHID_USE) || defined(USB_CFG_HVND_USE) || defined(USB_CFG_HUVC_USE))
+#define USB_CFG_HOST_MODE 1
+#else
+#define USB_CFG_HOST_MODE 0
+#endif
+
+#if (defined(USB_CFG_PCDC_USE) || defined(USB_CFG_PPRN_USE) || defined(USB_CFG_PMSC_USE) || defined(USB_CFG_PHID_USE) || defined(USB_CFG_PVND_USE) || defined(USB_CFG_PAUD_USE) || defined(USB_CFG_DFU_USE))
+#define USB_CFG_PERI_MODE 2
+#else
+#define USB_CFG_PERI_MODE 0
+#endif
+
+#define USB_CFG_MODE (USB_CFG_PERI_MODE | USB_CFG_HOST_MODE)
+
+#define USB_CFG_PARAM_CHECKING_ENABLE (BSP_CFG_PARAM_CHECKING_ENABLE)
+#define USB_CFG_CLKSEL (USB_CFG_24MHZ)
+#define USB_CFG_BUSWAIT (USB_CFG_BUSWAIT_7)
+#define USB_CFG_BC (USB_CFG_ENABLE)
+#define USB_CFG_VBUS (USB_CFG_HIGH)
+#define USB_CFG_DCP (USB_CFG_DISABLE)
+#define USB_CFG_CLASS_REQUEST (USB_CFG_ENABLE)
+#define USB_CFG_DBLB (USB_CFG_DBLBON)
+#define USB_CFG_CNTMD (USB_CFG_CNTMDOFF)
+#define USB_CFG_LDO_REGULATOR (USB_CFG_DISABLE)
+#define USB_CFG_DMA (USB_CFG_DISABLE)
+#define USB_SRC_ADDRESS (NULL)
+#define USB_DEST_ADDRESS (NULL)
+#define USB_CFG_TPLCNT (1)
+#define USB_CFG_TPL USB_NOVENDOR, USB_NOPRODUCT
+#define USB_CFG_TPL_TABLE NULL
+#define USB_CFG_COMPLIANCE (USB_CFG_DISABLE)
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* R_USB_BASIC_CFG_H_ */
diff --git a/ports/renesas-ra/fsp_cfg/r_usb_class_cfg.h b/ports/renesas-ra/fsp_cfg/r_usb_class_cfg.h
new file mode 100644
index 000000000..7f78a4cb0
--- /dev/null
+++ b/ports/renesas-ra/fsp_cfg/r_usb_class_cfg.h
@@ -0,0 +1,5 @@
+/* generated configuration header file - do not edit */
+#ifndef R_USB_CLASS_CFG_H_
+#define R_USB_CLASS_CFG_H_
+
+#endif /* R_USB_CLASS_CFG_H_ */
diff --git a/ports/renesas-ra/fsp_cfg/r_usb_pcdc_cfg.h b/ports/renesas-ra/fsp_cfg/r_usb_pcdc_cfg.h
new file mode 100644
index 000000000..0bd4f3777
--- /dev/null
+++ b/ports/renesas-ra/fsp_cfg/r_usb_pcdc_cfg.h
@@ -0,0 +1,23 @@
+/* generated configuration header file - do not edit */
+#ifndef R_USB_PCDC_CFG_H_
+#define R_USB_PCDC_CFG_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if (RA_NOT_DEFINED != RA_NOT_DEFINED)
+#include "r_usb_pcdc_2ch_cfg.h"
+#else
+#define USB_CFG_PCDC_BULK_IN2 (USB_NULL)
+#define USB_CFG_PCDC_BULK_OUT2 (USB_NULL)
+#define USB_CFG_PCDC_INT_IN2 (USB_NULL)
+#endif
+
+#define USB_CFG_PCDC_BULK_IN (USB_PIPE1)
+#define USB_CFG_PCDC_BULK_OUT (USB_PIPE2)
+#define USB_CFG_PCDC_INT_IN (USB_PIPE6)
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* R_USB_PCDC_CFG_H_ */