Инициализация SPI перенесена в отдельные файлы

This commit is contained in:
alexey
2024-08-14 13:38:04 +03:00
parent b775f36f21
commit 2afa5f161c
5 changed files with 417 additions and 58 deletions

View File

@@ -6,7 +6,6 @@
// user includes
#include "main.h"
extern void Error_Handler(void);
@@ -18,10 +17,17 @@ extern void Error_Handler(void);
#include "stm32f4xx_hal.h"
#include "gpio_general.h"
//#include "uart_general.h"
//#include "tim_general.h"
//#include "flash_general.h"
#ifdef HAL_SPI_MODULE_ENABLED
#include "spi_general.h"
#endif
#ifdef HAL_UART_MODULE_ENABLED
#include "uart_general.h"
#endif
#ifdef HAL_TIM_MODULE_ENABLED
#include "tim_general.h"
#endif
#endif // __PERIPH_GENERAL_H_