Skip to content

Commit

Permalink
RT-Thread BSP v1.6.0 for HPM5301EVKLITE
Browse files Browse the repository at this point in the history
- integrated hpm_sdk v1.6.0

Signed-off-by: Fan YANG <[email protected]>
  • Loading branch information
helloeagleyang committed Jul 25, 2024
1 parent d9c7712 commit f974ed3
Show file tree
Hide file tree
Showing 2,352 changed files with 942,436 additions and 409,762 deletions.
67 changes: 41 additions & 26 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
# Change Log

## v1.5.0

- Integrated hpm_sdk v1.5.0
- Updated:
- usb stack switched to cherryUSB for usb samples
- Added:
- added interrupt vector mode and preemptive mode
- systemView component

## 1.4.1
- Fixed:
- Transmission error while enabling DMA in I2C driver
- Failed to create template project

## v1.4.0
- Integrated hpm_sdk v1.4.0
- Upgraded RT-Thread to v5.0.2
- Added examples:
- adc_example
- blink_led
- timer_demo
- flashdb_demo
- uart_dma_demo
- usb_device_generic_hid
# Change Log

## v1.6.0

- Integrated hpm_sdk v1.6.0
- Updated:
- Optimized the control of `BRS` bit in CANFD frame
- Upgraded the `cherryUSB` stack to v1.3.1
- Added USB descriptor for Full-speed mode to USB examples
- Upgraded the SoC Datasheet
- Fixed:
- Macro definition errors related to TX DMA for UART7 & UART7
- Memory leakage issue in uart_v2 driver
- Added:
- SPI CS pin control option
- Adapted RT-Thread Cache API

## v1.5.0

- Integrated hpm_sdk v1.5.0
- Updated:
- usb stack switched to cherryUSB for usb samples
- Added:
- added interrupt vector mode and preemptive mode
- systemView component

## 1.4.1
- Fixed:
- Transmission error while enabling DMA in I2C driver
- Failed to create template project

## v1.4.0
- Integrated hpm_sdk v1.4.0
- Upgraded RT-Thread to v5.0.2
- Added examples:
- adc_example
- blink_led
- timer_demo
- flashdb_demo
- uart_dma_demo
- usb_device_generic_hid
- usb_host_msc_udisk
67 changes: 41 additions & 26 deletions ChangeLog_zh.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,42 @@
# 更新

## v1.5.0

- 整合了hpm_sdk v1.5.0
- 更新:
- USB相关sample协议栈切换为cherryUSB
- 新增:
- 增加中断向量模式和可抢占模式
- systemView组件

## v1.4.1
- 修复:
- I2C开启DMA后传输出错的问题
- 默认模板工程创建出错的问题

## v1.4.0
- 整合了hpm_sdk v1.4.0
- RT-Thread升级到v5.0.2
- 增加了如下示例:
- adc_example
- blink_led
- timer_demo
- flashdb_demo
- uart_dma_demo
- usb_device_generic_hid
# 更新

## v1.6.0

- 整合了hpm_sdk v1.6.0
- 修复:
- UART7 和 UART8 TX DMA 相关的宏定义错误问题
- uart_v2中的内存泄露问题
- 更新:
- 优化CANFD帧的BRS位控制
- 升级CherryUSB协议栈到1.3.1
- 为USB例程增加了全速模式相关的描述符
- 芯片的数据手册
- 新增:
- SPI 的CS引脚控制选项
- 适配了RT-Thread Cache 驱动

## v1.5.0

- 整合了hpm_sdk v1.5.0
- 更新:
- USB相关sample协议栈切换为cherryUSB
- 新增:
- 增加中断向量模式和可抢占模式
- systemView组件

## v1.4.1
- 修复:
- I2C开启DMA后传输出错的问题
- 默认模板工程创建出错的问题

## v1.4.0
- 整合了hpm_sdk v1.4.0
- RT-Thread升级到v5.0.2
- 增加了如下示例:
- adc_example
- blink_led
- timer_demo
- flashdb_demo
- uart_dma_demo
- usb_device_generic_hid
- usb_host_msc_udisk
18 changes: 9 additions & 9 deletions HPMicro-HPM5301VKLITE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ features_zh:

pkg_type: Board_Support_Packages
pkg_vendor: HPMicro
pkg_version: 1.5.0
pkg_version: 1.6.0

template_projects:
- project_name: blink_led
Expand Down Expand Up @@ -100,7 +100,7 @@ template_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -154,7 +154,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -205,7 +205,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -257,7 +257,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -308,7 +308,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -359,7 +359,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -413,7 +413,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down Expand Up @@ -467,7 +467,7 @@ example_projects:
- package_name: J-Link
package_type: Debugger_Support_Packages
package_vendor: SEGGER
package_version: 'v7.94g'
package_version: 'v7.96q'
source_path_offset: ''
target_path_offset: ''
files_and_folders: []
Expand Down
39 changes: 39 additions & 0 deletions board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,51 @@ menu "On-chip Peripheral Drivers"
config BSP_USING_SPI1
bool "Enable SPI1"
default y
if BSP_USING_SPI1
config BSP_SPI1_USING_DMA
bool "Enable SPI1 DMA"
default n
choice
prompt "Select SPI1 CS TYPE"
default BSP_SPI1_USING_SOFT_CS
config BSP_SPI1_USING_SOFT_CS
bool "Enable SPI1 software cs"
config BSP_SPI1_USING_HARD_CS
bool "Enable SPI1 hardware cs"
endchoice
endif
config BSP_USING_SPI2
bool "Enable SPI2"
default n
if BSP_USING_SPI2
config BSP_SPI2_USING_DMA
bool "Enable SPI2 DMA"
default n
choice
prompt "Select SPI2 CS TYPE"
default BSP_SPI2_USING_SOFT_CS
config BSP_SPI2_USING_SOFT_CS
bool "Enable SPI2 software cs"
config BSP_SPI2_USING_HARD_CS
bool "Enable SPI2 hardware cs"
endchoice
endif
config BSP_USING_SPI3
bool "Enable SPI3"
default n
if BSP_USING_SPI3
config BSP_SPI3_USING_DMA
bool "Enable SPI3 DMA"
default n
choice
prompt "Select SPI3 CS TYPE"
default BSP_SPI3_USING_SOFT_CS
config BSP_SPI3_USING_SOFT_CS
bool "Enable SPI3 software cs"
config BSP_SPI3_USING_HARD_CS
bool "Enable SPI3 hardware cs"
endchoice
endif
endif

menuconfig BSP_USING_GPTMR
Expand Down
13 changes: 13 additions & 0 deletions board/rtt_board.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <rtthread.h>
#include "hpm_dma_mgr.h"
#include "hpm_rtt_os_tick.h"
#include "hpm_l1c_drv.h"

extern int rt_hw_uart_init(void);

Expand Down Expand Up @@ -92,3 +93,15 @@ void rt_hw_cpu_reset(void)
}

MSH_CMD_EXPORT_ALIAS(rt_hw_cpu_reset, reset, reset the board);

#ifdef RT_USING_CACHE
void rt_hw_cpu_dcache_ops(int ops, void *addr, int size)
{
if (ops == RT_HW_CACHE_FLUSH) {
l1c_dc_flush((uint32_t)addr, size);
} else {
l1c_dc_invalidate((uint32_t)addr, size);
}
}
#endif

2 changes: 1 addition & 1 deletion common/libraries/drivers/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if GetDepend('BSP_USING_ETH'):
if GetDepend('BSP_USING_SDXC'):
src += ['drv_sdio.c']

if GetDepend('BSP_USING_PWM'):
if GetDepend('BSP_USING_PWM') or GetDepend('BSP_USING_PWMV2'):
src += ['drv_pwm.c']

if GetDepend('BSP_USING_GPTMR'):
Expand Down
Loading

0 comments on commit f974ed3

Please sign in to comment.