mppt/User/main.c

48 lines
1.2 KiB
C

/********************************** (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);
debug("SystemClk:%d\r\n", SystemCoreClock);
debug("ChipID:%08x\r\n", DBGMCU_GetCHIPID());
// printf("SystemClk:%d\r\n", SystemCoreClock);
// printf("ChipID:%08x\r\n", DBGMCU_GetCHIPID());
// Delay_Ms(10000);
Init();
}