This commit is contained in:
2025-08-21 17:12:04 +08:00
parent b78c1e416a
commit 233576fd9a
2 changed files with 6 additions and 6 deletions

View File

@@ -56,21 +56,21 @@ void usart1_irq_handler(void);
/******************************************************************************/ /******************************************************************************/
#define LED_RCU RCU_GPIOA
#define LED_PORT GPIOA #define LED_PORT GPIOA
#define LED_PIN GPIO_PIN_7 #define LED_PIN GPIO_PIN_7
#define LED_RCU RCU_GPIOA
/******************************************************************************/ /******************************************************************************/
#define RS485_RCU (g_usart_config.rcu_usart) #define RS485_RCU (g_usart_config.rcu_usart)
#define RS485_PHY (g_usart_config.usart_periph)
#define RS485_IRQ (g_usart_config.irq_type)
#define RS485_GPIO_RCU RCU_GPIOA #define RS485_GPIO_RCU RCU_GPIOA
#define RS485_GPIO_PORT GPIOA #define RS485_GPIO_PORT GPIOA
#define RS485_EN_PIN GPIO_PIN_1
#define RS485_TX_PIN GPIO_PIN_2 #define RS485_TX_PIN GPIO_PIN_2
#define RS485_RX_PIN GPIO_PIN_3 #define RS485_RX_PIN GPIO_PIN_3
#define RS485_PHY (g_usart_config.usart_periph)
#define RS485_BAUDRATE 115200U #define RS485_BAUDRATE 115200U
#define RS485_EN_PIN GPIO_PIN_1
#define RS485_IRQ (g_usart_config.irq_type)
/******************************************************************************/ /******************************************************************************/

View File

@@ -12,8 +12,8 @@ _Min_Stack_Size = 0x400; /* required amount of stack */
/* Memories definition */ /* Memories definition */
MEMORY MEMORY
{ {
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 16K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 8K RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 4K
} }
/* Sections */ /* Sections */