1*6b8177c5SMatthias Ringwald /* USER CODE BEGIN Header */ 2*6b8177c5SMatthias Ringwald /** 3*6b8177c5SMatthias Ringwald ****************************************************************************** 4*6b8177c5SMatthias Ringwald * @file : main.h 5*6b8177c5SMatthias Ringwald * @brief : Header for main.c file. 6*6b8177c5SMatthias Ringwald * This file contains the common defines of the application. 7*6b8177c5SMatthias Ringwald ****************************************************************************** 8*6b8177c5SMatthias Ringwald * @attention 9*6b8177c5SMatthias Ringwald * 10*6b8177c5SMatthias Ringwald * <h2><center>© Copyright (c) 2020 STMicroelectronics. 11*6b8177c5SMatthias Ringwald * All rights reserved.</center></h2> 12*6b8177c5SMatthias Ringwald * 13*6b8177c5SMatthias Ringwald * This software component is licensed by ST under BSD 3-Clause license, 14*6b8177c5SMatthias Ringwald * the "License"; You may not use this file except in compliance with the 15*6b8177c5SMatthias Ringwald * License. You may obtain a copy of the License at: 16*6b8177c5SMatthias Ringwald * opensource.org/licenses/BSD-3-Clause 17*6b8177c5SMatthias Ringwald * 18*6b8177c5SMatthias Ringwald ****************************************************************************** 19*6b8177c5SMatthias Ringwald */ 20*6b8177c5SMatthias Ringwald /* USER CODE END Header */ 21*6b8177c5SMatthias Ringwald 22*6b8177c5SMatthias Ringwald /* Define to prevent recursive inclusion -------------------------------------*/ 23*6b8177c5SMatthias Ringwald #ifndef __MAIN_H 24*6b8177c5SMatthias Ringwald #define __MAIN_H 25*6b8177c5SMatthias Ringwald 26*6b8177c5SMatthias Ringwald #ifdef __cplusplus 27*6b8177c5SMatthias Ringwald extern "C" { 28*6b8177c5SMatthias Ringwald #endif 29*6b8177c5SMatthias Ringwald 30*6b8177c5SMatthias Ringwald /* Includes ------------------------------------------------------------------*/ 31*6b8177c5SMatthias Ringwald #include "stm32l4xx_hal.h" 32*6b8177c5SMatthias Ringwald 33*6b8177c5SMatthias Ringwald /* Private includes ----------------------------------------------------------*/ 34*6b8177c5SMatthias Ringwald /* USER CODE BEGIN Includes */ 35*6b8177c5SMatthias Ringwald 36*6b8177c5SMatthias Ringwald /* USER CODE END Includes */ 37*6b8177c5SMatthias Ringwald 38*6b8177c5SMatthias Ringwald /* Exported types ------------------------------------------------------------*/ 39*6b8177c5SMatthias Ringwald /* USER CODE BEGIN ET */ 40*6b8177c5SMatthias Ringwald 41*6b8177c5SMatthias Ringwald /* USER CODE END ET */ 42*6b8177c5SMatthias Ringwald 43*6b8177c5SMatthias Ringwald /* Exported constants --------------------------------------------------------*/ 44*6b8177c5SMatthias Ringwald /* USER CODE BEGIN EC */ 45*6b8177c5SMatthias Ringwald 46*6b8177c5SMatthias Ringwald /* USER CODE END EC */ 47*6b8177c5SMatthias Ringwald 48*6b8177c5SMatthias Ringwald /* Exported macro ------------------------------------------------------------*/ 49*6b8177c5SMatthias Ringwald /* USER CODE BEGIN EM */ 50*6b8177c5SMatthias Ringwald 51*6b8177c5SMatthias Ringwald /* USER CODE END EM */ 52*6b8177c5SMatthias Ringwald 53*6b8177c5SMatthias Ringwald /* Exported functions prototypes ---------------------------------------------*/ 54*6b8177c5SMatthias Ringwald void Error_Handler(void); 55*6b8177c5SMatthias Ringwald 56*6b8177c5SMatthias Ringwald /* USER CODE BEGIN EFP */ 57*6b8177c5SMatthias Ringwald 58*6b8177c5SMatthias Ringwald /* USER CODE END EFP */ 59*6b8177c5SMatthias Ringwald 60*6b8177c5SMatthias Ringwald /* Private defines -----------------------------------------------------------*/ 61*6b8177c5SMatthias Ringwald #define B1_Pin GPIO_PIN_13 62*6b8177c5SMatthias Ringwald #define B1_GPIO_Port GPIOC 63*6b8177c5SMatthias Ringwald #define LED_RX_Pin GPIO_PIN_0 64*6b8177c5SMatthias Ringwald #define LED_RX_GPIO_Port GPIOC 65*6b8177c5SMatthias Ringwald #define LED_TX_Pin GPIO_PIN_1 66*6b8177c5SMatthias Ringwald #define LED_TX_GPIO_Port GPIOC 67*6b8177c5SMatthias Ringwald #define RADIO_nRESET_Pin GPIO_PIN_0 68*6b8177c5SMatthias Ringwald #define RADIO_nRESET_GPIO_Port GPIOA 69*6b8177c5SMatthias Ringwald #define USART_TX_Pin GPIO_PIN_2 70*6b8177c5SMatthias Ringwald #define USART_TX_GPIO_Port GPIOA 71*6b8177c5SMatthias Ringwald #define USART_RX_Pin GPIO_PIN_3 72*6b8177c5SMatthias Ringwald #define USART_RX_GPIO_Port GPIOA 73*6b8177c5SMatthias Ringwald #define RADIO_SCK_Pin GPIO_PIN_5 74*6b8177c5SMatthias Ringwald #define RADIO_SCK_GPIO_Port GPIOA 75*6b8177c5SMatthias Ringwald #define RADIO_MISO_Pin GPIO_PIN_6 76*6b8177c5SMatthias Ringwald #define RADIO_MISO_GPIO_Port GPIOA 77*6b8177c5SMatthias Ringwald #define RADIO_MOSI_Pin GPIO_PIN_7 78*6b8177c5SMatthias Ringwald #define RADIO_MOSI_GPIO_Port GPIOA 79*6b8177c5SMatthias Ringwald #define RADIO_NSS_Pin GPIO_PIN_8 80*6b8177c5SMatthias Ringwald #define RADIO_NSS_GPIO_Port GPIOA 81*6b8177c5SMatthias Ringwald #define TMS_Pin GPIO_PIN_13 82*6b8177c5SMatthias Ringwald #define TMS_GPIO_Port GPIOA 83*6b8177c5SMatthias Ringwald #define TCK_Pin GPIO_PIN_14 84*6b8177c5SMatthias Ringwald #define TCK_GPIO_Port GPIOA 85*6b8177c5SMatthias Ringwald #define RADIO_BUSY_Pin GPIO_PIN_3 86*6b8177c5SMatthias Ringwald #define RADIO_BUSY_GPIO_Port GPIOB 87*6b8177c5SMatthias Ringwald #define RADIO_DIO1_Pin GPIO_PIN_4 88*6b8177c5SMatthias Ringwald #define RADIO_DIO1_GPIO_Port GPIOB 89*6b8177c5SMatthias Ringwald #define RADIO_DIO1_EXTI_IRQn EXTI4_IRQn 90*6b8177c5SMatthias Ringwald /* USER CODE BEGIN Private defines */ 91*6b8177c5SMatthias Ringwald 92*6b8177c5SMatthias Ringwald /* USER CODE END Private defines */ 93*6b8177c5SMatthias Ringwald 94*6b8177c5SMatthias Ringwald #ifdef __cplusplus 95*6b8177c5SMatthias Ringwald } 96*6b8177c5SMatthias Ringwald #endif 97*6b8177c5SMatthias Ringwald 98*6b8177c5SMatthias Ringwald #endif /* __MAIN_H */ 99*6b8177c5SMatthias Ringwald 100*6b8177c5SMatthias Ringwald /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ 101