Mercurial > ~darius > hgwebdir.cgi > stm32temp
comparison libs/STM32F10x_StdPeriph_Lib_V3.5.0/Project/STM32F10x_StdPeriph_Examples/I2C/IOExpander/main.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 I2C/IOExpander/main.h | |
4 * @author MCD Application Team | |
5 * @version V3.5.0 | |
6 * @date 08-April-2011 | |
7 * @brief Header for main.c module | |
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>© COPYRIGHT 2011 STMicroelectronics</center></h2> | |
19 ****************************************************************************** | |
20 */ | |
21 | |
22 /* Define to prevent recursive inclusion -------------------------------------*/ | |
23 #ifndef __MAIN_H | |
24 #define __MAIN_H | |
25 | |
26 /* Includes ------------------------------------------------------------------*/ | |
27 | |
28 #if !(defined USE_STM32100E_EVAL) && !(defined USE_STM3210C_EVAL) | |
29 #error "Please select STM3210C_EVAL or STM32100E_EVAL board For this example" | |
30 #endif | |
31 | |
32 #include "stm32f10x.h" | |
33 #include "stm32_eval.h" | |
34 #include <stdio.h> | |
35 | |
36 #ifdef USE_STM3210C_EVAL | |
37 #include "stm3210c_eval_lcd.h" | |
38 #include "stm3210c_eval_ioe.h" | |
39 | |
40 #elif defined USE_STM32100E_EVAL | |
41 #include "stm32100e_eval_lcd.h" | |
42 #include "stm32100e_eval_ioe.h" | |
43 #endif | |
44 | |
45 /* Exported types ------------------------------------------------------------*/ | |
46 /* Exported constants --------------------------------------------------------*/ | |
47 | |
48 // #define IOE_POLLING_MODE | |
49 #define IOE_INTERRUPT_MODE | |
50 | |
51 /* Exported macro ------------------------------------------------------------*/ | |
52 /* Exported functions ------------------------------------------------------- */ | |
53 | |
54 | |
55 #endif /* __MAIN_H */ | |
56 | |
57 /******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/ |