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

📄 os_config.h

📁 NXP LPC系列AMR7的开发程序源码(LCD
💻 H
字号:
/*********************************************************************
 *
 *  IAR PowerPac - RTOS
 *
 *  (c) Copyright IAR Systems 2006.  All rights reserved.
 *
**********************************************************************
----------------------------------------------------------------------
File    : OS_Config.h
Purpose : Configuration settings for the OS
          Setup configuration according to your hardware
--------  END-OF-HEADER  ---------------------------------------------
*/

#ifndef OS_CONFIG_H                     /* Avoid multiple inclusion */
#define OS_CONFIG_H

/*********************************************************************
*
*       Configuration for RTOSInit
*
*********************************************************************/

/*********************************************************************
*
*       Clock frequency settings
*
*       The IAR kickstart board is delivered with a
*       4.0000 MHz crystal which is default CPU clock
*       if PLL is not initialized
*/

#define _CRYSTAL_CLOCK 4000000L   /* external crystal frequency   */
#define OS_INIT_PLL 0             /* Don't init PLL during startup*/
#define OS_INIT_MAM 1             /* Init memory accelerator      */

#define TICK_PER_SEC   400

/*********************************************************************
*
*       UART settings for OSView
*/

#define OS_UART -1                /* Don't init UART during startup */
#define OS_BAUDRATE 38400L

/****** End of modifyable configuration settings ********************/

/*********************************************************************
*
*       Calculated configuration settings
*/

#ifndef OS_INIT_PLL
  #define OS_INIT_PLL 0
#endif

#if OS_INIT_PLL
  #define OS_PLL_MULTIPLIER   4   /* PLL multiplies by 4          */
#else
  #define OS_PLL_MULTIPLIER   1   /* PLL not used                 */
#endif

#define OS_FSYS (_CRYSTAL_CLOCK * OS_PLL_MULTIPLIER)

/********************************************************************/

#endif                                  /* Avoid multiple inclusion */

/*****  EOF  ********************************************************/

⌨️ 快捷键说明

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