init
This commit is contained in:
36
научка/code/pwm_motor_control/GENERAL/periph_general.h
Normal file
36
научка/code/pwm_motor_control/GENERAL/periph_general.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/********************************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_
|
||||
|
||||
Reference in New Issue
Block a user