/*****************************************************************************************
* Confidential and Proprietary Information of xxx Corporation
* (C) 2019 ,xxx Corporation . All rights reserved.
* file : main.c
* brief : .c files
* Ver : v0.001
* History: Author Version ChangeContent Date
* xxx NewFile 2019.04.24
*****************************************************************************************/
/**********************************************
* 头文件引用
**********************************************/
#include "main.h"
#include "sys_clock.h"
/**********************************************
* 静态全局变量定义
**********************************************/
/**********************************************
* 内部函数声明
**********************************************/
static void sys_init(void);/* 系统所有模块初始化 */
static void main_Loop(void);/* 系统主循环入口函数 */
static void sys_on(void);/* 从低消费状态唤醒后将关闭的外设重新开启 */
static void sys_off(void);/* 如果满足进入低消费条件则关闭功耗相关外设 */
static void sys_offCheck(void);/* 在进入低消费前判断是否满足条件 */
/**********************************************
* 全局函数实现体
**********************************************/
/****************************************************************************************
* FunctionName : main
* Abstract : main entry point.
* Argument1(in) : void
* Argument2(out) :
* Return Value : int
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
int main( void )
{
asm("sim"); /* disable interrupts */
sys_init();
asm("rim"); /*!<enable interrupts */
while(1)
{
main_Loop();
}
// return 0;
}
/****************************************************************************************
* FunctionName : sys_init
* Abstract : 系统所有模块初始化
* Argument1(in) : void
* Argument2(out) :
* Return Value : void
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
static void sys_init(void)
{
sys_clockInit();
}
/****************************************************************************************
* FunctionName : main_Loop
* Abstract : 系统主循环入口函数
* Argument1(in) : void
* Argument2(out) :
* Return Value : void
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
static void main_Loop(void)
{
}
/****************************************************************************************
* FunctionName : sys_off
* Abstract : 如果满足进入低消费条件则关闭功耗相关外设
* Argument1(in) : void
* Argument2(out) :
* Return Value : void
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
static void sys_off(void)
{
}
/****************************************************************************************
* FunctionName : sys_offCheck
* Abstract : 在进入低消费前判断是否满足条件
* Argument1(in) : void
* Argument2(out) :
* Return Value : void
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
static void sys_offCheck(void)
{
}
/****************************************************************************************
* FunctionName : sys_on
* Abstract : 从低消费状态唤醒后将关闭的外设重新开启
* Argument1(in) : void
* Argument2(out) :
* Return Value : void
* Remarks :
* Create : 2019/04/24 , xxx New
* History :
****************************************************************************************/
static void sys_on(void)
{
}
[学习笔记]单片机裸机系统架构设计框架
猜你喜欢
转载自blog.csdn.net/zgp2917/article/details/89509335
今日推荐
周排行