123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef __MAIN_H
- #define __MAIN_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "stm32h7xx_ll_rcc.h"
- #include "stm32h7xx_ll_crs.h"
- #include "stm32h7xx_ll_bus.h"
- #include "stm32h7xx_ll_system.h"
- #include "stm32h7xx_ll_exti.h"
- #include "stm32h7xx_ll_cortex.h"
- #include "stm32h7xx_ll_utils.h"
- #include "stm32h7xx_ll_pwr.h"
- #include "stm32h7xx_ll_dma.h"
- #include "stm32h7xx_ll_gpio.h"
- #if defined(USE_FULL_ASSERT)
- #include "stm32_assert.h"
- #endif
- void Error_Handler(void);
- #define B1_Pin LL_GPIO_PIN_13
- #define B1_GPIO_Port GPIOC
- #define LD1_Pin LL_GPIO_PIN_0
- #define LD1_GPIO_Port GPIOB
- #define LD3_Pin LL_GPIO_PIN_14
- #define LD3_GPIO_Port GPIOB
- #define STLINK_RX_Pin LL_GPIO_PIN_8
- #define STLINK_RX_GPIO_Port GPIOD
- #define STLINK_TX_Pin LL_GPIO_PIN_9
- #define STLINK_TX_GPIO_Port GPIOD
- #define LD2_Pin LL_GPIO_PIN_1
- #define LD2_GPIO_Port GPIOE
- #ifndef NVIC_PRIORITYGROUP_0
- #define NVIC_PRIORITYGROUP_0 ((uint32_t)0x00000007)
- #define NVIC_PRIORITYGROUP_1 ((uint32_t)0x00000006)
- #define NVIC_PRIORITYGROUP_2 ((uint32_t)0x00000005)
- #define NVIC_PRIORITYGROUP_3 ((uint32_t)0x00000004)
- #define NVIC_PRIORITYGROUP_4 ((uint32_t)0x00000003)
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|