Skip to content

Commit a6e6b5c

Browse files
committed
[bsp][mm32f526x] 1.add yml file;
2.fix when only UART3 is turned on, the compiler does not include this drv_uart.c;
1 parent dd91bdb commit a6e6b5c

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- "hc32l196"
9494
- "mm32/mm32f3270-100ask-pitaya"
9595
- "mm32f327x"
96+
- "mm32f526x"
9697
- "mm32l07x"
9798
- "sam7x"
9899
- "hk32/hk32f030c8-mini"
@@ -509,4 +510,4 @@ jobs:
509510
run: |
510511
curl -X POST -H "Authorization: token ${{ secrets.RTTHREAD_GITHUB_TOKEN }}" \
511512
-d '{"body":"@${{ github.actor }}, Thank you for your contribution, but there was an error with the action. Could you please help check the BSP compilation issue? Thank you."}' \
512-
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
513+
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
scons.args: &scons
2+
scons_arg:
3+
- '--strict'
4+
devices.gpio:
5+
<<: *scons
6+
kconfig:
7+
- CONFIG_RT_USING_PIN=y
8+
- CONFIG_BSP_USING_GPIO=y
9+
devices.uart:
10+
kconfig:
11+
- CONFIG_RT_USING_SERIAL=y
12+
- CONFIG_RT_USING_SERIAL_V1=y
13+
- CONFIG_BSP_USING_UART1=y
14+
- CONFIG_BSP_USING_UART2=y
15+
- CONFIG_BSP_USING_UART3=y
16+
devices.adc:
17+
kconfig:
18+
- CONFIG_RT_USING_ADC=y
19+
- CONFIG_BSP_USING_ADC=y
20+
- CONFIG_BSP_USING_ADC1=y
21+
- CONFIG_BSP_USING_ADC2=y
22+

bsp/mm32f526x/drivers/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ board.c
1313
""")
1414

1515
# add serial driver code
16-
if GetDepend('BSP_USING_UART1') or GetDepend('BSP_USING_UART2'):
16+
if GetDepend('BSP_USING_UART1') or GetDepend('BSP_USING_UART2') or GetDepend('BSP_USING_UART3'):
1717
src += ['drv_uart.c']
1818

1919
# add gpio driver code

0 commit comments

Comments
 (0)