/* USER CODE BEGIN Header */ /** * This file is part of the hoverboard-sideboard-hack project. * * Copyright (C) 2020-2021 Emanuel FERU * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f1xx_hal.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "defines.h" #include "config.h" /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ /* USER CODE END ET */ /* Exported constants --------------------------------------------------------*/ /* USER CODE BEGIN EC */ /* USER CODE END EC */ /* Exported macro ------------------------------------------------------------*/ /* USER CODE BEGIN EM */ /* USER CODE END EM */ /* Exported functions prototypes ---------------------------------------------*/ void Error_Handler(void); /* USER CODE BEGIN EFP */ #if !defined(BYPASS_CUBEMX_DEFINES) /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ #define USART_MAIN_BAUD 38400 #define MPU_I2C_SPEED 400000 #define SENSOR2_Pin GPIO_PIN_14 #define SENSOR2_GPIO_Port GPIOC #define AUX1_PU_Pin GPIO_PIN_15 #define AUX1_PU_GPIO_Port GPIOC #define LED1_Pin GPIO_PIN_0 #define LED1_GPIO_Port GPIOA #define AUX2_Pin GPIO_PIN_1 #define AUX2_GPIO_Port GPIOA #define SENSOR1_Pin GPIO_PIN_4 #define SENSOR1_GPIO_Port GPIOA #define AUX3_PU_Pin GPIO_PIN_11 #define AUX3_PU_GPIO_Port GPIOB #define LED5_Pin GPIO_PIN_4 #define LED5_GPIO_Port GPIOB #define LED4_Pin GPIO_PIN_5 #define LED4_GPIO_Port GPIOB #define MPU_SCL_Pin GPIO_PIN_6 #define MPU_SCL_GPIO_Port GPIOB #define MPU_SDA_Pin GPIO_PIN_7 #define MPU_SDA_GPIO_Port GPIOB #define LED3_Pin GPIO_PIN_8 #define LED3_GPIO_Port GPIOB #define LED2_Pin GPIO_PIN_9 #define LED2_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ #endif /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/