37 lines
886 B
C
37 lines
886 B
C
/********************************PERIPH*************************************
|
|
Данный файл содержит инклюды и дефайны для всех библиотек базовой перефирии.
|
|
***************************************************************************/
|
|
#ifndef __PERIPH_GENERAL_H_
|
|
#define __PERIPH_GENERAL_H_
|
|
|
|
|
|
// user includes
|
|
#include "trace.h"
|
|
|
|
|
|
extern void Error_Handler(void);
|
|
#define ERROR_HANDLER_NAME(_params_) Error_Handler(_params_)
|
|
/* If error handler not defined - set void */
|
|
#ifndef ERROR_HANDLER_NAME
|
|
#define ((void)0U)
|
|
#endif // ERROR_HANDLER_NAME
|
|
|
|
#include "stm32f4xx_hal.h"
|
|
|
|
|
|
#include "gpio_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_
|
|
|