ACDC Senior Project v1.0.0
Senior Project for Textron Aviation
Loading...
Searching...
No Matches
main.h
Go to the documentation of this file.
1
14/* Define to prevent recursive inclusion -------------------------------------*/
15#ifndef __MAIN_H
16#define __MAIN_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22/* Includes ------------------------------------------------------------------*/
23#include "stm32f1xx.h"
24#include "stm32f1xx_hal.h"
25#include "ACDC_stdbool.h"
26#include "ACDC_stdint.h"
27#include "ACDC_string.h"
28#include "ACDC_GPIO.h"
29#include "ACDC_CLOCK.h"
30#include "ACDC_INTERRUPT.h"
31#include "ACDC_TIMER.h"
32#include "ACDC_USART.h"
33#include "ACDC_SPI.h"
34#include "ACDC_LTC1298_ADC.h"
35#include "ACDC_LTC1451_DAC.h"
36
37/* Exported functions prototypes ---------------------------------------------*/
38void Error_Handler(void);
39
40/* Private defines -----------------------------------------------------------*/
41#define B1_Pin GPIO_PIN_13
42#define B1_GPIO_Port GPIOC
43#define B1_EXTI_IRQn EXTI15_10_IRQn
44#define USART_TX_Pin GPIO_PIN_2
45#define USART_TX_GPIO_Port GPIOA
46#define USART_RX_Pin GPIO_PIN_3
47#define USART_RX_GPIO_Port GPIOA
48#define LD2_Pin GPIO_PIN_5
49#define LD2_GPIO_Port GPIOA
50#define TMS_Pin GPIO_PIN_13
51#define TMS_GPIO_Port GPIOA
52#define TCK_Pin GPIO_PIN_14
53#define TCK_GPIO_Port GPIOA
54#define SWO_Pin GPIO_PIN_3
55#define SWO_GPIO_Port GPIOB
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* __MAIN_H */
Header file containing functions for configuring the system clock and clock-related peripherals.
Header file for General Purpose Input Output pins.
Contains interrupt functions for hardware peripherals.
Header file for the LTC1298 12-bit ADC.
Header file for the LTC1451 12-bit DAC.
Header file for SPI driver.
Header file containing functions for system timing using a hardware timer.
Header file containing various functions for sending, receiving, and initilizing the UART/USART prehi...
Header file for the type bool.
Header file for intx_t and uintx_t types.
Header file containing String functions.
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition main.c:64