⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.h

📁 eaayarm101自制小车源代码 周立功公司原创
💻 H
字号:
//*****************************************************************************
//
// system.h - Global system defines.
//
// Copyright (c) 2005-2007 Luminary Micro, Inc.  All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
// exclusively on LMI's microcontroller products.
//
// The software is owned by LMI and/or its suppliers, and is protected under
// applicable copyright laws.  All rights are reserved.  Any use in violation
// of the foregoing restrictions may subject the user to criminal sanctions
// under applicable laws, as well as to civil liability for the breach of the
// terms and conditions of this license.
//
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 199 of an01245.
//
//*****************************************************************************

#ifndef __SYSTEM_H__
#define __SYSTEM_H__

//*****************************************************************************
//
//! \page system_intro Introduction
//!
//! These are some global, compile-time configuration options for the car that
//! modify the behavior and responsiveness of the application.
//!
//! These definitions are contained in <tt>system.h</tt>.
//
//*****************************************************************************

//*****************************************************************************
//
//! \defgroup system_api Definitions
//! @{
//
//*****************************************************************************

//*****************************************************************************
//
//! This is defined if the car is running on a big table (such as an 8x4
//! table).  It modifies the behavior of the car to be appropriate for a larger
//! table.  If not defined, the car's behavior is set for a small table (such
//! as a 4x4 table).
//
//*****************************************************************************
//#define BIG_TABLE

//*****************************************************************************
//
//! The clock rate at which to run the processor.  This must be either 6000000
//! (i.e. run directly off the 6 MHz crystal on the board) or 12500000 (i.e.
//! run from the PLL divided by 16).
//
//*****************************************************************************
#define SYSTEM_CLOCK            12500000

//*****************************************************************************
//
//! The number of times per second the switches are sampled.  This must be a
//! multiple of 10, and should be large enough that the push button can be
//! sampled and debounced (i.e. four consecutive samples in the new state)
//! within 30 ms (i.e. near the limit of human perception).
//
//*****************************************************************************
#define SYSTICK_CLOCK           200

//*****************************************************************************
//
//! The number of seconds the push button must be held to get into diagnostic
//! mode.
//
//*****************************************************************************
#define DIAG_HOLD_TIME          5

//*****************************************************************************
//
// Close the Doxygen group.
//! @}
//
//*****************************************************************************

#endif // __SYSTEM_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -