Skip to content

Commit

Permalink
RT-Thread BSP v1.4.1 for HPM6300EVK
Browse files Browse the repository at this point in the history
- Fixed i2c driver while enabling DMA
- Fixed template project issue

Signed-off-by: Fan YANG <[email protected]>
  • Loading branch information
helloeagleyang committed Feb 6, 2024
1 parent 9b0b861 commit 81d8f42
Show file tree
Hide file tree
Showing 17 changed files with 52 additions and 29 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## 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
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog_zh.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# 更新

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

## v1.4.0

- 整合了hpm_sdk v1.4.0
Expand Down
18 changes: 15 additions & 3 deletions HPMicro-HPM6300EVK.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,28 @@ features_zh:

pkg_type: Board_Support_Packages
pkg_vendor: HPMicro
pkg_version: 1.4.0
pkg_version: 1.4.1

template_projects:
- project_name:
- project_name: blink_led
project_description: create this project if user choose rt-thread project
project_type: rt-thread|@full|@5.0.2
builtin_files:
- source_path_offset: projects/
- source_path_offset: projects/blink_led
target_path_offset: ''
files_and_folders:
- .config
- .cproject
- .project
- .settings
- applications
- Kconfig
- README.md
- rtconfig.h
- rtconfig.py
- rtconfig_preinc.h
- SConscript
- SConstruct
- source_path_offset: 'common'
target_path_offset: ''
files_and_folders:
Expand Down
1 change: 1 addition & 0 deletions common/libraries/drivers/drv_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ static rt_ssize_t hpm_i2c_master_transfer(struct rt_i2c_bus_device *bus, struct
break;
}
i2c_info->is_read = true;
i2c_enable_irq(i2c_info->base, I2C_EVENT_TRANSACTION_COMPLETE);
dmamux_config(HPM_DMAMUX, i2c_info->dma.channel, i2c_info->dmamux, true);
i2c_stat = i2c_rx_trigger_dma(i2c_info->dma.base, i2c_info->dma.channel, i2c_info->base,
core_local_mem_to_sys_address(0, (uint32_t) dummy_buf), transfer_len);
Expand Down
4 changes: 2 additions & 2 deletions projects/adc_example/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=adc_example
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/blink_led/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=blink_led
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/can_example/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=can_example
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/ethernet_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=ethernet_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/ethernet_ptp_master_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=ethernet_ptp_master_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/ethernet_ptp_slave_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=ethernet_ptp_slave_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/flashdb_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=flashdb_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/sdcard_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=sdcard_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/timer_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=timer_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/uart_dma_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=uart_dma_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/usb_device_generic_hid/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=usb_device_generic_hid
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/usb_host_msc_udisk/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=usb_host_msc_udisk
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1
4 changes: 2 additions & 2 deletions projects/webnet_demo/.settings/projcfg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ project_name=webnet_demo
is_base_example_project=True
board_name=hpm6300evk
device_vendor=HPMicro
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.0
bsp_version=1.4.0
bsp_path=repo/Extract/Board_Support_Packages/HPMicro/HPMicro-HPM6300EVK/1.4.1
bsp_version=1.4.1

0 comments on commit 81d8f42

Please sign in to comment.