mppt/User/main.c

46 lines
1.2 KiB
C
Raw Normal View History

2024-07-11 06:58:55 +00:00
/********************************** (C) COPYRIGHT *******************************
* File Name : main.c
* Author : WCH
* Version : V1.0.0
* Date : 2023/12/26
* Description : Main program body.
*********************************************************************************
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Attention: This software (modified or not) and binary are used for
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
/*
*@Note
*GPIO routine:
*PA0 push-pull output.
*
*/
#include "debug.h"
#include "task.h"
#include "pdebug.h"
/*********************************************************************
* @fn main
*
* @brief Main program.
*
* @return none
*/
int main(void)
{
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
SystemCoreClockUpdate();
Delay_Init();
USART_Printf_Init(115200);
printf("SystemClk:%d\r\n", SystemCoreClock);
printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );
2024-07-12 01:19:43 +00:00
printf( "ChipID:%08x\r\n", DBGMCU_GetCHIPID() );
2024-07-11 06:58:55 +00:00
hardware_Init();
task_Init();
}