Skip to content

Commit 38ec6d2

Browse files
committed
1.修改代码规范和许可
2.删除没用的文件
1 parent 4a836e2 commit 38ec6d2

Some content is hidden

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

61 files changed

+1058
-11345
lines changed

.github/workflows/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
- {RTT_BSP: "gd32e230k-start", RTT_TOOL_CHAIN: "sourcery-arm"}
3939
- {RTT_BSP: "gd32303e-eval", RTT_TOOL_CHAIN: "sourcery-arm"}
4040
- {RTT_BSP: "gd32450z-eval", RTT_TOOL_CHAIN: "sourcery-arm"}
41+
- {RTT_BSP: "fm33lc026", RTT_TOOL_CHAIN: "sourcery-arm"}
4142
- {RTT_BSP: "imx6sx/cortex-a9", RTT_TOOL_CHAIN: "sourcery-arm"}
4243
- {RTT_BSP: "imxrt/imxrt1052-atk-commander", RTT_TOOL_CHAIN: "sourcery-arm"}
4344
- {RTT_BSP: "imxrt/imxrt1052-fire-pro", RTT_TOOL_CHAIN: "sourcery-arm"}

.ignore_format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dir_path:
1212
- components/net/lwip-2.0.3
1313
- components/net/lwip-2.1.2
1414
- bsp/mm32f327x/Libraries
15+
- bsp/fm33lc026/libraries

bsp/Copyright_Notice.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ Path:
125125
- bsp/essemi/es32f0654/libraries/CMSIS/Include
126126
- bsp/essemi/es8p508x/libraries/CMSIS
127127

128+
###fm33lc026
129+
130+
License: Mulan PSL v1
131+
132+
Copyright: Copyright (c) [2019] [Fudan Microelectronics]
133+
134+
Path:
135+
136+
- bsp/fm33lc026\libraries\FM33LC0xx_FL_Driver
137+
- bsp/fm33lc026\libraries\FM
138+
128139
### frdm-k64f
129140

130141
License: bsd-new

bsp/fm33lc026/.config

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,18 +523,14 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64
523523
# CONFIG_PKG_USING_STATE_MACHINE is not set
524524
# CONFIG_PKG_USING_MCURSES is not set
525525
# CONFIG_PKG_USING_COWSAY is not set
526-
CONFIG_SOC_FAMILY_STM32=y
526+
CONFIG_SOC_FAMILY_FM33=y
527527
CONFIG_SOC_SERIES_FM33LC0XX=y
528528

529529
#
530530
# Hardware Drivers Config
531531
#
532532
CONFIG_SOC_FM33LC0XX=y
533533

534-
#
535-
# Onboard Peripheral Drivers
536-
#
537-
538534
#
539535
# On-chip Peripheral Drivers
540536
#
@@ -543,8 +539,3 @@ CONFIG_BSP_USING_UART0=y
543539
CONFIG_BSP_USING_UART1=y
544540
CONFIG_BSP_USING_UART4=y
545541
# CONFIG_BSP_USING_UART5 is not set
546-
# CONFIG_BSP_USING_UDID is not set
547-
548-
#
549-
# Board extended module Drivers
550-
#

bsp/fm33lc026/SConstruct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ Export('SDK_LIB')
4747
# prepare building environment
4848
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
4949

50-
stm32_library = 'FM33LC0xx_FL_Driver'
51-
rtconfig.BSP_LIBRARY_TYPE = stm32_library
50+
fm33_library = 'FM33LC0xx_FL_Driver'
51+
rtconfig.BSP_LIBRARY_TYPE = fm33_library
5252

5353
# include libraries
54-
objs.extend(SConscript(os.path.join(libraries_path_prefix, stm32_library, 'SConscript')))
54+
objs.extend(SConscript(os.path.join(libraries_path_prefix, fm33_library, 'SConscript')))
5555

5656
# include drivers
5757
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'HAL_Drivers', 'SConscript')))

bsp/fm33lc026/applications/main.c

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,28 @@
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2018-11-06 zylx first version
8+
* 2021-08-27 Jiao first version
99
*/
1010

1111
#include <rtthread.h>
12-
#include <rtdevice.h>
13-
#include "fm33lc0xx_fl_gpio.h"
14-
#include "fm33lc0xx_fl_flash.h"
15-
#include "main.h"
16-
17-
18-
static void LED_init(void)
19-
{
20-
FL_GPIO_InitTypeDef GPIO_InitStruct = {0};
21-
22-
FL_GPIO_SetOutputPin(GPIOD,FL_GPIO_PIN_4);
23-
GPIO_InitStruct.pin = FL_GPIO_PIN_4;
24-
GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT;
25-
GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
26-
GPIO_InitStruct.pull = FL_DISABLE;
27-
FL_GPIO_Init(GPIOD, &GPIO_InitStruct);
28-
}
29-
12+
#include "board.h"
3013

3114
int main(void)
3215
{
33-
LED_init();
16+
FL_GPIO_InitTypeDef GPIO_InitStruct = {0};
17+
18+
FL_GPIO_SetOutputPin(GPIOD, FL_GPIO_PIN_4);
19+
GPIO_InitStruct.pin = FL_GPIO_PIN_4;
20+
GPIO_InitStruct.mode = FL_GPIO_MODE_OUTPUT;
21+
GPIO_InitStruct.outputType = FL_GPIO_OUTPUT_PUSHPULL;
22+
GPIO_InitStruct.pull = FL_DISABLE;
23+
FL_GPIO_Init(GPIOD, &GPIO_InitStruct);
3424
while (1)
3525
{
36-
FL_GPIO_SetOutputPin(GPIOD,FL_GPIO_PIN_4);
26+
FL_GPIO_SetOutputPin(GPIOD, FL_GPIO_PIN_4);
3727
rt_thread_mdelay(500);
38-
FL_GPIO_ResetOutputPin(GPIOD,FL_GPIO_PIN_4);
28+
FL_GPIO_ResetOutputPin(GPIOD, FL_GPIO_PIN_4);
3929
rt_thread_mdelay(500);
4030
}
4131

42-
// return RT_EOK;
4332
}
44-
45-

bsp/fm33lc026/applications/main.h

Lines changed: 0 additions & 39 deletions
This file was deleted.

bsp/fm33lc026/board/Kconfig

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ config SOC_FM33LC0XX
77
select RT_USING_USER_MAIN
88
default y
99

10-
menu "Onboard Peripheral Drivers"
11-
12-
endmenu
13-
1410
menu "On-chip Peripheral Drivers"
1511

1612
menuconfig BSP_USING_UART
@@ -38,8 +34,5 @@ menu "On-chip Peripheral Drivers"
3834

3935
endmenu
4036

41-
menu "Board extended module Drivers"
42-
43-
endmenu
4437

4538
endmenu

0 commit comments

Comments
 (0)