2022-01-14 18:10:27 +08:00
|
|
|
/*
|
2023-09-06 15:06:36 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2022-01-14 18:10:27 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2021-07-29 KyleChan first version
|
2022-12-08 23:04:04 +08:00
|
|
|
* 2022-12-7 Vandoul ADD ra4m2
|
2022-01-14 18:10:27 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DRV_CONFIG_H__
|
|
|
|
#define __DRV_CONFIG_H__
|
|
|
|
|
|
|
|
#include "board.h"
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2022-11-22 11:08:02 +08:00
|
|
|
extern "C"
|
|
|
|
{
|
2022-01-14 18:10:27 +08:00
|
|
|
#endif
|
|
|
|
|
2022-11-22 11:08:02 +08:00
|
|
|
#ifdef SOC_SERIES_R7FA6M5
|
|
|
|
#include "ra6m5/uart_config.h"
|
|
|
|
|
|
|
|
#ifdef BSP_USING_ADC
|
|
|
|
#include "ra6m5/adc_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_DAC
|
|
|
|
#include "ra6m5/dac_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_PWM
|
|
|
|
#include "ra6m5/pwm_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_CAN
|
|
|
|
#include "ra6m5/can_config.h"
|
|
|
|
#endif
|
|
|
|
#endif /* SOC_SERIES_R7FA6M5 */
|
|
|
|
|
2023-09-06 15:06:36 +08:00
|
|
|
#if defined(SOC_SERIES_R7FA6M3)
|
|
|
|
#include "ra6m3/uart_config.h"
|
|
|
|
|
|
|
|
#ifdef BSP_USING_ADC
|
|
|
|
#include "ra6m3/adc_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_DAC
|
|
|
|
#include "ra6m3/dac_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_PWM
|
|
|
|
#include "ra6m3/pwm_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_TIM
|
|
|
|
#include "ra6m3/timer_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_CAN
|
|
|
|
#include "ra6m3/can_config.h"
|
|
|
|
#endif
|
|
|
|
#endif /* SOC_SERIES_R7FA6M3 */
|
|
|
|
|
|
|
|
#if defined(SOC_SERIES_R7FA6M4)
|
2022-01-14 18:10:27 +08:00
|
|
|
#include "ra6m4/uart_config.h"
|
|
|
|
|
|
|
|
#ifdef BSP_USING_ADC
|
|
|
|
#include "ra6m4/adc_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_DAC
|
|
|
|
#include "ra6m4/dac_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_PWM
|
|
|
|
#include "ra6m4/pwm_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_CAN
|
|
|
|
#include "ra6m4/can_config.h"
|
|
|
|
#endif
|
2022-11-22 11:08:02 +08:00
|
|
|
#endif /* SOC_SERIES_R7FA6M4 */
|
2022-03-11 09:17:46 +08:00
|
|
|
|
|
|
|
#ifdef SOC_SERIES_R7FA2L1
|
|
|
|
#include "ra2l1/uart_config.h"
|
|
|
|
|
|
|
|
#ifdef BSP_USING_ADC
|
|
|
|
#include "ra2l1/adc_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_DAC
|
|
|
|
#include "ra2l1/dac_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_PWM
|
|
|
|
#include "ra2l1/pwm_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_CAN
|
|
|
|
#include "ra2l1/can_config.h"
|
|
|
|
#endif
|
2022-11-22 11:08:02 +08:00
|
|
|
#endif /* SOC_SERIES_R7FA2L1 */
|
2022-01-14 18:10:27 +08:00
|
|
|
|
2022-12-08 23:04:04 +08:00
|
|
|
#ifdef SOC_SERIES_R7FA4M2
|
|
|
|
#include "ra4m2/uart_config.h"
|
|
|
|
|
|
|
|
#ifdef BSP_USING_ADC
|
|
|
|
#include "ra4m2/adc_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_DAC
|
|
|
|
#include "ra4m2/dac_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_PWM
|
|
|
|
#include "ra4m2/pwm_config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef BSP_USING_CAN
|
|
|
|
#include "ra4m2/can_config.h"
|
|
|
|
#endif
|
|
|
|
#endif /* SOC_SERIES_R7FA4M2 */
|
|
|
|
|
2023-10-17 17:20:54 +08:00
|
|
|
#ifdef SOC_SERIES_R7FA8M85
|
|
|
|
#include "ra8/uart_config.h"
|
|
|
|
|
|
|
|
#endif /* SOC_SERIES_R7FA8M85 */
|
|
|
|
|
2022-01-14 18:10:27 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-11-22 11:08:02 +08:00
|
|
|
#endif /* __DRV_CONFIG_H__ */
|