Add USART2 support and modify system clock configuration
- Implemented USART2 initialization and interrupt handling. - Added a function to send data to the server via USART2. - Updated the main application to utilize USART2 for communication. - Changed system clock configuration to use HSE and PLL for higher frequency. - Adjusted SPI1 baud rate prescaler for improved performance. - Enhanced LED control logic based on RFID card detection. - Updated project configuration to reflect new USART2 settings.
This commit is contained in:
@@ -64,6 +64,16 @@ void Error_Handler(void);
|
||||
#define PN532_RST_GPIO_Port GPIOB
|
||||
#define PN532_REQ_Pin GPIO_PIN_1
|
||||
#define PN532_REQ_GPIO_Port GPIOB
|
||||
#define RED_LED_Pin GPIO_PIN_12
|
||||
#define RED_LED_GPIO_Port GPIOB
|
||||
#define ORANGE_LED_Pin GPIO_PIN_13
|
||||
#define ORANGE_LED_GPIO_Port GPIOB
|
||||
#define GREEN_LED_Pin GPIO_PIN_14
|
||||
#define GREEN_LED_GPIO_Port GPIOB
|
||||
#define DEBUG_TXD_Pin GPIO_PIN_9
|
||||
#define DEBUG_TXD_GPIO_Port GPIOA
|
||||
#define DEBUG_RXD_Pin GPIO_PIN_10
|
||||
#define DEBUG_RXD_GPIO_Port GPIOA
|
||||
|
||||
/* USER CODE BEGIN Private defines */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user