LELEC2811 - I&S / Mbed OS LELEC2811_IKS01A3_Multisensors

Dependencies:   X_NUCLEO_IKS01A3

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file           : main.h
00004   * @brief          : Header for main.c file.
00005   *                   This file contains the common defines of the application.
00006   ******************************************************************************
00007   ** This notice applies to any and all portions of this file
00008   * that are not between comment pairs USER CODE BEGIN and
00009   * USER CODE END. Other portions of this file, whether 
00010   * inserted by the user or by software development tools
00011   * are owned by their respective copyright owners.
00012   *
00013   * COPYRIGHT(c) 2019 STMicroelectronics
00014   *
00015   * Redistribution and use in source and binary forms, with or without modification,
00016   * are permitted provided that the following conditions are met:
00017   *   1. Redistributions of source code must retain the above copyright notice,
00018   *      this list of conditions and the following disclaimer.
00019   *   2. Redistributions in binary form must reproduce the above copyright notice,
00020   *      this list of conditions and the following disclaimer in the documentation
00021   *      and/or other materials provided with the distribution.
00022   *   3. Neither the name of STMicroelectronics nor the names of its contributors
00023   *      may be used to endorse or promote products derived from this software
00024   *      without specific prior written permission.
00025   *
00026   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00027   * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028   * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00029   * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
00030   * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00031   * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00032   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00033   * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00034   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00035   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00036   *
00037   ******************************************************************************
00038   */
00039 
00040 /* Define to prevent recursive inclusion -------------------------------------*/
00041 #ifndef __MAIN_H__
00042 #define __MAIN_H__
00043 
00044 /* Includes ------------------------------------------------------------------*/
00045 
00046 /* Private define ------------------------------------------------------------*/
00047 
00048 #define B1_Pin GPIO_PIN_13
00049 #define B1_GPIO_Port GPIOC
00050 #define MCO_Pin GPIO_PIN_0
00051 #define MCO_GPIO_Port GPIOH
00052 #define USART_TX_Pin GPIO_PIN_2
00053 #define USART_TX_GPIO_Port GPIOA
00054 #define USART_RX_Pin GPIO_PIN_3
00055 #define USART_RX_GPIO_Port GPIOA
00056 #define LD2_Pin GPIO_PIN_5
00057 #define LD2_GPIO_Port GPIOA
00058 #define TMS_Pin GPIO_PIN_13
00059 #define TMS_GPIO_Port GPIOA
00060 #define TCK_Pin GPIO_PIN_14
00061 #define TCK_GPIO_Port GPIOA
00062 
00063 /* ########################## Assert Selection ############################## */
00064 /**
00065   * @brief Uncomment the line below to expanse the "assert_param" macro in the 
00066   *        HAL drivers code
00067   */
00068 /* #define USE_FULL_ASSERT    1U */
00069 
00070 void _Error_Handler(char *, int);
00071 
00072 #define Error_Handler() _Error_Handler(__FILE__, __LINE__)
00073 
00074 #endif /* __MAIN_H__ */
00075 
00076 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/