mirror of
https://gitee.com/cosyos/cosyos.git
synced 2026-10-06 04:59:34 +08:00
update Demo-Build/RISC-V32/readme.txt.
Signed-off-by: 零中断延迟的RTOS <cosyos@139.com>
This commit is contained in:
@@ -39,6 +39,7 @@ RISC-V32 之系统构建
|
||||
例程-main
|
||||
int main(void)
|
||||
{
|
||||
/* USER INIT CODE BEGIN */
|
||||
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
|
||||
SystemCoreClockUpdate();
|
||||
Delay_Init();
|
||||
@@ -47,7 +48,9 @@ int main(void)
|
||||
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)
|
||||
if(1){
|
||||
void Debug_Config(void);
|
||||
@@ -72,6 +75,6 @@ int main(void)
|
||||
void SysTick_Handler(void) __attribute__((interrupt));
|
||||
void SysTick_Handler(void)
|
||||
{
|
||||
SysTick->SR = 0;
|
||||
tCosyTick_Handler();
|
||||
SysTick->SR = 0;
|
||||
tCosyTick_Handler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user