This commit is contained in:
2025-05-13 04:55:13 +03:00
parent 3f693566bd
commit ceb6d0ccec
4364 changed files with 2897163 additions and 0 deletions
@@ -0,0 +1,31 @@
#ifndef _USART_H
#define _USART_H
#include <stdio.h>
#include "stm32f4xx.h"
/**
* @brief Definition for COM port1, connected to USART3
*/
#define Open_USART USART3
#define Open_USART USART3
#define Open_USART_CLK RCC_APB1Periph_USART3
#define Open_USART_TX_PIN GPIO_Pin_10
#define Open_USART_TX_GPIO_PORT GPIOC
#define Open_USART_TX_GPIO_CLK RCC_AHB1Periph_GPIOC
#define Open_USART_TX_SOURCE GPIO_PinSource10
#define Open_USART_TX_AF GPIO_AF_USART3
#define Open_USART_RX_PIN GPIO_Pin_11
#define Open_USART_RX_GPIO_PORT GPIOC
#define Open_USART_RX_GPIO_CLK RCC_AHB1Periph_GPIOC
#define Open_USART_RX_SOURCE GPIO_PinSource11
#define Open_USART_RX_AF GPIO_AF_USART3
#define Open_USART_IRQn USART3_IRQn
void USART_Configuration(void);
void USART_NVIC_Config(void);
#endif /*_USART_H*/