Files
rt-thread/bsp/apm32/apm32f051r8-evalboard
Bernard Xiong 743b614875 [components][clock_time] Refactor time subsystem around clock_time (#11111)
* [components][clock_time] Refactor time subsystem around clock_time

Introduce the clock_time core with clock source/event separation, high-resolution scheduling, and boot-time helpers, plus clock_timer adapters for timer peripherals.

Remove legacy ktime/cputime/hwtimer implementations and migrate arch and BSP time paths to the new subsystem while keeping POSIX time integration functional.

Update drivers, Kconfig/SConscript wiring, documentation, and tests; add clock_time overview docs and align naming to clock_boottime/clock_hrtimer/clock_timer.

* [components][clock_time] Use BSP-provided clock timer frequency on riscv64

* [risc-v] Use runtime clock timer frequency for tick and delays

* [bsp] Add clock timer frequency hooks for riscv64 boards

* [bsp] Update Renesas RA driver doc clock_timer link

* [bsp] Sync zynqmp-r5-axu4ev rtconfig after config refresh

* [bsp][rk3500] Update rk3500 clock configuration

* [bsp][hpmicro] Add rt_hw_us_delay hook and update board delays

* [bsp][stm32l496-st-nucleo] enable clock_time for hwtimer sample in ci

* [bsp][hpmicro] Fix rtconfig include scope for hpm6750evk

Move rtconfig.h include outside the ENET_MULTIPLE_PORT guard for hpm6750evk and hpm6750evk2 so configuration macros are available regardless of ENET settings.

* [bsp][raspi3] select clock time for systimer

* [bsp][hpm5300evk] Trim trailing blank line

* [bsp][hpm5301evklite] Trim trailing blank line

* [bsp][hpm5e00evk] Trim trailing blank line

* [bsp][hpm6200evk] Trim trailing blank line

* [bsp][hpm6300evk] Trim trailing blank line

* [bsp][hpm6750evk] Trim trailing blank line

* [bsp][hpm6750evk2] Trim trailing blank line

* [bsp][hpm6750evkmini] Trim trailing blank line

* [bsp][hpm6800evk] Trim trailing blank line

* [bsp][hpm6e00evk] Trim trailing blank line

* [bsp][nxp] switch lpc178x to gcc and remove mcx timer source

* [bsp][stm32] fix the CONFIG_RT_USING_CLOCK_TIME issue.

* [docs][clock_time] add clock time documentation

* [docs][clock_time] Update clock time subsystem documentation

- Update device driver index to use correct page reference
- Clarify upper layer responsibilities in architecture overview
- Update README to describe POSIX/libc, Soft RTC, and device driver usage
- Refine architecture diagram with improved layout and color scheme
- Remove obsolete clock_timer.md file

* [kernel][utest] Trim trailing space

* [clock_time] Fix hrtimer wrap handling

* [clock_time] fix the static rt_inline issue

* [clock_time] fix the rt_clock_hrtimer_control result issue
2026-01-31 17:44:27 +08:00
..

APM32F051R8 EVAL BOARD BSP 说明

简介

本文档为 APM32F051R8 EVAL 开发板EVAL BOARD的 BSP (板级支持包) 说明。

主要内容如下:

  • 开发板资源介绍
  • BSP 快速上手

通过阅读快速上手章节开发者可以快速地上手该 BSP将 RT-Thread 运行在开发板上。

开发板介绍

APM32F051R8 EVAL BOARD采用标准JTAG/SWD调试接口引出了全部的IO。开发板外观如下图所示

APM32F051R8-EVAL

该开发板常用 板载资源 如下:

  • MCUAPM32F051R8T6主频 48MHz64KB FLASH 8KB RAM
  • 外部 RAM
  • 外部 FLASHW25Q16SPI, 16M bit
  • 常用外设
    • LED4个红色PC6/PC7/PC8/PC9
    • 按键4个K1PB6K2PB7K3PB8K4PB9
  • 常用接口USB转串口、USB Device
  • 调试接口:标准 JTAG/SWD

外设支持

本 BSP 目前对外设的支持情况如下:

板载外设 支持情况 备注
USB转串口 支持 使用 UART1
EEPROM 支持 软件i2c1
片上外设 支持情况 备注
GPIO 支持 PA0, PA1... PF10 ---> PIN: 0, 1...89
UART 支持 UART1/2
ADC 支持 ADC1
DAC 支持 DAC1
RTC 支持 支持外部晶振和内部低速时钟
TMR 支持 TMR1/2/3/6/14/15/16/17
PWM 支持 TMR3 ->CH1/2/3/4
I2C 支持 软件I2C
SPI 支持 SPI1/2
WDT 支持 IWDT

使用说明

本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。

快速上手

本 BSP 为开发者提供MDK5 工程。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。

硬件连接

使用数据线连接开发板到 PC打开电源开关。

编译下载

  • 方式一MDK

    双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。

工程默认配置使用 J-Link 仿真器下载程序,在通过 J-Link 连接开发板的基础上,点击下载按钮即可下载程序到开发板

  • 方式二J-Flash下载

    通过ENV工具的scons指令或MDK编译出bin文件后再使用J-Flash工具将bin文件下载至开发板即可大致步骤如下

1、建立J-Flash工程

board

注意步骤4选择芯片型号时要根据自己的开发板所用的芯片型号进行选择。比如本开发板则选择对应的 APM32F051R8T6

2、连接开发板

board

3、将bin文件拖至工程起始地址设为0x8000000

board

4、点击下载

board

运行结果

下载程序成功之后系统会自动运行LED 闪烁

连接开发板对应串口到 PC , 在终端工具里打开相应的串口115200-8-1-N复位设备后可以看到 RT-Thread 的输出信息:

 \ | /
- RT -     Thread Operating System
 / | \     4.1.0 build Aug 20 2021
 2006 - 2021 Copyright by rt-thread team
msh >

注意事项

  • 可在极海官方网站进行所需资料下载如pack安装包和MINI开发板原理图等www.geehy.com;

联系人信息

-abbbcc

-stevetong459

-luobeihai