Skip to content

Commit d1afb20

Browse files
chaselchasel
authored andcommitted
[bsp][mm32f526x] 1.modifeied data and comment of license;
1 parent ae85d5b commit d1afb20

File tree

13 files changed

+46
-24
lines changed

13 files changed

+46
-24
lines changed

bsp/mm32f526x/applications/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
/*
2-
* Copyright (c) 2017-2019, Chasel
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
35
*
46
* Change Logs:
57
* Date Author Notes
6-
* 2025-01-06 Chasel first version
8+
* 2025-01-22 chasel first version
79
*/
810

911
#include <rtthread.h>

bsp/mm32f526x/board/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2021, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2021-08-05 mazhiyuan first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111
#include <board.h>

bsp/mm32f526x/board/board.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2021, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2021-08-05 mazhiyuan first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111
#ifndef __BOARD_H__

bsp/mm32f526x/board/mm32_msp.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2025-01-22 chasel first version
9+
*/
10+
111
#include <rtthread.h>
212
#include "mm32_device.h"
313
#include "mm32_msp.h"

bsp/mm32f526x/board/mm32_msp.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2025-01-22 chasel first version
9+
*/
10+
111
#ifndef __MM32_MSP_H__
212
#define __MM32_MSP_H__
313

bsp/mm32f526x/drivers/drv_adc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2023, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2023-03-17 letian first version
8+
* 2025-01-22 chasel first version
99
*/
1010
#include <rtdevice.h>
1111
#include "board.h"
@@ -95,12 +95,12 @@ static rt_err_t mm32_get_adc_value(struct rt_adc_device *device, rt_int8_t chann
9595
ADC_SoftwareStartConvCmd(adc_x, ENABLE);
9696

9797
rt_uint32_t cnt = 0;
98+
/* @warning There is a bug here, please fix me. */
9899
while(ADC_GetFlagStatus(adc_x, ADC_FLAG_EOS) == 0) {
99100
rt_thread_mdelay(1);
100101
if (cnt++ > 5)
101102
break;
102103
}
103-
104104
ADC_ClearFlag(adc_x, ADC_FLAG_EOS);
105105

106106
*value = ADC_GetChannelConvertedValue(adc_x, channel);

bsp/mm32f526x/drivers/drv_adc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2023, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2023-03-17 letian first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111
#ifndef __DRV_ADC_H__

bsp/mm32f526x/drivers/drv_flash.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2021, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2021-08-05 mazhiyuan first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111

@@ -14,7 +14,7 @@
1414
#include "drv_flash.h"
1515

1616
#define OCFLASH_BLK_SIZE 1024
17-
#define OCFLASH_LEN 1024*512
17+
#define OCFLASH_LEN 1024*256
1818
#define OCFLASH_ADDR 0x08000000
1919

2020
#ifdef OCFLASH_USE_FAL

bsp/mm32f526x/drivers/drv_flash.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2021, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2021-08-05 mazhiyuan first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111
#ifndef __DRV_FLASH_H__

bsp/mm32f526x/drivers/drv_gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright (c) 2006-2021, RT-Thread Development Team
2+
* Copyright (c) 2022-2025, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
66
* Change Logs:
77
* Date Author Notes
8-
* 2021-08-05 mazhiyuan first version
8+
* 2025-01-22 chasel first version
99
*/
1010

1111
#include <rtthread.h>

0 commit comments

Comments
 (0)