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
19
extern
"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 ---------------------------------------------*/
38
void
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 */
ACDC_CLOCK.h
Header file containing functions for configuring the system clock and clock-related peripherals.
ACDC_GPIO.h
Header file for General Purpose Input Output pins.
ACDC_INTERRUPT.h
Contains interrupt functions for hardware peripherals.
ACDC_LTC1298_ADC.h
Header file for the LTC1298 12-bit ADC.
ACDC_LTC1451_DAC.h
Header file for the LTC1451 12-bit DAC.
ACDC_SPI.h
Header file for SPI driver.
ACDC_TIMER.h
Header file containing functions for system timing using a hardware timer.
ACDC_USART.h
Header file containing various functions for sending, receiving, and initilizing the UART/USART prehi...
ACDC_stdbool.h
Header file for the type bool.
ACDC_stdint.h
Header file for intx_t and uintx_t types.
ACDC_string.h
Header file containing String functions.
Error_Handler
void Error_Handler(void)
This function is executed in case of error occurrence.
Definition
main.c:64
Core
Inc
main.h
Generated by
1.10.0