Skip to content

Commit 814b1ab

Browse files
增加双网口配置选项,增加phy8211F 驱动 (#6278)
* Update Kconfig 增加RT1170双路网络选项 * Update SConscript 增加RTL8211F驱动选项支持 * Update SConstruct 去掉外设目录 * Add files via upload 增加PHY芯片RTL8211F驱动 * Update drv_rtl8211f.c * format code Co-authored-by: Meco Man <[email protected]>
1 parent ff31044 commit 814b1ab

File tree

41 files changed

+676
-208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+676
-208
lines changed

bsp/imxrt/imxrt1021-nxp-evk/SConstruct

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,5 @@ objs.extend(SConscript(os.path.join(libraries_path_prefix, imxrt_library, 'SCons
6666
# include drivers
6767
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript')))
6868

69-
# include peripherals
70-
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'peripherals', 'SConscript')))
71-
7269
# make a building
7370
DoBuilding(TARGET, objs)

bsp/imxrt/imxrt1021-nxp-evk/applications/SConscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ cwd = GetCurrentDir()
66
src = Glob('*.c')
77
CPPPATH = [cwd]
88

9-
# add for startup script
9+
# add for startup script
1010
if rtconfig.CROSS_TOOL == 'gcc':
1111
CPPDEFINES = ['__START=entry']
1212
else:
1313
CPPDEFINES = []
14-
14+
1515
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
1616

1717
list = os.listdir(cwd)
1818
for item in list:
1919
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
2020
group = group + SConscript(os.path.join(item, 'SConscript'))
21-
21+
2222
Return('group')

bsp/imxrt/imxrt1021-nxp-evk/board/Kconfig

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ menu "Hardware Drivers"
33
config BSP_USING_QSPIFLASH
44
bool
55
default y
6-
6+
77
config SOC_IMXRT1021DAG5A
8-
bool
8+
bool
99
select SOC_MIMXRT1020_SERIES
10-
select RT_USING_COMPONENTS_INIT
10+
select RT_USING_COMPONENTS_INIT
1111
select RT_USING_USER_MAIN
12-
select SOC_IMXRT1020_SERIES
12+
select SOC_IMXRT1020_SERIES
1313
default y
1414

1515

1616
menu "On-chip Peripheral Drivers"
1717

18-
config BSP_USING_DMA
18+
config BSP_USING_DMA
1919
bool "Enable DMA"
2020
default n
2121

2222
config BSP_USING_GPIO
2323
bool "Enable GPIO"
2424
select RT_USING_PIN
2525
default y
26-
26+
2727
menuconfig BSP_USING_CAN
2828
bool "Enable CAN"
2929
select RT_USING_CAN
@@ -39,7 +39,7 @@ menu "On-chip Peripheral Drivers"
3939
bool "Enable UART"
4040
select RT_USING_SERIAL
4141
default y
42-
42+
4343
if BSP_USING_LPUART
4444
config BSP_USING_LPUART1
4545
bool "Enable LPUART1"
@@ -69,19 +69,19 @@ menu "On-chip Peripheral Drivers"
6969
int "Set LPUART1 TX DMA channel (0-32)"
7070
default 1
7171
endif
72-
menuconfig BSP_USING_HWTIMER
73-
bool "Enable GPT"
74-
default n
75-
select RT_USING_HWTIMER
76-
if BSP_USING_TIM
77-
config BSP_USING_HWTIMER1
78-
bool "Enable GPT1"
79-
default n
80-
81-
config BSP_USING_HWTIMER2
82-
bool "Enable GPT2"
83-
default n
84-
endif
72+
menuconfig BSP_USING_HWTIMER
73+
bool "Enable GPT"
74+
default n
75+
select RT_USING_HWTIMER
76+
if BSP_USING_TIM
77+
config BSP_USING_HWTIMER1
78+
bool "Enable GPT1"
79+
default n
80+
81+
config BSP_USING_HWTIMER2
82+
bool "Enable GPT2"
83+
default n
84+
endif
8585
menuconfig BSP_USING_PWM
8686
bool "Enable PWM"
8787
default n
@@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers"
138138
config BSP_USING_ADC1
139139
bool "Enable ADC1"
140140
default n
141-
endif
141+
endif
142142
config BSP_USING_RTC
143143
bool "Enable RTC"
144144
select RT_USING_RTC
@@ -147,47 +147,47 @@ menu "On-chip Peripheral Drivers"
147147
endmenu
148148

149149
menu "Onboard Peripheral Drivers"
150-
config BSP_USING_RGB
151-
bool "Enable RGB LED (PWM1_CH3A, PWM4_CH0A and PWM4_CH1A)"
152-
select BSP_USING_PWM1
153-
select BSP_USING_PWM4
154-
select BSP_USING_PWM1_CH3
155-
select BSP_USING_PWM4_CH0
156-
select BSP_USING_PWM4_CH1
157-
default n
158-
159-
config BSP_USING_MPU6050
160-
bool "Enable MPU6050 (I2C1:J11 --> SCL; K11 --> SDA)"
161-
select BSP_USING_I2C1
162-
select PKG_USING_MPU6XXX
163-
default n
164-
165-
menuconfig BSP_USING_AP3216C
166-
bool "Enable AP3216C (I2C1:J11 --> SCL; K11 --> SDA)"
167-
select BSP_USING_I2C1
168-
select PKG_USING_AP3216C
169-
default n
170-
if BSP_USING_AP3216C
171-
config AP3216C_USING_HW_INT
172-
bool "Enable interrupt"
173-
default n
174-
endif
175-
176-
config BSP_USING_EEPROM
177-
bool "Enable I2C EEPROM (I2C1:J11 --> SCL; K11 --> SDA)"
178-
select BSP_USING_I2C1
179-
select PKG_USING_AT24CXX
180-
default n
181-
182-
config BSP_USING_RS232
183-
bool "Enable RS232"
184-
select BSP_USING_LPUART2
185-
default n
186-
187-
config BSP_USING_RS485
188-
bool "Enable RS485"
189-
select BSP_USING_LPUART5
190-
default n
150+
config BSP_USING_RGB
151+
bool "Enable RGB LED (PWM1_CH3A, PWM4_CH0A and PWM4_CH1A)"
152+
select BSP_USING_PWM1
153+
select BSP_USING_PWM4
154+
select BSP_USING_PWM1_CH3
155+
select BSP_USING_PWM4_CH0
156+
select BSP_USING_PWM4_CH1
157+
default n
158+
159+
config BSP_USING_MPU6050
160+
bool "Enable MPU6050 (I2C1:J11 --> SCL; K11 --> SDA)"
161+
select BSP_USING_I2C1
162+
select PKG_USING_MPU6XXX
163+
default n
164+
165+
menuconfig BSP_USING_AP3216C
166+
bool "Enable AP3216C (I2C1:J11 --> SCL; K11 --> SDA)"
167+
select BSP_USING_I2C1
168+
select PKG_USING_AP3216C
169+
default n
170+
if BSP_USING_AP3216C
171+
config AP3216C_USING_HW_INT
172+
bool "Enable interrupt"
173+
default n
174+
endif
175+
176+
config BSP_USING_EEPROM
177+
bool "Enable I2C EEPROM (I2C1:J11 --> SCL; K11 --> SDA)"
178+
select BSP_USING_I2C1
179+
select PKG_USING_AT24CXX
180+
default n
181+
182+
config BSP_USING_RS232
183+
bool "Enable RS232"
184+
select BSP_USING_LPUART2
185+
default n
186+
187+
config BSP_USING_RS485
188+
bool "Enable RS485"
189+
select BSP_USING_LPUART5
190+
default n
191191

192192
endmenu
193193

bsp/imxrt/imxrt1021-nxp-evk/board/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CPPDEFINES = ['CPU_MIMXRT1021DAG5A', 'ENDIANNESS', 'STD=C99', 'SKIP_SYSCLK_INIT'
1616

1717
if rtconfig.CROSS_TOOL == 'keil':
1818
CPPDEFINES.append('__FPU_PRESENT=1')
19-
19+
2020
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
2121

2222
Return('group')

bsp/imxrt/imxrt1021-nxp-evk/xip/SConscript

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ if GetDepend('BSP_USING_QSPIFLASH'):
1313
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'
1414
LINKFLAGS += '--keep=*(.boot_hdr.conf)'
1515
else:
16-
LINKFLAGS = ''
16+
LINKFLAGS = ''
1717

18-
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
19-
Return('group')
18+
group = DefineGroup('xip', src, depend = [''], CPPPATH = CPPPATH, LINKFLAGS = LINKFLAGS)
19+
Return('group')
2020

21-
if GetDepend('BSP_USING_HYPERFLASH'):
21+
if GetDepend('BSP_USING_HYPERFLASH'):
2222
group = []
23-
Return('group')
23+
Return('group')

bsp/imxrt/imxrt1052-atk-commander/applications/SConscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ cwd = GetCurrentDir()
66
src = Glob('*.c')
77
CPPPATH = [cwd]
88

9-
# add for startup script
9+
# add for startup script
1010
if rtconfig.PLATFORM in ['gcc']:
1111
CPPDEFINES = ['__START=entry']
1212
else:
1313
CPPDEFINES = []
14-
14+
1515
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
1616

1717
list = os.listdir(cwd)
1818
for item in list:
1919
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
2020
group = group + SConscript(os.path.join(item, 'SConscript'))
21-
21+
2222
Return('group')

bsp/imxrt/imxrt1052-atk-commander/board/Kconfig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
menu "Hardware Drivers Config"
22

33
config SOC_IMXRT1052CVL5B
4-
bool
4+
bool
55
select SOC_MIMXRT1050_SERIES
66
select RT_USING_COMPONENTS_INIT
77
select RT_USING_USER_MAIN
@@ -12,7 +12,7 @@ menu "On-chip Peripheral Drivers"
1212
config BSP_USING_DMA
1313
bool "Enable DMA"
1414
default n
15-
15+
1616
config BSP_USING_GPIO
1717
bool "Enable GPIO"
1818
select RT_USING_PIN
@@ -22,7 +22,7 @@ menu "On-chip Peripheral Drivers"
2222
bool "Enable UART"
2323
select RT_USING_SERIAL
2424
default y
25-
25+
2626
if BSP_USING_LPUART
2727
config BSP_USING_LPUART1
2828
bool "Enable LPUART1"
@@ -112,14 +112,14 @@ menu "On-chip Peripheral Drivers"
112112
endmenu
113113

114114
menu "Onboard Peripheral Drivers"
115-
115+
116116
config BSP_USING_SPI_FLASH
117117
bool "Enable SPI FLASH (W25Q256 spi3)"
118118
select BSP_USING_SPI3
119119
select RT_USING_SFUD
120120

121121
default n
122-
122+
123123
config BSP_USING_SDRAM
124124
bool "Enable SDRAM"
125125
default n

bsp/imxrt/imxrt1052-fire-pro/applications/SConscript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ cwd = GetCurrentDir()
66
src = Glob('*.c')
77
CPPPATH = [cwd]
88

9-
# add for startup script
9+
# add for startup script
1010
if rtconfig.PLATFORM in ['gcc']:
1111
CPPDEFINES = ['__START=entry']
1212
else:
1313
CPPDEFINES = []
14-
14+
1515
group = DefineGroup('Applications', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)
1616

1717
list = os.listdir(cwd)
1818
for item in list:
1919
if os.path.isfile(os.path.join(cwd, item, 'SConscript')):
2020
group = group + SConscript(os.path.join(item, 'SConscript'))
21-
21+
2222
Return('group')

bsp/imxrt/imxrt1052-fire-pro/board/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
menu "Hardware Drivers Config"
22

33
config SOC_IMXRT1052CVL5B
4-
bool
4+
bool
55
select SOC_MIMXRT1050_SERIES
66
select RT_USING_COMPONENTS_INIT
77
select RT_USING_USER_MAIN
@@ -12,7 +12,7 @@ menu "On-chip Peripheral Drivers"
1212
config BSP_USING_DMA
1313
bool "Enable DMA"
1414
default n
15-
15+
1616
config BSP_USING_GPIO
1717
bool "Enable GPIO"
1818
select RT_USING_PIN
@@ -33,7 +33,7 @@ menu "On-chip Peripheral Drivers"
3333
bool "Enable UART"
3434
select RT_USING_SERIAL
3535
default y
36-
36+
3737
if BSP_USING_LPUART
3838
config BSP_USING_LPUART1
3939
bool "Enable LPUART1"

bsp/imxrt/imxrt1052-nxp-evk/SConstruct

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,5 @@ objs.extend(SConscript(os.path.join(libraries_path_prefix, imxrt_library, 'SCons
6767
# include drivers
6868
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript')))
6969

70-
# include peripherals
71-
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'peripherals', 'SConscript')))
72-
7370
# make a building
7471
DoBuilding(TARGET, objs)

0 commit comments

Comments
 (0)