STM8S/A Standard Peripherals Firmware Library
|
I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.h
Go to the documentation of this file.
00001 /** 00002 ****************************************************************************** 00003 * @file I2C/I2C_TwoBoards/I2C_DataExchange/Slave/main.h 00004 * @author MCD Application Team 00005 * @version V2.0.1 00006 * @date 18-November-2011 00007 * @brief Main program body 00008 ****************************************************************************** 00009 * @attention 00010 * 00011 * <h2><center>© COPYRIGHT 2014 STMicroelectronics</center></h2> 00012 * 00013 * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); 00014 * You may not use this file except in compliance with the License. 00015 * You may obtain a copy of the License at: 00016 * 00017 * http://www.st.com/software_license_agreement_liberty_v2 00018 * 00019 * Unless required by applicable law or agreed to in writing, software 00020 * distributed under the License is distributed on an "AS IS" BASIS, 00021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00022 * See the License for the specific language governing permissions and 00023 * limitations under the License. 00024 * 00025 ****************************************************************************** 00026 */ 00027 00028 /* Define to prevent recursive inclusion -------------------------------------*/ 00029 #ifndef __MAIN_H 00030 #define __MAIN_H 00031 00032 00033 /* Define I2C Addressing mode ---------------------------------------------------*/ 00034 /* Comment the line below if you want to use the 10-bit addressing mode */ 00035 #define I2C_slave_7Bits_Address 00036 00037 /* Define Slave Address ---------------------------------------------------*/ 00038 #ifdef I2C_slave_7Bits_Address 00039 #define SLAVE_ADDRESS 0x30 00040 #else 00041 #define SLAVE_ADDRESS 0x330 00042 #endif 00043 00044 #endif /* __MAIN_H*/ 00045 00046 00047 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/