STM32F10x_StdPeriph_Examples/CEC/stm32f10x_conf.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    CEC/stm32f10x_conf.h 
00004   * @author  MCD Application Team
00005   * @version V3.4.0
00006   * @date    10/15/2010
00007   * @brief   Library configuration file.
00008   ******************************************************************************
00009   * @copy
00010   *
00011   * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
00012   * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
00013   * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
00014   * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
00015   * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
00016   * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
00017   *
00018   * <h2><center>&copy; COPYRIGHT 2010 STMicroelectronics</center></h2>
00019   */ 
00020 
00021 /* Define to prevent recursive inclusion -------------------------------------*/
00022 #ifndef __STM32F10x_CONF_H
00023 #define __STM32F10x_CONF_H
00024 
00025 /* Includes ------------------------------------------------------------------*/
00026 /* Uncomment the line below to enable peripheral header file inclusion */
00027 /* #include "stm32f10x_adc.h" */
00028 /* #include "stm32f10x_bkp.h" */
00029 /* #include "stm32f10x_can.h" */
00030 #include "stm32f10x_cec.h"
00031 /* #include "stm32f10x_crc.h" */
00032 /* #include "stm32f10x_dac.h" */
00033 #include "stm32f10x_dbgmcu.h"
00034 /* #include "stm32f10x_dma.h" */
00035 #include "stm32f10x_exti.h"
00036 /* #include "stm32f10x_flash.h" */
00037 #include "stm32f10x_fsmc.h"
00038 #include "stm32f10x_gpio.h"
00039 /* #include "stm32f10x_i2c.h" */
00040 /* #include "stm32f10x_iwdg.h" */
00041 #include "stm32f10x_pwr.h"
00042 #include "stm32f10x_rcc.h"
00043 /* #include "stm32f10x_rtc.h" */
00044 /* #include "stm32f10x_sdio.h" */
00045 #include "stm32f10x_spi.h"
00046 /* #include "stm32f10x_tim.h" */
00047 #include "stm32f10x_usart.h"
00048 /* #include "stm32f10x_wwdg.h" */
00049 #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
00050 
00051 /* Exported types ------------------------------------------------------------*/
00052 /* Exported constants --------------------------------------------------------*/
00053 /* Uncomment the line below to expanse the "assert_param" macro in the 
00054    Standard Peripheral Library drivers code */
00055 /* #define USE_FULL_ASSERT    1 */
00056 
00057 #if !defined (CEC_DEVICE1) && !defined (CEC_DEVICE2)
00058   #define CEC_DEVICE1  1
00059   /* #define CEC_DEVICE2  2 */
00060 #endif
00061 
00062 #ifdef CEC_DEVICE1
00063  #define MY_DEVICE_ADDRESS  0x01 /* My device address: is my initiator address
00064                                     in case of transmit and the follower address
00065                                     in case of receive */ 
00066  #define FOLLOWER           0x02                                
00067 #elif defined  CEC_DEVICE2
00068  #define MY_DEVICE_ADDRESS  0x02 /* My device address: is my initiator address
00069                                     in case of transmit and the follower address
00070                                     in case of receive */
00071  #define FOLLOWER           0x01                                                                           
00072 #endif                                 
00073 
00074 /* Exported macro ------------------------------------------------------------*/
00075 #ifdef  USE_FULL_ASSERT
00076 
00077 /**
00078   * @brief  The assert_param macro is used for function's parameters check.
00079   * @param  expr: If expr is false, it calls assert_failed function
00080   *   which reports the name of the source file and the source
00081   *   line number of the call that failed. 
00082   *   If expr is true, it returns no value.
00083   * @retval None
00084   */
00085   #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
00086 /* Exported functions ------------------------------------------------------- */
00087   void assert_failed(uint8_t* file, uint32_t line);
00088 #else
00089   #define assert_param(expr) ((void)0)
00090 #endif /* USE_FULL_ASSERT */
00091 
00092 #endif /* __STM32F10x_CONF_H */
00093 
00094 /******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE****/
STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32