system.h
来自「MSP acquires data and sends through USB 」· C头文件 代码 · 共 78 行
H
78 行
/*
* File: system.h
* Purpose: System initialization functions
* Author: Peter Ivanov, Olimex Ltd.
* Modified by:
* Created: 2007-05-19 11:29:32
* Last modify: 2007-06-10 13:13:49 ivanovp {Time-stamp}
* Copyright: (C) Peter Ivanov, Olimex Ltd., 2005, 2007
* Licence: GPL
*/
/**
* \file system.h
* \brief System initialization functions
* \author Peter Ivanov, Olimex Ltd.
*/
/**********************************************************************************/
/* */
/* Copyright (C) 2005 OLIMEX LTD. */
/* */
/* Module Name : system module */
/* File Name : system.h */
/* Revision : 01.00 */
/* Date : 2005/07/04 initial version */
/* */
/**********************************************************************************/
#ifndef system_def
#define system_def
/* definitions */
// POWER MODE
#define MODE_ACTIVE 0
#define MODE_LPM0 1
#define MODE_LPM1 2
#define MODE_LPM2 3
#define MODE_LPM3 4
#define MODE_LPM4 5
/****************************************************************************/
/* Init system frequency */
/* Function : InitFreq_XT2 */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/****************************************************************************/
void InitFreq_XT2(void);
/****************************************************************************/
/* Init system frequency */
/* Function : InitFreq_XT1 */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/****************************************************************************/
void InitFreq_XT1(void);
/****************************************************************************/
/* Init system frequency */
/* Function : InitFreq */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/****************************************************************************/
void InitFreq(void);
/****************************************************************************/
/* Preparing board to enter sleep mode - low power consumption */
/* Function : GoToSleep */
/* Parameters */
/* Input : Nothing */
/* Output : Nothing */
/****************************************************************************/
void GoToSleep(void);
#endif // system_def
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?