update Demo-Build/RISC-V32/readme.txt.

Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
零中断延迟的RTOS
2026-08-09 09:25:52 +00:00
committed by Gitee
parent 98f38fc1b3
commit ad6086de2e
+12 -12
View File
@@ -103,16 +103,16 @@ RISC-V32 之系统构建
/* 例程-main */
int main(void)
{
/* USER INIT CODE BEGIN */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
SystemCoreClockUpdate();
Delay_Init();
/* USER INIT CODE BEGIN */
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
SystemCoreClockUpdate();
Delay_Init();
////USART_Printf_Init(115200);
USART1_UART_Init (115200);
printf("SystemClk:%d\r\n",SystemCoreClock);
printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );
printf("This is printf example\r\n");
/* USER INIT CODE END */
USART1_UART_Init (115200);
printf("SystemClk:%d\r\n",SystemCoreClock);
printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );
printf("This is printf example\r\n");
/* USER INIT CODE END */
/* USER DEBUG CONFIG */// for CosyOS-Taskmgr
#if (SYSCFG_DEBUGGING == 1)
@@ -121,7 +121,7 @@ int main(void)
Debug_Config();
}// defined in demo_debug.c
#endif
/* USER 启动 CosyOS */// 在main函数的末尾处
if(1){
#if 1 // 建议前期调试时开启,如果CosyOS启动失败会返回错误码提示用户!
@@ -132,7 +132,7 @@ int main(void)
#endif
}
while(1);
while(1);
}
/* 例程-SysTick_Handler */// 根据是否启用硬件压栈,选择相匹配的声明方式:
@@ -169,7 +169,7 @@ MPIE:进中断前中断使能状态
MIE 机器模式中断使能
*/
/* 例程-断点测试钩子 */
/* 例程-断点测试钩子 */// for 硬件压栈
void test_breakpoint_hook(void)
{
printf("break point test failed\r\n");