First working code

This commit is contained in:
Clément Grennerat
2025-09-13 22:21:56 +02:00
parent 3bd65d37a5
commit 81c4eb79c4
9 changed files with 334 additions and 619 deletions
+27 -29
View File
@@ -1,22 +1,21 @@
/* 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) 2025 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
//@formatter:off
******************************************************************************
* @file : main.h
* @brief : Header for main.c file.
* This file contains the common defines of the application.
******************************************************************************
* @attention
*
* Copyright (c) 2025 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Define to prevent recursive inclusion -------------------------------------*/
@@ -32,34 +31,30 @@ extern "C" {
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
//@formatter:on
//@formatter:off
#include "LCD_driver.h"
/* USER CODE END Includes */
/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */
//@formatter:on
//@formatter:off
/* USER CODE END ET */
/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */
//@formatter:on
//@formatter:off
/* USER CODE END EC */
/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
//@formatter:on
//@formatter:off
/* USER CODE END EM */
/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);
/* USER CODE BEGIN EFP */
//@formatter:on
//@formatter:off
/* USER CODE END EFP */
/* Private defines -----------------------------------------------------------*/
@@ -105,14 +100,17 @@ void Error_Handler(void);
#define IM1_GPIO_Port GPIOA
#define PB14_Pin GPIO_PIN_10
#define PB14_GPIO_Port GPIOA
#define A11_Pin GPIO_PIN_11
#define A11_GPIO_Port GPIOA
#define A12_Pin GPIO_PIN_12
#define A12_GPIO_Port GPIOA
#define DRDX_Pin GPIO_PIN_5
#define DRDX_GPIO_Port GPIOB
#define DB12_Pin GPIO_PIN_9
#define DB12_GPIO_Port GPIOB
/* USER CODE BEGIN Private defines */
//@formatter:on
//@formatter:off
/* USER CODE END Private defines */
#ifdef __cplusplus