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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/ALL_BSP_COMPILE.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@
"zynqmp-r5-axu4ev",
"yichip/yc3122-pos",
"yichip/yc3121-pos",
"mm32/mm32f103x",
"mm32/mm32f3270-100ask-pitaya",
"mm32f327x",
"mm32f526x",
"mm32l07x",
"mm32/mm32f327x",
"mm32/mm32f526x",
"mm32/mm32l07x",
"mm32/mm32l3xx",
"sam7x",
"hk32/hk32f030c8-mini",
"rm48x50",
Expand Down
2 changes: 1 addition & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ path: bsp/nxp/mcx/mcxn
owners: 下里巴人(hywing)<hywing.sir@qq.com>

tag: bsp_mm32f526x
path: bsp/mm32f526x
path: bsp/mm32/mm32f526x
owners: Huanyi Mai(Maihuanyi)<m19825309307@163.com>

tag: bsp_nrf5x
Expand Down
8 changes: 4 additions & 4 deletions bsp/Copyright_Notice.md
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ Copyright: Copyright (c) 2009 - 2013 ARM LIMITED

Path:

- bsp/mm32l07x/Libraries/CMSIS
- bsp/mm32l3xx/Libraries/CMSIS/IAR_CORE
- bsp/mm32/mm32l07x/Libraries/CMSIS
- bsp/mm32/mm32l3xx/Libraries/CMSIS/IAR_CORE

------

Expand All @@ -561,8 +561,8 @@ Copyright: (c) COPYRIGHT 2017 MindMotion

Path:

- bsp/mm32l07x/Libraries/MM32L0xx
- bsp/mm32l3xx/Libraries/MM32L3xx
- bsp/mm32/mm32l07x/Libraries/MM32L0xx
- bsp/mm32/mm32l3xx/Libraries/MM32L3xx

### nrf

Expand Down
11 changes: 10 additions & 1 deletion bsp/mm32/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ MM32 系列 BSP 目前支持情况如下表所示:

| **BSP 文件夹名称** | **开发板名称** |
|:------------------------- |:-------------------------- |
| **F103 系列** | |
| [mm32f103x](mm32f103x) | MM32 MiniBoard 开发板 |
| **F3270 系列** | |
| [mm32f3270-100ask-pitaya](mm32f3270-100ask-pitaya) | 百问网MM32F3273G8P火龙果开发板 |
| [mm32f327x](mm32f327x) | MM32F3270 EVBoard 开发板 |
| **F526 系列** | |
| [mm32f526x](mm32f526x) | MM32F5265-OB 开发板 |
| **L0 系列** | |
| [mm32l07x](mm32l07x) | MM32 MiniBoard Rev.D2 开发板 |
| **L3 系列** | |
| [mm32l3xx](mm32l3xx) | MM32 MiniBoard Rev.D2 开发板 |

可以通过阅读相应 BSP 下的 README 来快速上手。
可以通过阅读相应 BSP 下的 README 来快速上手。
15 changes: 6 additions & 9 deletions bsp/mm32/libraries/HAL_Drivers/SConscript
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os

cwd = GetCurrentDir()
group = []

# add the general drivers.
src = Split("""
""")

if GetDepend(['RT_USING_PIN']):
src += ['drv_gpio.c']

if GetDepend(['RT_USING_SERIAL']):
src += ['drv_uart.c']

src += ['drv_common.c']
if GetDepend('SOC_SERIES_MM32F3277') or os.path.basename(Dir('#').abspath).lower().startswith('mm32f3270'):
src += ['drv_common.c']

path = [cwd]
path += [cwd + '/config']

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)
group = group + SConscript(os.path.join(cwd, 'drivers', 'SConscript'))
group = group + DefineGroup('Drivers', src, depend = [''], CPPPATH = path)

Return('group')
39 changes: 39 additions & 0 deletions bsp/mm32/libraries/HAL_Drivers/drivers/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Import('RTT_ROOT')
Import('rtconfig')
from building import *
import os

cwd = GetCurrentDir()
group = []
src = []

uart_deps = ['BSP_USING_UART1', 'BSP_USING_UART2', 'BSP_USING_UART3',
'BSP_USING_UART4', 'BSP_USING_UART5', 'BSP_USING_UART6',
'BSP_USING_UART7', 'BSP_USING_UART8']

if GetDepend(['RT_USING_SERIAL']) or any([GetDepend(uart) for uart in uart_deps]):
src += ['drv_uart.c']

gpio_series = ['SOC_SERIES_MM32F103', 'SOC_SERIES_MM32F327',
'SOC_SERIES_MM32F3277', 'SOC_SERIES_MM32F526',
'SOC_SERIES_MM32L3']

if (GetDepend(['RT_USING_PIN']) or GetDepend(['BSP_USING_GPIO'])) and any([GetDepend(series) for series in gpio_series]):
src += ['drv_gpio.c']

if GetDepend(['BSP_USING_ADC']):
src += ['drv_adc.c']

if GetDepend(['BSP_USING_OCFLASH']):
src += ['drv_flash.c']

CPPPATH = [
cwd,
os.path.abspath(os.path.join(cwd, '..')),
os.path.join(Dir('#').abspath, 'board'),
os.path.join(cwd, 'config'),
]

group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)

Return('group')
Loading
Loading