feat(rs485-boot): add STM32F103 and G474 ports
This commit is contained in:
@@ -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
|
||||
17
c/rs485-boot/ports/stm32g474vet/rs485_boot_stm32g474vet.c
Normal file
17
c/rs485-boot/ports/stm32g474vet/rs485_boot_stm32g474vet.c
Normal file
File diff suppressed because one or more lines are too long
@@ -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
|
||||
Reference in New Issue
Block a user