feat(rs485-boot): add STM32F103 and G474 ports

This commit is contained in:
2026-08-30 01:37:12 +03:00
parent 94c991380b
commit 217073982f
12 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#ifndef RS485_BOOT_PORT_CONFIG_H
#define RS485_BOOT_PORT_CONFIG_H
#define RS485_BOOT_BAUDRATE 512000UL
#define RS485_BOOT_UART_CLOCK_HZ SystemCoreClock
#define RS485_BOOT_APP_ADDRESS 0x08008000UL
#define RS485_BOOT_FLASH_END 0x08080000UL
#define RS485_BOOT_FLASH_PAGE 2048UL
#define RS485_BOOT_DE_PIN 8U /* USART1 PA9/PA10 AF7; DE PA8. */
#endif

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,8 @@
#ifndef RS485_BOOT_STM32G474VET_H
#define RS485_BOOT_STM32G474VET_H
#include "rs485_boot.h"
void rs485_boot_hw_init(void);
bool rs485_boot_hw_get_byte(uint8_t *byte);
rs485_boot_config_t rs485_boot_hw_config(void);
rs485_boot_port_t rs485_boot_hw_make_port(void);
#endif