/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. ****************************************************************************** * @attention * *

© Copyright (c) 2021 STMicroelectronics. * All rights reserved.

* * This software component is licensed by ST under Ultimate Liberty license * SLA0044, the "License"; You may not use this file except in compliance with * the License. You may obtain a copy of the License at: * www.st.com/SLA0044 * ****************************************************************************** */ /* USER CODE END Header */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __MAIN_H #define __MAIN_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "stm32f0xx_hal.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ #include "taste_yt_remote.h" #include "taste_yt_remote1.h" /* USER CODE END Includes */ /* Exported types ------------------------------------------------------------*/ /* USER CODE BEGIN ET */ uint8_t i; // selbst eingefügt uint32_t tic; uint32_t toc; /* 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 */ /* USER CODE END EFP */ /* Private defines -----------------------------------------------------------*/ #define NCS_MEMS_SPI_Pin GPIO_PIN_0 #define NCS_MEMS_SPI_GPIO_Port GPIOC #define MEMS_INT1_Pin GPIO_PIN_1 #define MEMS_INT1_GPIO_Port GPIOC #define MEMS_INT2_Pin GPIO_PIN_2 #define MEMS_INT2_GPIO_Port GPIOC #define B1_Pin GPIO_PIN_0 #define B1_GPIO_Port GPIOA #define B2_Pin GPIO_PIN_1 #define B2_GPIO_Port GPIOA #define EXT_RESET_Pin GPIO_PIN_5 #define EXT_RESET_GPIO_Port GPIOC #define I2C2_SCL_Pin GPIO_PIN_10 #define I2C2_SCL_GPIO_Port GPIOB #define I2C2_SDA_Pin GPIO_PIN_11 #define I2C2_SDA_GPIO_Port GPIOB #define SPI2_SCK_Pin GPIO_PIN_13 #define SPI2_SCK_GPIO_Port GPIOB #define SPI2_MISO_Pin GPIO_PIN_14 #define SPI2_MISO_GPIO_Port GPIOB #define SPI2_MOSI_Pin GPIO_PIN_15 #define SPI2_MOSI_GPIO_Port GPIOB #define LD3_Pin GPIO_PIN_6 #define LD3_GPIO_Port GPIOC #define LD6_Pin GPIO_PIN_7 #define LD6_GPIO_Port GPIOC #define LD4_Pin GPIO_PIN_8 #define LD4_GPIO_Port GPIOC #define LD5_Pin GPIO_PIN_9 #define LD5_GPIO_Port GPIOC #define USBF4_DM_Pin GPIO_PIN_11 #define USBF4_DM_GPIO_Port GPIOA #define USBF4_DP_Pin GPIO_PIN_12 #define USBF4_DP_GPIO_Port GPIOA #define SWDIO_Pin GPIO_PIN_13 #define SWDIO_GPIO_Port GPIOA #define SWCLK_Pin GPIO_PIN_14 #define SWCLK_GPIO_Port GPIOA /* USER CODE BEGIN Private defines */ /* USER CODE END Private defines */ #ifdef __cplusplus } #endif #endif /* __MAIN_H */ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/