V2.31
This commit is contained in:
@@ -10,6 +10,6 @@ PeripheralVersion=1.4
|
||||
Target Path=obj/APP.hex
|
||||
|
||||
Vendor=WCH
|
||||
MCU=CH32V203RBT6
|
||||
MCU=CH32V203RBT
|
||||
Mcu Type=CH32V20x
|
||||
Link=WCH-Link
|
||||
@@ -4,7 +4,7 @@
|
||||
* Version : V1.0.0
|
||||
* Date : 2021/06/06
|
||||
* Description : CH32V20x Device Peripheral Access Layer System Source File.
|
||||
* For HSE = 32Mhz (CH32V208x/CH32V203RBT6)
|
||||
* For HSE = 32Mhz (CH32V208x/CH32V203RBT)
|
||||
* For HSE = 8Mhz (other CH32V203x)
|
||||
*********************************************************************************
|
||||
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
||||
|
||||
@@ -10,6 +10,6 @@ PeripheralVersion=1.4
|
||||
Target Path=obj\HOST_IAP.hex
|
||||
|
||||
Vendor=WCH
|
||||
MCU=CH32V203RBT6
|
||||
MCU=CH32V203RBT
|
||||
Mcu Type=CH32V20x
|
||||
Link=WCH-Link
|
||||
@@ -83,7 +83,7 @@ void FLASH_ReadWordAdd(uint32_t address, u32* buff, uint16_t length)
|
||||
|
||||
for(i = 0; i < length; i++)
|
||||
{
|
||||
buff[i] = *(__IO uint32_t*)address;//��ָ����ַ��һ���ֵ�����
|
||||
buff[i] = *(__IO uint32_t*)address;
|
||||
address += 4;
|
||||
}
|
||||
}
|
||||
@@ -153,7 +153,6 @@ uint8_t IAP_Flash_Read(uint32_t address, uint8_t* buff, uint32_t length)
|
||||
*/
|
||||
uint8_t mFLASH_ProgramPage_Fast(uint32_t addr, uint32_t* buffer)
|
||||
{
|
||||
/* ����оƬ��flash��������Ĵ˴����� */
|
||||
FLASH_ProgramPage_Fast( addr, buffer );
|
||||
return 0;
|
||||
}
|
||||
@@ -509,9 +508,9 @@ void IAP_Jump_APP(void)
|
||||
/* .... */
|
||||
/* Jump Code */
|
||||
#if DEF_CORE_TYPE == DEF_CORE_CM3
|
||||
jump2app = (iapfun) * (vu32*)(DEF_APP_CODE_START_ADDR + 4); //�û��������ڶ�����Ϊ����ʼ��ַ(��λ��ַ)
|
||||
MSR_MSP(*(vu32*)DEF_APP_CODE_START_ADDR); //��ʼ���û���������ջָ��(�û��������ĵ�һ�������ڴ��ջ����ַ)
|
||||
jump2app(); //��ת��APP.
|
||||
jump2app = (iapfun) * (vu32*)(DEF_APP_CODE_START_ADDR + 4);
|
||||
MSR_MSP(*(vu32*)DEF_APP_CODE_START_ADDR);
|
||||
jump2app();
|
||||
#elif DEF_CORE_TYPE == DEF_CORE_RV
|
||||
/* Code for Jump, Enable Chip soft reset interrupt, jump to application code in soft reset interrupt */
|
||||
Delay_Ms(500);
|
||||
|
||||
@@ -65,6 +65,7 @@ void USBFS_Host_Init( FunctionalState sta )
|
||||
if( sta == ENABLE )
|
||||
{
|
||||
USBFSH->BASE_CTRL = USBFS_UC_HOST_MODE;
|
||||
while(!(USBFSH->BASE_CTRL & USBFS_UC_HOST_MODE));
|
||||
USBFSH->HOST_CTRL = 0;
|
||||
USBFSH->DEV_ADDR = 0;
|
||||
USBFSH->HOST_EP_MOD = USBFS_UH_EP_TX_EN | USBFS_UH_EP_RX_EN;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Version : V1.0.0
|
||||
* Date : 2021/06/06
|
||||
* Description : CH32V20x Device Peripheral Access Layer System Source File.
|
||||
* For HSE = 32Mhz (CH32V208x/CH32V203RBT6)
|
||||
* For HSE = 32Mhz (CH32V208x/CH32V203RBT)
|
||||
* For HSE = 8Mhz (other CH32V203x)
|
||||
*********************************************************************************
|
||||
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
||||
|
||||
Reference in New Issue
Block a user