Initialize other pheripherals

This commit is contained in:
Attila Body 2019-10-07 11:47:37 +02:00
parent ec4df11c61
commit ffec0e2b57
69 changed files with 25802 additions and 620 deletions

View file

@ -31,6 +31,7 @@ extern "C" {
#include "stm32f4xx_hal.h"
#include "stm32f4xx_ll_crc.h"
#include "stm32f4xx_ll_dma.h"
#include "stm32f4xx_hal.h"
#include "stm32f4xx_ll_spi.h"
#include "stm32f4xx_ll_usart.h"
#include "stm32f4xx_ll_rcc.h"
@ -71,20 +72,32 @@ void Error_Handler(void);
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
#define KEY1_Pin LL_GPIO_PIN_3
#define KEY1_GPIO_Port GPIOE
#define KEY0_Pin LL_GPIO_PIN_4
#define KEY0_GPIO_Port GPIOE
#define DEBUG0_Pin LL_GPIO_PIN_0
#define DEBUG0_GPIO_Port GPIOC
#define DEBUG1_Pin LL_GPIO_PIN_1
#define DEBUG1_GPIO_Port GPIOC
#define DEBUG2_Pin LL_GPIO_PIN_2
#define DEBUG2_GPIO_Port GPIOC
#define DEBUG3_Pin LL_GPIO_PIN_3
#define DEBUG3_GPIO_Port GPIOC
#define LED0_Pin LL_GPIO_PIN_6
#define LED0_GPIO_Port GPIOA
#define LED1_Pin LL_GPIO_PIN_7
#define LED1_GPIO_Port GPIOA
#define F_CS_Pin LL_GPIO_PIN_0
#define F_CS_GPIO_Port GPIOB
#define DIAG0_Pin LL_GPIO_PIN_4
#define DIAG0_GPIO_Port GPIOD
#define DIAG1_Pin LL_GPIO_PIN_5
#define DIAG1_GPIO_Port GPIOD
#define DIAG2_Pin LL_GPIO_PIN_6
#define DIAG2_GPIO_Port GPIOD
#define DIAG3_Pin LL_GPIO_PIN_7
#define DIAG3_GPIO_Port GPIOD
#define T_CS_Pin LL_GPIO_PIN_12
#define T_CS_GPIO_Port GPIOB
#define NRF_CE_Pin LL_GPIO_PIN_6
#define NRF_CE_GPIO_Port GPIOB
#define NRF_CS_Pin LL_GPIO_PIN_7
#define NRF_CS_GPIO_Port GPIOB
#define NRF_IRQ_Pin LL_GPIO_PIN_8
#define NRF_IRQ_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
/* USER CODE END Private defines */