Skip to content

Commit c2f3974

Browse files
committed
[feat] 1.modified led1 example;
2.add at24cxxx package;
1 parent 6f9ce1f commit c2f3974

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

bsp/mm32f526x/.config

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,10 @@ CONFIG_RT_LIBC_TZ_DEFAULT_SEC=0
860860
# CONFIG_PKG_USING_MULTI_INFRARED is not set
861861
# CONFIG_PKG_USING_AGILE_BUTTON is not set
862862
# CONFIG_PKG_USING_AGILE_LED is not set
863-
# CONFIG_PKG_USING_AT24CXX is not set
863+
CONFIG_PKG_USING_AT24CXX=y
864+
CONFIG_PKG_AT24CXX_PATH="/packages/peripherals/at24cxx"
865+
CONFIG_PKG_USING_AT24CXX_LATEST_VERSION=y
866+
CONFIG_PKG_AT24CXX_VER="latest"
864867
# CONFIG_PKG_USING_MOTIONDRIVER2RTT is not set
865868
# CONFIG_PKG_USING_PCA9685 is not set
866869
# CONFIG_PKG_USING_ILI9341 is not set

bsp/mm32f526x/applications/main.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
/*
2-
* Copyright (c) 2017-2019, MindMotion AE Team
3-
*
4-
* SPDX-License-Identifier: Apache-2.0
2+
* Copyright (c) 2017-2019, Chasel
53
*
64
* Change Logs:
75
* Date Author Notes
8-
* 2019-03-13 henryhuang first version
6+
* 2025-01-06 Chasel first version
97
*/
108

119
#include <rtthread.h>
1210
#include <rtdevice.h>
1311
#include "hal_device.h"
14-
/* defined the LED pin: PA15 */
15-
#define LED_PIN 38
12+
13+
/* defined the LED pin: PB15 */
14+
#define LED_PIN 31
15+
1616
int main(void)
1717
{
1818
int count = 1;
19-
/* set LED4 pin mode to output */
19+
/* set LED1 pin mode to output */
2020
rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT);
2121

22-
while (count++)
23-
{
22+
while (count++) {
2423
rt_pin_write(LED_PIN, PIN_HIGH);
2524
rt_thread_mdelay(500);
2625
rt_pin_write(LED_PIN, PIN_LOW);

bsp/mm32f526x/rtconfig.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@
297297
/* touch drivers */
298298

299299
/* end of touch drivers */
300+
#define PKG_USING_AT24CXX
301+
#define PKG_USING_AT24CXX_LATEST_VERSION
300302
/* end of peripheral libraries and drivers */
301303

302304
/* AI packages */

0 commit comments

Comments
 (0)