mirror of
https://gitea.ecohim.ru:3000/RS485_Relay/RS485_Relay2_fw.git
synced 2025-08-07 16:20:30 +03:00
RS485 UART переделал на DMA по образцу HVD4
This commit is contained in:
@@ -13,6 +13,6 @@
|
||||
#define REL_AUX_BIT (1u<<1)
|
||||
|
||||
void loop_iterate();
|
||||
|
||||
void timer1_ovf_isr(void);
|
||||
|
||||
#endif
|
||||
|
@@ -24,7 +24,7 @@ enum send_state {SEND_IDLE, SEND_BUSY};
|
||||
|
||||
void UART_RxCpltCallback(void);
|
||||
void UART_TxCpltCallback(void);
|
||||
|
||||
void process_incoming_packet();
|
||||
void modbus_loop_iterate();
|
||||
uint8_t read_register(uint16_t address, uint16_t* value);
|
||||
uint8_t write_register(uint16_t address, uint16_t value);
|
||||
|
@@ -51,6 +51,7 @@ void HardFault_Handler(void);
|
||||
void SVC_Handler(void);
|
||||
void PendSV_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
void DMA1_Channel2_3_IRQHandler(void);
|
||||
void TIM1_BRK_UP_TRG_COM_IRQHandler(void);
|
||||
void TIM1_CC_IRQHandler(void);
|
||||
void USART1_IRQHandler(void);
|
||||
|
@@ -1,13 +0,0 @@
|
||||
#ifndef __UART_H
|
||||
#define __UART_H
|
||||
#include <stdint.h>
|
||||
|
||||
#define RET_OK 0
|
||||
#define RET_OVERFLOW 1
|
||||
#define RET_TIMEOUT 2
|
||||
|
||||
uint8_t UART_Transmit_IT(uint8_t * data, uint16_t len, uint16_t timeout);
|
||||
uint8_t UART_Receive_IT(uint8_t * data, uint16_t len, uint16_t timeout);
|
||||
extern void UART_TxCpltCallback(void);
|
||||
extern void UART_RxCpltCallback(void);
|
||||
#endif
|
Reference in New Issue
Block a user