comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/CEC/DataExchangeInterrupt/stm32f10x_conf.h @ 0:c59513fd84fb

Initial commit of STM32 test code.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 03 Oct 2011 21:19:15 +1030
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c59513fd84fb
1 /**
2 ******************************************************************************
3 * @file CEC/DataExchangeInterrupt/stm32f10x_conf.h
4 * @author MCD Application Team
5 * @version V3.5.0
6 * @date 08-April-2011
7 * @brief Library configuration file.
8 ******************************************************************************
9 * @attention
10 *
11 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
12 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
13 * TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
14 * DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
15 * FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
16 * CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
17 *
18 * <h2><center>&copy; COPYRIGHT 2011 STMicroelectronics</center></h2>
19 ******************************************************************************
20 */
21
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef __STM32F10x_CONF_H
24 #define __STM32F10x_CONF_H
25
26 /* Includes ------------------------------------------------------------------*/
27 /* Uncomment/Comment the line below to enable/disable peripheral header file inclusion */
28 #include "stm32f10x_adc.h"
29 #include "stm32f10x_bkp.h"
30 #include "stm32f10x_can.h"
31 #include "stm32f10x_cec.h"
32 #include "stm32f10x_crc.h"
33 #include "stm32f10x_dac.h"
34 #include "stm32f10x_dbgmcu.h"
35 #include "stm32f10x_dma.h"
36 #include "stm32f10x_exti.h"
37 #include "stm32f10x_flash.h"
38 #include "stm32f10x_fsmc.h"
39 #include "stm32f10x_gpio.h"
40 #include "stm32f10x_i2c.h"
41 #include "stm32f10x_iwdg.h"
42 #include "stm32f10x_pwr.h"
43 #include "stm32f10x_rcc.h"
44 #include "stm32f10x_rtc.h"
45 #include "stm32f10x_sdio.h"
46 #include "stm32f10x_spi.h"
47 #include "stm32f10x_tim.h"
48 #include "stm32f10x_usart.h"
49 #include "stm32f10x_wwdg.h"
50 #include "misc.h" /* High level functions for NVIC and SysTick (add-on to CMSIS functions) */
51
52 /* Exported types ------------------------------------------------------------*/
53 /* Exported constants --------------------------------------------------------*/
54 /* Uncomment the line below to expanse the "assert_param" macro in the
55 Standard Peripheral Library drivers code */
56 /* #define USE_FULL_ASSERT 1 */
57
58 #if !defined (CEC_DEVICE1) && !defined (CEC_DEVICE2)
59 #define CEC_DEVICE1 1
60 /* #define CEC_DEVICE2 2 */
61 #endif
62
63 #ifdef CEC_DEVICE1
64 #define MY_DEVICE_ADDRESS 0x01 /* My device address: is my initiator address
65 in case of transmit and the follower address
66 in case of receive */
67 #define FOLLOWER 0x02
68 #elif defined CEC_DEVICE2
69 #define MY_DEVICE_ADDRESS 0x02 /* My device address: is my initiator address
70 in case of transmit and the follower address
71 in case of receive */
72 #define FOLLOWER 0x01
73 #endif
74
75 /* Exported macro ------------------------------------------------------------*/
76 #ifdef USE_FULL_ASSERT
77
78 /**
79 * @brief The assert_param macro is used for function's parameters check.
80 * @param expr: If expr is false, it calls assert_failed function which reports
81 * the name of the source file and the source line number of the call
82 * that failed. If expr is true, it returns no value.
83 * @retval None
84 */
85 #define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
86 /* Exported functions ------------------------------------------------------- */
87 void assert_failed(uint8_t* file, uint32_t line);
88 #else
89 #define assert_param(expr) ((void)0)
90 #endif /* USE_FULL_ASSERT */
91
92 #endif /* __STM32F10x_CONF_H */
93
94 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/