Skip to content

Commit ccaad43

Browse files
authored
Merge branch 'RT-Thread:master' into imxrt1180_nxp_evk_lpadc
2 parents 0b0eff8 + d875db8 commit ccaad43

40 files changed

Lines changed: 4577 additions & 480 deletions

File tree

bsp/novosns/ns800/libraries/HAL_Drivers/drivers/SConscript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ if GetDepend('BSP_USING_WDT'):
3838
if GetDepend('BSP_USING_EPWM'):
3939
src += ['drv_epwm.c']
4040

41+
if GetDepend('BSP_USING_I2C'):
42+
src += ['drv_i2c.c']
43+
44+
if GetDepend('BSP_USING_RTC'):
45+
src += ['drv_rtc.c']
46+
4147
group = DefineGroup('HAL_Drivers', src, depend = [''], CPPPATH = path)
4248

4349
Return('group')
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
* Copyright (c) 2006-2026, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#ifndef __CAN_CONFIG_H__
8+
#define __CAN_CONFIG_H__
9+
10+
#include <rtthread.h>
11+
12+
#ifdef __cplusplus
13+
extern "C" {
14+
#endif
15+
16+
#define CAN_USING_INTERNAL_CLOCK 0U
17+
#define CAN_USING_EXTERNAL_OSC 1U
18+
19+
#ifndef CAN_CLOCK_SELECTION
20+
#define CAN_CLOCK_SELECTION CAN_USING_EXTERNAL_OSC
21+
#endif
22+
23+
#if CAN_CLOCK_SELECTION == CAN_USING_EXTERNAL_OSC
24+
#define BSP_CAN_CLOCK_FREQ HXTL_FREQ_VALUE
25+
#elif CAN_CLOCK_SELECTION == CAN_USING_INTERNAL_CLOCK
26+
#define BSP_CAN_CLOCK_FREQ MIRC2_FREQ_VALUE
27+
#else
28+
#error "Unsupported CAN_CLOCK_SELECTION"
29+
#endif
30+
31+
#ifndef BSP_CAN1_TX_PIN
32+
#define BSP_CAN1_TX_PIN GPIO_19_CAN1_TX
33+
#endif
34+
35+
#ifndef BSP_CAN1_RX_PIN
36+
#define BSP_CAN1_RX_PIN GPIO_18_CAN1_RX
37+
#endif
38+
39+
#ifndef BSP_CANFD1_TX_PIN
40+
#define BSP_CANFD1_TX_PIN GPIO_4_CANFD1_TX
41+
#endif
42+
43+
#ifndef BSP_CANFD1_RX_PIN
44+
#define BSP_CANFD1_RX_PIN GPIO_10_CANFD1_RX
45+
#endif
46+
47+
#ifndef BSP_CANFD2_TX_PIN
48+
#define BSP_CANFD2_TX_PIN GPIO_6_CANFD2_TX
49+
#endif
50+
51+
#ifndef BSP_CANFD2_RX_PIN
52+
#define BSP_CANFD2_RX_PIN GPIO_7_CANFD2_RX
53+
#endif
54+
55+
#ifdef __cplusplus
56+
}
57+
#endif
58+
59+
#endif /* __CAN_CONFIG_H__ */
60+

0 commit comments

Comments
 (0)