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

📄 st79_conf.h

📁 st公司新出的一款8位单片机st79的lib库
💻 H
字号:
/**
  ******************************************************************************
  * @file st79_conf.h
  * @brief This file is used to configure the Library.
  * @author STMicroelectronics - MCD & APG Car Body Application Labs
  * @version V0.01
  * @date 04-JUL-2007
  ******************************************************************************
  *
  * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
  * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
  * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
  * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
  * FROM THE CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
  * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
  *
  * <h2><center>&copy; COPYRIGHT 2007 STMicroelectronics</center></h2>
  * @image html logo.bmp
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __ST79_CONF_H
#define __ST79_CONF_H

/* Includes ------------------------------------------------------------------*/
#include "st79_type.h"
#include "st79_macro.h"

/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/

/* Uncomment the line below to compile the library in DEBUG mode.
   This will expanse the "assert" macro in the firmware library code
   (see "Exported macro" section below) */
/* #define DEBUG */

/* Uncomment the line below to use the full assert mode */
#define FULL_ASSERT

/* Select the H/W platform */
#define HW_PLATFORM_TEST_CHIP
/* #define HW_PLATFORM_CUT10 */

/* Select one of the two options */
#define PRINT_ON_USART
//#define PRINT_ON_LINUART

#define MASTER_FREQUENCY ((u32)15000000)
#define BAUD_RATE        ((u32)9600)
#define HSE_Value        ((u32)8000000)

/* Comment the line below to disable the specific peripheral inclusion */

/************************************* ADC ************************************/
#define _ADC 

/*********************************** AWU/BEEP *********************************/
/* #define _AWUBEEP */

/************************************* EXTI ***********************************/
#define _EXTI

/******************************* FLASH/DATA EEPROM ****************************/
/* #define _FLASH */

/********************************* OPTION BYTES *******************************/
/* #define _OPT */

/************************************* GPIOs **********************************/
#define _GPIOA
#define _GPIOB
#define _GPIOC
#define _GPIOD
#define _GPIOE
#define _GPIOF
#define _GPIOG
#define _GPIOH
#define _GPIOI

/************************************* I2C ************************************/
/* #define _I2C */

/************************************* ITC ************************************/
#define _ITC

/************************************* IWDG ***********************************/
#define _IWDG

/************************************* CLK ************************************/
#define _CLK

/************************************* SPI ************************************/
/* #define _SPI */

/************************************* TIM1 ***********************************/
/* #define _TIM1 */

/************************************* TIM2 ***********************************/
/* #define _TIM2 */

/************************************* TIM3 ***********************************/
/* #define _TIM3 */

/************************************* TIM4 ***********************************/
/* #define _TIM4 */

/************************************* USARTs *********************************/
#define _USART
#define _LINUART

/************************************* WWDG ***********************************/
#define _WWDG

/* Exported macro ------------------------------------------------------------*/

/**
  * @brief The assert macro is used for function's parameters check.
  * It is used only if the library is compiled in DEBUG mode.
  * There is a normal mode and a full mode when the FULL_ASSERT constant is
  * defined.
  * @par Parameters:
  * expr : If expr is false, it calls assert_failed function.
  * @retval void None
  * @par Required preconditions:
  * None
  * @par Called functions:
  * None
  * @par Example:
  * Check GPIO mode parameter
  * @code
  * assert(IS_GPIO_MODE_OK(GPIO_InitStruct->GPIO_Mode));
  * @endcode
  */
/* #undef assert - Removed due to MISRA rule 6.3 */
#ifdef DEBUG /* DEBUG defined */
#ifndef FULL_ASSERT /* FULL_ASSERT not defined */
void assert_failed (void);
#define assert(expr) ((expr) ? (void)(0) : assert_failed())
#else /* FULL_ASSERT defined */
void assert_failed (u8 *file, u16 line);
#define assert(expr) ((expr) ? (void)(0) : assert_failed(__FILE__, __LINE__))
#endif
#else /* DEBUG undefined */
#define assert(expr) ((void)(0))
#endif

#endif /* __ST79_CONF_H */

/******************* (C) COPYRIGHT 2007 STMicroelectronics *****END OF FILE****/

⌨️ 快捷键说明

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