Compare commits
5 Commits
c0ea36b58f
...
757163c1dd
Author | SHA1 | Date |
---|---|---|
起床就犯困 | 757163c1dd | |
起床就犯困 | f4e52a8813 | |
起床就犯困 | d9c0372cc9 | |
起床就犯困 | 869d006b94 | |
起床就犯困 | ccaaa42a45 |
|
@ -5,7 +5,7 @@
|
|||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="-148882674934750304" id="ilg.gnumcueclipse.managedbuild.cross.riscv.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT RISC-V Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuiltinSpecsDetector" console="false" env-hash="1005342134977218339" id="ilg.gnumcueclipse.managedbuild.cross.riscv.GCCBuiltinSpecsDetector" keep-relative-paths="false" name="CDT RISC-V Cross GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} ${cross_toolchain_flags} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||
</provider>
|
||||
|
|
|
@ -13,12 +13,18 @@
|
|||
#include <rthw.h>
|
||||
#include "drivers/pin.h"
|
||||
|
||||
|
||||
/* PE3,控制智能模块的电源开关 */
|
||||
#define android_PowerCtrl_Pin 2
|
||||
/* PE2,拉低7 ~10S智能模块系统会强制复位 */
|
||||
#define android_PowerKey_Pin 1
|
||||
|
||||
|
||||
|
||||
void android_PowerCtrl_Init(void);
|
||||
void android_PowerCtrl_Open(void);
|
||||
void android_PowerCtrl_Close(void);
|
||||
|
||||
void android_PowerKey_Init(void);
|
||||
void android_PowerKey_Rest(void);
|
||||
|
||||
#endif /* SOFTWARE_POWER_CTRL_ANDROID_H_ */
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
/*
|
||||
* J1_UART6.h
|
||||
*
|
||||
* Created on: 2024Äê5ÔÂ18ÈÕ
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_RS485_J1_UART6_H_
|
||||
#define HARDWARE_RS485_J1_UART6_H_
|
||||
|
||||
#include "UART.h"
|
||||
|
||||
|
||||
/* PE7 */
|
||||
#define J1_PWR_Ctrl 38
|
||||
|
||||
|
||||
void J1_485_Init(uint32_t baud);
|
||||
void J1_PWR_Open(void);
|
||||
void J1_PWR_Close(void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* HARDWARE_RS485_J1_UART6_H_ */
|
|
@ -1,26 +0,0 @@
|
|||
/*
|
||||
* J2_UART7.h
|
||||
*
|
||||
* Created on: 2024Äê5ÔÂ18ÈÕ
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_RS485_J2_UART7_H_
|
||||
#define HARDWARE_RS485_J2_UART7_H_
|
||||
|
||||
#include "UART.h"
|
||||
|
||||
|
||||
/* PE8 */
|
||||
#define J2_PWR_Ctrl 39
|
||||
|
||||
void J2_485_Init(uint32_t baud);
|
||||
void J2_PWR_Open(void);
|
||||
void J2_PWR_Close(void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* HARDWARE_RS485_J2_UART7_H_ */
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* J3_USART2.h
|
||||
*
|
||||
* Created on: 2024Äê5ÔÂ18ÈÕ
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_RS485_J3_USART2_H_
|
||||
#define HARDWARE_RS485_J3_USART2_H_
|
||||
|
||||
#include "UART.h"
|
||||
|
||||
|
||||
|
||||
/* PE9 */
|
||||
#define J3_PWR_Ctrl 40
|
||||
|
||||
void J3_485_Init(uint32_t baud);
|
||||
void J3_PWR_Open(void);
|
||||
void J3_PWR_Close(void);
|
||||
|
||||
|
||||
#endif /* HARDWARE_RS485_J3_USART2_H_ */
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* J4_UART.h
|
||||
*
|
||||
* Created on: 2024Äê5ÔÂ18ÈÕ
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_RS485_J4_UART8_H_
|
||||
#define HARDWARE_RS485_J4_UART8_H_
|
||||
|
||||
#include "UART.h"
|
||||
|
||||
|
||||
/* PE10 */
|
||||
#define J4_PWR_Ctrl 41
|
||||
|
||||
void J4_485_Init(uint32_t baud);
|
||||
void J4_PWR_Open(void);
|
||||
void J4_PWR_Close(void);
|
||||
|
||||
|
||||
|
||||
#endif /* HARDWARE_RS485_J4_UART8_H_ */
|
|
@ -1,57 +0,0 @@
|
|||
/*
|
||||
* J5-0_USART3.h
|
||||
*
|
||||
* Created on: 2024Äê5ÔÂ18ÈÕ
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_RS485_J5_0_USART3_H_
|
||||
#define HARDWARE_RS485_J5_0_USART3_H_
|
||||
|
||||
#include "UART.h"
|
||||
|
||||
/* PE11 */
|
||||
#define J5_PWR_Ctrl 42
|
||||
/* PE12 */
|
||||
#define J6_PWR_Ctrl 43
|
||||
/* PE13 */
|
||||
#define J7_PWR_Ctrl 44
|
||||
/* PE14 */
|
||||
#define J8_PWR_Ctrl 45
|
||||
/* PE15 */
|
||||
#define J9_PWR_Ctrl 46
|
||||
|
||||
|
||||
/* PD9 */
|
||||
#define TD_USART_A 56
|
||||
/* PD10 */
|
||||
#define TD_USART_B 57
|
||||
/* PD11 */
|
||||
#define TD_USART_C 58
|
||||
|
||||
|
||||
void J5_0_485_Init(uint32_t baud);
|
||||
|
||||
extern void USARTx_SendByte(USART_TypeDef* pUSARTx, uint8_t data);
|
||||
extern void USARTx_SendStr(USART_TypeDef* pUSARTx, char *str);
|
||||
//void USART3_IRQHandler(void);
|
||||
|
||||
void USART_CONNET_J0(void);
|
||||
void USART_CONNET_J5(void);
|
||||
void USART_CONNET_J6(void);
|
||||
void USART_CONNET_J7(void);
|
||||
void USART_CONNET_J8(void);
|
||||
void USART_CONNET_J9(void);
|
||||
|
||||
void J5_PWR_Open(void);
|
||||
void J5_PWR_Close(void);
|
||||
void J6_PWR_Open(void);
|
||||
void J6_PWR_Close(void);
|
||||
void J7_PWR_Open(void);
|
||||
void J7_PWR_Close(void);
|
||||
void J8_PWR_Open(void);
|
||||
void J8_PWR_Close(void);
|
||||
void J9_PWR_Open(void);
|
||||
void J9_PWR_Close(void);
|
||||
|
||||
#endif /* HARDWARE_RS485_J5_0_USART3_H_ */
|
|
@ -35,11 +35,87 @@
|
|||
#define J4_USART UART8
|
||||
#define J5_0_USART USART3
|
||||
|
||||
|
||||
void USARTx_SendByte(USART_TypeDef* pUSARTx, uint8_t data);
|
||||
void USARTx_SendStr(USART_TypeDef* pUSARTx, char *str);
|
||||
void USARTx_SendByte_str(USART_TypeDef* pUSARTx, uint8_t data);
|
||||
void USARTx_SendStr_Len(USART_TypeDef* pUSARTx, char *str, int len);
|
||||
|
||||
|
||||
/* J1_UART6 */
|
||||
/* PE7 */
|
||||
#define J1_PWR_Ctrl 38
|
||||
void J1_485_Init(uint32_t baud);
|
||||
void J1_PWR_Open(void);
|
||||
void J1_PWR_Close(void);
|
||||
|
||||
|
||||
/* J2_UART7 */
|
||||
/* PE8 */
|
||||
#define J2_PWR_Ctrl 39
|
||||
void J2_485_Init(uint32_t baud);
|
||||
void J2_PWR_Open(void);
|
||||
void J2_PWR_Close(void);
|
||||
|
||||
|
||||
/* J3_USART2 */
|
||||
/* PE9 */
|
||||
#define J3_PWR_Ctrl 40
|
||||
void J3_485_Init(uint32_t baud);
|
||||
void J3_PWR_Open(void);
|
||||
void J3_PWR_Close(void);
|
||||
|
||||
|
||||
/* J4_UART8 */
|
||||
/* PE10 */
|
||||
#define J4_PWR_Ctrl 41
|
||||
void J4_485_Init(uint32_t baud);
|
||||
void J4_PWR_Open(void);
|
||||
void J4_PWR_Close(void);
|
||||
|
||||
|
||||
/* J0-5_USART3 */
|
||||
/* PE11 */
|
||||
#define J5_PWR_Ctrl 42
|
||||
/* PE12 */
|
||||
#define J6_PWR_Ctrl 43
|
||||
/* PE13 */
|
||||
#define J7_PWR_Ctrl 44
|
||||
/* PE14 */
|
||||
#define J8_PWR_Ctrl 45
|
||||
/* PE15 */
|
||||
#define J9_PWR_Ctrl 46
|
||||
/* PD9 */
|
||||
#define TD_USART_A 56
|
||||
/* PD10 */
|
||||
#define TD_USART_B 57
|
||||
/* PD11 */
|
||||
#define TD_USART_C 58
|
||||
void J5_0_485_Init(uint32_t baud);
|
||||
void USART_CONNET_J0(void);
|
||||
void USART_CONNET_J5(void);
|
||||
void USART_CONNET_J6(void);
|
||||
void USART_CONNET_J7(void);
|
||||
void USART_CONNET_J8(void);
|
||||
void USART_CONNET_J9(void);
|
||||
void J5_PWR_Open(void);
|
||||
void J5_PWR_Close(void);
|
||||
void J6_PWR_Open(void);
|
||||
void J6_PWR_Close(void);
|
||||
void J7_PWR_Open(void);
|
||||
void J7_PWR_Close(void);
|
||||
void J8_PWR_Open(void);
|
||||
void J8_PWR_Close(void);
|
||||
void J9_PWR_Open(void);
|
||||
void J9_PWR_Close(void);
|
||||
|
||||
|
||||
/* LORA_UART4 */
|
||||
void LORA_UART4_Init(uint32_t baud);
|
||||
|
||||
|
||||
/* Upward_UART5 */
|
||||
void Upward_UART5_Init(uint32_t baud);
|
||||
|
||||
|
||||
|
||||
#endif /* HARDWARE_RS485_UART_H_ */
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
/*
|
||||
* spi.h
|
||||
*
|
||||
* Created on: 2024年7月25日
|
||||
* Author: psx
|
||||
*/
|
||||
|
||||
#ifndef HARDWARE_INC_SPI_H_
|
||||
#define HARDWARE_INC_SPI_H_
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif /* HARDWARE_INC_SPI_H_ */
|
|
@ -12,6 +12,7 @@
|
|||
void android_PowerCtrl_Init(void)
|
||||
{
|
||||
rt_pin_mode(android_PowerCtrl_Pin, PIN_MODE_OUTPUT);
|
||||
android_PowerCtrl_Open();
|
||||
}
|
||||
void android_PowerCtrl_Open(void)
|
||||
{
|
||||
|
@ -22,6 +23,17 @@ void android_PowerCtrl_Close(void)
|
|||
rt_pin_write(android_PowerCtrl_Pin, close);
|
||||
}
|
||||
|
||||
void android_PowerKey_Init(void)
|
||||
{
|
||||
rt_pin_mode(android_PowerKey_Pin, PIN_MODE_OUTPUT);
|
||||
}
|
||||
|
||||
void android_PowerKey_Rest(void)
|
||||
{
|
||||
rt_pin_write(android_PowerKey_Pin, PIN_LOW);
|
||||
rt_thread_mdelay(10000);
|
||||
rt_pin_write(android_PowerKey_Pin, PIN_HIGH);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
/*
|
||||
* J1_UART6.c
|
||||
*
|
||||
* Created on: 2024年5月18日
|
||||
* Author: 34509
|
||||
*/
|
||||
#include "J1_UART6.h"
|
||||
|
||||
|
||||
void J1_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J1_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J1_DE, read);
|
||||
|
||||
rt_pin_mode(J1_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J1_PWR_Open();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* 打开J1485的电源 */
|
||||
void J1_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J1_PWR_Ctrl, open);
|
||||
}
|
||||
/* 关闭J1485的电源 */
|
||||
void J1_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J1_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
/*
|
||||
* J2_UART7.c
|
||||
*
|
||||
* Created on: 2024年5月18日
|
||||
* Author: 34509
|
||||
*/
|
||||
#include "J2_UART7.h"
|
||||
|
||||
|
||||
|
||||
|
||||
void J2_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J2_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J2_DE, read);
|
||||
|
||||
rt_pin_mode(J2_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J2_PWR_Open();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* 打开J2 485的电源 */
|
||||
void J2_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J2_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J2 485的电源 */
|
||||
void J2_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J2_PWR_Ctrl, close);
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
/*
|
||||
* J3_USART2.c
|
||||
*
|
||||
* Created on: 2024年5月18日
|
||||
* Author: 34509
|
||||
*/
|
||||
#include "J3_USART2.h"
|
||||
|
||||
|
||||
|
||||
void J3_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J3_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J3_DE, read);
|
||||
|
||||
rt_pin_mode(J3_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J3_PWR_Open();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* 打开J3 485的电源 */
|
||||
void J3_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J3_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J3 485的电源 */
|
||||
void J3_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J3_PWR_Ctrl, close);
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
/*
|
||||
* J4_UART.c
|
||||
*
|
||||
* Created on: 2024年5月18日
|
||||
* Author: 34509
|
||||
*/
|
||||
|
||||
#include <J4_UART8.h>
|
||||
|
||||
|
||||
|
||||
void J4_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J4_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J4_DE, read);
|
||||
|
||||
rt_pin_mode(J4_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J4_PWR_Open();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 打开J4 485的电源 */
|
||||
void J4_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J4_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J4 485的电源 */
|
||||
void J4_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J4_PWR_Ctrl, close);
|
||||
}
|
|
@ -1,285 +0,0 @@
|
|||
/*
|
||||
* J5-0_USART3.c
|
||||
*
|
||||
* Created on: 2024年5月18日
|
||||
* Author: 34509
|
||||
*/
|
||||
#include "J5-0_USART3.h"
|
||||
#include "uart_dev.h"
|
||||
|
||||
|
||||
void USART3_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
|
||||
|
||||
|
||||
/* 接收缓冲区数组 */
|
||||
uint8_t USART3_Rbuffer[1] = {0x00};
|
||||
|
||||
/*
|
||||
* Function Name : J5_0_485_Init
|
||||
* Description : 初始话串口3用于控制J5-0共6个485接口,设置控制的485为J0.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void J5_0_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J5_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J6_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J7_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J8_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J9_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
|
||||
rt_pin_mode(USART3_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(USART3_DE, read);
|
||||
|
||||
rt_pin_mode(TD_USART_A, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(TD_USART_B, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(TD_USART_C, PIN_MODE_OUTPUT);
|
||||
/* 设置USART3连接J0 485 */
|
||||
USART_CONNET_J0();
|
||||
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* USART3 TX --> PB10 RX --> PB11 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PB10为复用推挽输出
|
||||
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PB11为浮空输入
|
||||
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(USART3, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=1; //抢占优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; //子优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);
|
||||
// USART_ITConfig(USART3, USART_IT_IDLE, ENABLE);
|
||||
|
||||
USART_Cmd(USART3,ENABLE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void USART3_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(USART3, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
// USART_ClearITPendingBit(USART3,USART_IT_RXNE); //清除中断标志
|
||||
// USART_Rbuffer[USART_Rbuffer_Num] = USART_ReceiveData(USART3); //接收数据
|
||||
// USART_Rbuffer_Num++;
|
||||
USART3_Rbuffer[0] = USART_ReceiveData(USART3); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J50RS485_USART3_handle;
|
||||
c = USART3_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
|
||||
// if(USART_GetITStatus(USART3, USART_IT_IDLE) != RESET) //中断产生
|
||||
// {
|
||||
//// for(USART_Tbuffer_Num=0;USART_Tbuffer_Num < USART_Rbuffer_Num;USART_Tbuffer_Num++)
|
||||
//// {
|
||||
//// USARTx_SendByte(USART3, USART_Rbuffer[USART_Tbuffer_Num]); //发送数据
|
||||
//// }
|
||||
// USARTx_SendStr_Len(USART3, USART_Rbuffer, USART_Rbuffer_Num);
|
||||
// rt_kprintf("USART_Rbuffer_Num = %d \n", USART_Rbuffer_Num);
|
||||
//// USART3->STATR;
|
||||
//// USART3->DATAR;
|
||||
// USART_Rbuffer_Num = 0; //初始化
|
||||
// USART_ReceiveData(USART3); //读DR
|
||||
// }
|
||||
//
|
||||
// if(USART_GetFlagStatus(USART3,USART_FLAG_ORE) == SET) //溢出
|
||||
// {
|
||||
// USART_ClearFlag(USART3,USART_FLAG_ORE); //清标志
|
||||
// USART_ReceiveData(USART3); //读DR
|
||||
// }
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J0
|
||||
* Description : 控制串口3连接J0对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J0(void)
|
||||
{
|
||||
J5_PWR_Close();
|
||||
J6_PWR_Close();
|
||||
J7_PWR_Close();
|
||||
J8_PWR_Close();
|
||||
J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J5
|
||||
* Description : 控制串口3连接J5对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J5(void)
|
||||
{
|
||||
J5_PWR_Open();
|
||||
J6_PWR_Close();
|
||||
J7_PWR_Close();
|
||||
J8_PWR_Close();
|
||||
J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J6
|
||||
* Description : 控制串口3连接J6对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J6(void)
|
||||
{
|
||||
J5_PWR_Close();
|
||||
J6_PWR_Open();
|
||||
J7_PWR_Close();
|
||||
J8_PWR_Close();
|
||||
J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J7
|
||||
* Description : 控制串口3连接J7对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J7(void)
|
||||
{
|
||||
J5_PWR_Close();
|
||||
J6_PWR_Close();
|
||||
J7_PWR_Open();
|
||||
J8_PWR_Close();
|
||||
J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J8
|
||||
* Description : 控制串口3连接J8对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J8(void)
|
||||
{
|
||||
J5_PWR_Close();
|
||||
J6_PWR_Close();
|
||||
J7_PWR_Close();
|
||||
J8_PWR_Open();
|
||||
J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_HIGH);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J9
|
||||
* Description : 控制串口3连接J9对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J9(void)
|
||||
{
|
||||
J5_PWR_Close();
|
||||
J6_PWR_Close();
|
||||
J7_PWR_Close();
|
||||
J8_PWR_Close();
|
||||
J9_PWR_Open();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_HIGH);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void J5_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J5_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
|
||||
void J5_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J5_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
void J6_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J6_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
|
||||
void J6_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J6_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
void J7_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J7_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
|
||||
void J7_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J7_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
void J8_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J8_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
|
||||
void J8_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J8_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
void J9_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J9_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
|
||||
void J9_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J9_PWR_Ctrl, close);
|
||||
}
|
|
@ -5,6 +5,29 @@
|
|||
* Author: 34509
|
||||
*/
|
||||
#include "UART.h"
|
||||
#include "uart_dev.h"
|
||||
|
||||
|
||||
void USART2_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void USART3_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void UART4_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void UART5_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void UART6_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void UART7_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
void UART8_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast")));
|
||||
|
||||
|
||||
|
||||
/* 接收缓冲区数组 */
|
||||
uint8_t USART2_Rbuffer[1] = {0x00};
|
||||
uint8_t USART3_Rbuffer[1] = {0x00};
|
||||
uint8_t UART4_Rbuffer[1] = {0x00};
|
||||
uint8_t UART5_Rbuffer[1] = {0x00};
|
||||
uint8_t UART6_Rbuffer[1] = {0x00};
|
||||
uint8_t UART7_Rbuffer[1] = {0x00};
|
||||
uint8_t UART8_Rbuffer[1] = {0x00};
|
||||
|
||||
|
||||
|
||||
void USARTx_SendByte(USART_TypeDef* pUSARTx, uint8_t data)
|
||||
{
|
||||
|
@ -55,7 +78,6 @@ void USARTx_SendByte_str(USART_TypeDef* pUSARTx, uint8_t data)
|
|||
{
|
||||
USART_SendData(pUSARTx, data);
|
||||
while(USART_GetFlagStatus(pUSARTx, USART_FLAG_TXE) == RESET);
|
||||
|
||||
}
|
||||
|
||||
void USARTx_SendStr(USART_TypeDef* pUSARTx, char *str)
|
||||
|
@ -155,3 +177,718 @@ void USARTx_SendStr_Len(USART_TypeDef* pUSARTx, char *str, int len)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化UART6对应的J1_485,默认为接收,电源关闭状态
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void J1_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J1_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J1_DE, read);
|
||||
|
||||
rt_pin_mode(J1_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J1_PWR_Close();
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* UART6 TX --> PC0 RX --> PC1 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART6, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PC0为复用推挽输出
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PC1为浮空输入
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(UART6, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = UART6_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(UART6, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(UART6,ENABLE);
|
||||
}
|
||||
|
||||
/* 打开J1485的电源 */
|
||||
void J1_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J1_PWR_Ctrl, open);
|
||||
}
|
||||
/* 关闭J1485的电源 */
|
||||
void J1_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J1_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化UART7对应的J2_485,默认为接收,电源关闭状态
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void J2_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J2_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J2_DE, read);
|
||||
|
||||
rt_pin_mode(J2_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J2_PWR_Close();
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* UART7 TX --> PC2 RX --> PC3 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART7, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PC2为复用推挽输出
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PC3为浮空输入
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(UART7, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = UART7_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(UART7, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(UART7,ENABLE);
|
||||
}
|
||||
|
||||
/* 打开J2 485的电源 */
|
||||
void J2_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J2_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J2 485的电源 */
|
||||
void J2_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J2_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化USART2对应的J3_485,默认为接收,电源关闭状态
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void J3_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J3_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J3_DE, read);
|
||||
|
||||
rt_pin_mode(J3_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J3_PWR_Close();
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* USART2 TX --> PA2 RX --> PA3 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PA2为复用推挽输出
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PA3为浮空输入
|
||||
GPIO_Init(GPIOA, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(USART2, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = USART2_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(USART2, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(USART2,ENABLE);
|
||||
}
|
||||
|
||||
/* 打开J3 485的电源 */
|
||||
void J3_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J3_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J3 485的电源 */
|
||||
void J3_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J3_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化UART8对应的J4_485,默认为接收,电源关闭状态
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void J4_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J4_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(J4_DE, read);
|
||||
|
||||
rt_pin_mode(J4_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
J4_PWR_Open();
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* UART8 TX --> PC4 RX --> PC5 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART8, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PC4为复用推挽输出
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_5;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PC5为浮空输入
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(UART8, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = UART8_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(UART8, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(UART8,ENABLE);
|
||||
}
|
||||
|
||||
/* 打开J4 485的电源 */
|
||||
void J4_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J4_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
/* 关闭J4 485的电源 */
|
||||
void J4_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J4_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始话USART3用于控制J5-0共6个485接口,设置控制的485为J0,电源全部关闭
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void J5_0_485_Init(uint32_t baud)
|
||||
{
|
||||
rt_pin_mode(J5_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J6_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J7_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J8_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(J9_PWR_Ctrl, PIN_MODE_OUTPUT);
|
||||
|
||||
rt_pin_mode(USART3_DE, PIN_MODE_OUTPUT);
|
||||
/* 设置485状态为读 */
|
||||
rt_pin_write(USART3_DE, read);
|
||||
|
||||
rt_pin_mode(TD_USART_A, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(TD_USART_B, PIN_MODE_OUTPUT);
|
||||
rt_pin_mode(TD_USART_C, PIN_MODE_OUTPUT);
|
||||
/* 设置USART3连接J0 485 */
|
||||
USART_CONNET_J0();
|
||||
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* USART3 TX --> PB10 RX --> PB11 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART3, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PB10为复用推挽输出
|
||||
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PB11为浮空输入
|
||||
GPIO_Init(GPIOB, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(USART3, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = USART3_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=1; //抢占优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 1; //子优先级为1
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);
|
||||
// USART_ITConfig(USART3, USART_IT_IDLE, ENABLE);
|
||||
|
||||
USART_Cmd(USART3,ENABLE);
|
||||
}
|
||||
|
||||
//void USART3_IRQHandler(void)
|
||||
//{
|
||||
// if(USART_GetITStatus(USART3, USART_IT_RXNE) != RESET) //中断产生
|
||||
// {
|
||||
//// USART_ClearITPendingBit(USART3,USART_IT_RXNE); //清除中断标志
|
||||
//// USART_Rbuffer[USART_Rbuffer_Num] = USART_ReceiveData(USART3); //接收数据
|
||||
//// USART_Rbuffer_Num++;
|
||||
// USART3_Rbuffer[0] = USART_ReceiveData(USART3); //接收数据
|
||||
// uint8_t c = 0;
|
||||
// uart_device_info *dev = (uart_device_info *)g_J50RS485_USART3_handle;
|
||||
// c = USART3_Rbuffer[0];
|
||||
// if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
// InRingQueue(&dev->uart_ring_queue, c);
|
||||
//
|
||||
// }
|
||||
//
|
||||
//// if(USART_GetITStatus(USART3, USART_IT_IDLE) != RESET) //中断产生
|
||||
//// {
|
||||
////// for(USART_Tbuffer_Num=0;USART_Tbuffer_Num < USART_Rbuffer_Num;USART_Tbuffer_Num++)
|
||||
////// {
|
||||
////// USARTx_SendByte(USART3, USART_Rbuffer[USART_Tbuffer_Num]); //发送数据
|
||||
////// }
|
||||
//// USARTx_SendStr_Len(USART3, USART_Rbuffer, USART_Rbuffer_Num);
|
||||
//// rt_kprintf("USART_Rbuffer_Num = %d \n", USART_Rbuffer_Num);
|
||||
////// USART3->STATR;
|
||||
////// USART3->DATAR;
|
||||
//// USART_Rbuffer_Num = 0; //初始化
|
||||
//// USART_ReceiveData(USART3); //读DR
|
||||
//// }
|
||||
////
|
||||
//// if(USART_GetFlagStatus(USART3,USART_FLAG_ORE) == SET) //溢出
|
||||
//// {
|
||||
//// USART_ClearFlag(USART3,USART_FLAG_ORE); //清标志
|
||||
//// USART_ReceiveData(USART3); //读DR
|
||||
//// }
|
||||
//}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J0
|
||||
* Description : 控制串口3连接J0对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J0(void)
|
||||
{
|
||||
// J5_PWR_Close();
|
||||
// J6_PWR_Close();
|
||||
// J7_PWR_Close();
|
||||
// J8_PWR_Close();
|
||||
// J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J5
|
||||
* Description : 控制串口3连接J5对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J5(void)
|
||||
{
|
||||
// J5_PWR_Open();
|
||||
// J6_PWR_Close();
|
||||
// J7_PWR_Close();
|
||||
// J8_PWR_Close();
|
||||
// J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J6
|
||||
* Description : 控制串口3连接J6对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J6(void)
|
||||
{
|
||||
// J5_PWR_Close();
|
||||
// J6_PWR_Open();
|
||||
// J7_PWR_Close();
|
||||
// J8_PWR_Close();
|
||||
// J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J7
|
||||
* Description : 控制串口3连接J7对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J7(void)
|
||||
{
|
||||
// J5_PWR_Close();
|
||||
// J6_PWR_Close();
|
||||
// J7_PWR_Open();
|
||||
// J8_PWR_Close();
|
||||
// J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_C, PIN_LOW);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J8
|
||||
* Description : 控制串口3连接J8对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J8(void)
|
||||
{
|
||||
// J5_PWR_Close();
|
||||
// J6_PWR_Close();
|
||||
// J7_PWR_Close();
|
||||
// J8_PWR_Open();
|
||||
// J9_PWR_Close();
|
||||
rt_pin_write(TD_USART_A, PIN_LOW);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_HIGH);
|
||||
}
|
||||
|
||||
/*
|
||||
* Function Name : USART_CONNET_J9
|
||||
* Description : 控制串口3连接J9对应的485.
|
||||
* Input : None
|
||||
* Return : None
|
||||
**/
|
||||
void USART_CONNET_J9(void)
|
||||
{
|
||||
// J5_PWR_Close();
|
||||
// J6_PWR_Close();
|
||||
// J7_PWR_Close();
|
||||
// J8_PWR_Close();
|
||||
// J9_PWR_Open();
|
||||
rt_pin_write(TD_USART_A, PIN_HIGH);
|
||||
rt_pin_write(TD_USART_B, PIN_LOW);
|
||||
rt_pin_write(TD_USART_C, PIN_HIGH);
|
||||
}
|
||||
|
||||
void J5_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J5_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
void J5_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J5_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
void J6_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J6_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
void J6_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J6_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
void J7_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J7_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
void J7_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J7_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
void J8_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J8_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
void J8_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J8_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
void J9_PWR_Open(void)
|
||||
{
|
||||
rt_pin_write(J9_PWR_Ctrl, open);
|
||||
}
|
||||
|
||||
void J9_PWR_Close(void)
|
||||
{
|
||||
rt_pin_write(J9_PWR_Ctrl, close);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化UART4对应的LORA串口
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void LORA_UART4_Init(uint32_t baud)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* UART4 TX --> PC10 RX --> PC11 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART4, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PC10为复用推挽输出
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_11;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PC11为浮空输入
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(UART4, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = UART4_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(UART4, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(UART4,ENABLE);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @brief 初始化UART4对应的LORA串口
|
||||
* @param baud 波特率
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void Upward_UART5_Init(uint32_t baud)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
NVIC_InitTypeDef NVIC_InitStructure;
|
||||
|
||||
/* UART5 TX --> PC12 RX --> PD2 */
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE);
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOD, ENABLE);
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1Periph_UART5, ENABLE);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_12;
|
||||
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP; //设置PC12为复用推挽输出
|
||||
GPIO_Init(GPIOC, &GPIO_InitStructure);
|
||||
|
||||
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING; //设置PD2为浮空输入
|
||||
GPIO_Init(GPIOD, &GPIO_InitStructure);
|
||||
|
||||
USART_InitStructure.USART_BaudRate = baud;
|
||||
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
|
||||
USART_InitStructure.USART_StopBits = USART_StopBits_1;
|
||||
USART_InitStructure.USART_Parity = USART_Parity_No;
|
||||
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
|
||||
USART_InitStructure.USART_Mode = USART_Mode_Tx | USART_Mode_Rx;
|
||||
USART_Init(UART5, &USART_InitStructure);
|
||||
|
||||
NVIC_InitStructure.NVIC_IRQChannel = UART5_IRQn;
|
||||
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3; //抢占优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3; //子优先级为3
|
||||
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; //IRQ通道使能
|
||||
NVIC_Init(&NVIC_InitStructure); //中断优先级初始化
|
||||
|
||||
USART_ITConfig(UART5, USART_IT_RXNE, ENABLE);
|
||||
|
||||
USART_Cmd(UART5,ENABLE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void USART2_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(USART2, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
USART2_Rbuffer[0] = USART_ReceiveData(USART2); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J3RS485_USART2_handle;
|
||||
c = USART2_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
}
|
||||
|
||||
void USART3_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(USART3, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
USART3_Rbuffer[0] = USART_ReceiveData(USART3); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J50RS485_USART3_handle;
|
||||
c = USART3_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//void UART4_IRQHandler(void)
|
||||
//{
|
||||
// if(USART_GetITStatus(UART4, USART_IT_RXNE) != RESET) //中断产生
|
||||
// {
|
||||
// UART4_Rbuffer[0] = USART_ReceiveData(UART4); //接收数据
|
||||
// uint8_t c = 0;
|
||||
// uart_device_info *dev = (uart_device_info *)g_LORA_UART4_handle;
|
||||
// c = UART4_Rbuffer[0];
|
||||
// if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
// InRingQueue(&dev->uart_ring_queue, c);
|
||||
// }
|
||||
//}
|
||||
|
||||
void UART5_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(UART5, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
UART5_Rbuffer[0] = USART_ReceiveData(UART5); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_Upward_UART5_handle;
|
||||
c = UART5_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
}
|
||||
|
||||
void UART6_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(UART6, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
UART6_Rbuffer[0] = USART_ReceiveData(UART6); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J1RS485_UART6_handle;
|
||||
c = UART6_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
}
|
||||
|
||||
void UART7_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(UART7, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
UART7_Rbuffer[0] = USART_ReceiveData(UART7); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J2RS485_UART7_handle;
|
||||
c = UART7_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
}
|
||||
|
||||
void UART8_IRQHandler(void)
|
||||
{
|
||||
if(USART_GetITStatus(UART8, USART_IT_RXNE) != RESET) //中断产生
|
||||
{
|
||||
UART8_Rbuffer[0] = USART_ReceiveData(UART8); //接收数据
|
||||
uint8_t c = 0;
|
||||
uart_device_info *dev = (uart_device_info *)g_J4RS485_UART8_handle;
|
||||
c = UART8_Rbuffer[0];
|
||||
if(!RingQueueFull(&dev->uart_ring_queue))
|
||||
InRingQueue(&dev->uart_ring_queue, c);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* spi.c
|
||||
*
|
||||
* Created on: 2024年7月25日
|
||||
* Author: psx
|
||||
*/
|
||||
|
||||
|
|
@ -15,10 +15,12 @@
|
|||
/* 功能码 */
|
||||
typedef enum
|
||||
{
|
||||
SL_Function_Code_Read_Register = 0x30, /* 读寄存器数据 */
|
||||
SL_Function_Code_Write_Register = 0x10, /* 写寄存器数据 */
|
||||
SL_Function_Code_Broadcast_Scan = 0xA0, /* 广播扫描 */
|
||||
SL_Function_Code_Registration_request = 0xA1, /* 注册请求 */
|
||||
SL_Function_Code_Read_Register = 0x30, /* 读寄存器数据 */
|
||||
SL_Function_Code_Write_Register = 0x10, /* 写寄存器数据 */
|
||||
SL_Function_Code_Broadcast_Scan = 0xA0, /* 广播扫描 */
|
||||
SL_Function_Code_Registration_request = 0xA1, /* 注册请求 */
|
||||
SL_Function_Code_Update_Profile = 0xD0, /* 配置文件 */
|
||||
SL_Function_Code_Remote_Upgrade = 0xD1, /* 远程升级 */
|
||||
}SL_MsgFunctionCode;
|
||||
|
||||
/* 寄存器地址 */
|
||||
|
@ -152,6 +154,29 @@ typedef struct _SL_Mppt_RegistrationReply_pack{
|
|||
}SL_Mppt_RegistrationReply_pack;
|
||||
#define SL_MPPT_REGISTRATIONREPLY_PACK_SIZE (sizeof(SL_Mppt_RegistrationReply_pack))
|
||||
|
||||
/* 发送其他帧 (汇聚网关->接入节点) */
|
||||
typedef struct _SL_Mppt_SOther_pack{
|
||||
uint8_t start_Flag[2]; /* 起始标志 */
|
||||
uint8_t address[7]; /* 地址 */
|
||||
uint8_t function_Code; /* 功能码 */
|
||||
uint8_t check_Bit_H; /* 校验位高八位 */
|
||||
uint8_t check_Bit_L; /* 校验位低八位 */
|
||||
uint8_t end_Flag; /* 结束标志 */
|
||||
}SL_Mppt_SOther_pack;
|
||||
#define SL_MPPT_SOTHER_PACK_SIZE (sizeof(SL_Mppt_SOther_pack))
|
||||
|
||||
/* 收到的其他帧(接入节点->汇聚网关) */
|
||||
typedef struct _SL_Mppt_ROther_pack{
|
||||
uint8_t start_Flag[2]; /* 起始标志 */
|
||||
uint8_t address[7]; /* 地址 */
|
||||
uint8_t function_Code; /* 功能码 */
|
||||
uint8_t State; /* 准备状态 */
|
||||
uint8_t check_Bit_H; /* 校验位高八位 */
|
||||
uint8_t check_Bit_L; /* 校验位低八位 */
|
||||
uint8_t end_Flag; /* 结束标志 */
|
||||
}SL_Mppt_ROther_pack;
|
||||
#define SL_MPPT_ROTHER_PACK_SIZE (sizeof(SL_Mppt_ROther_pack))
|
||||
|
||||
/* */
|
||||
#define RECV_LENGTH 20
|
||||
typedef struct _SL_Mppt_Recv_pack{
|
||||
|
@ -161,6 +186,88 @@ typedef struct _SL_Mppt_Recv_pack{
|
|||
uint8_t recv_Data[RECV_LENGTH]; /* 其他部分 */
|
||||
}SL_Mppt_Recv_pack;
|
||||
|
||||
/* 智能模块与协处理器之间传输数据时的包头 */
|
||||
typedef struct _SL_HEAD_pack{
|
||||
uint8_t start_Flag[2]; /* 起始标志 */
|
||||
uint8_t uart; /* 串口号,1对应uart1 */
|
||||
uint8_t Channel; /* 通道,分时复用时使用 */
|
||||
uint8_t lengH; /* 帧长度高八位 */
|
||||
uint8_t lengL; /* 帧长度低八位 */
|
||||
}SL_Head_pack;
|
||||
#define HEAD_PACK_LEN sizeof(SL_Head_pack)
|
||||
/* 智能模块与协处理器之间传输数据时的包尾 */
|
||||
typedef struct _SL_TAIL_pack{
|
||||
uint8_t end_Flag; /* 结束标志 */
|
||||
}SL_Tail_pack;
|
||||
|
||||
/* 读时接收到的帧格式(智能模块->协处理器) */
|
||||
typedef struct _SL_Mppt_Rorecv_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_Rorecv_pack rpack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_Rorecv_pack1;
|
||||
#define SL_MPPT_RORECV_PACK_SIZE1 (sizeof(SL_Mppt_Rorecv_pack1))
|
||||
|
||||
/* 写时接收到的回复帧格式(智能模块->协处理器) */
|
||||
typedef struct _SL_Mppt_WOReply_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
uint8_t start_Flag[2]; /* 起始标志 */
|
||||
uint8_t address[7]; /* 地址 */
|
||||
uint8_t function_Code; /* 功能码 */
|
||||
uint8_t write_Register_Start_Address_H; /* 写入寄存器起始地址高八位 */
|
||||
uint8_t write_Register_Start_Address_L; /* 写入寄存器起始地址低八位 */
|
||||
uint8_t write_Register_Number_H; /* 写入寄存器个数高八位 */
|
||||
uint8_t write_Register_Number_L; /* 写入寄存器个数低八位 */
|
||||
}SL_Mppt_WOReply_pack1;
|
||||
|
||||
/* 扫描广播帧F1(智能模块->协处理器) */
|
||||
typedef struct _SL_Mppt_ScanBroadcast_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_Scan_Broadcast_pack bpack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_Scan_Broadcast_pack1;
|
||||
#define SL_MPPT_SCAN_BROADCAST_PACK_SIZE1 (sizeof(SL_Mppt_Scan_Broadcast_pack1))
|
||||
|
||||
/* 注册请求帧F2(协处理器->智能模块) */
|
||||
typedef struct _SL_Mppt_RegistrationRequest_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_RegistrationRequest_pack rpack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_RegistrationRequest_pack1;
|
||||
#define SL_MPPT_REGISTRATIONREQUEST_PACK_SIZE1 (sizeof(SL_Mppt_RegistrationRequest_pack1))
|
||||
|
||||
/* 注册回复帧F3(智能模块->协处理器) */
|
||||
typedef struct _SL_Mppt_RegistrationReply_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_RegistrationReply_pack rpack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_RegistrationReply_pack1;
|
||||
#define SL_MPPT_REGISTRATIONREPLY_PACK_SIZE1 (sizeof(SL_Mppt_RegistrationReply_pack1))
|
||||
|
||||
/* 发送其他帧(智能模块->协处理器) */
|
||||
typedef struct _SL_Mppt_SOther_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_SOther_pack spack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_SOther_pack1;
|
||||
#define SL_MPPT_SOTHER_PACK_SIZE1 (sizeof(SL_Mppt_SOther_pack1))
|
||||
|
||||
/* 收到的其他帧(协处理器->智能模块) */
|
||||
typedef struct _SL_Mppt_ROther_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_ROther_pack rpack;
|
||||
SL_Tail_pack tail; /* 包尾 */
|
||||
}SL_Mppt_ROther_pack1;
|
||||
#define SL_MPPT_ROTHER_PACK_SIZE1 (sizeof(SL_Mppt_ROther_pack1))
|
||||
|
||||
/* */
|
||||
typedef struct _SL_Mppt_Recv_pack1{
|
||||
SL_Head_pack head; /* 包头 */
|
||||
SL_Mppt_Recv_pack rpack;
|
||||
}SL_Mppt_Recv_pack1;
|
||||
|
||||
//const uint8_t head_len = sizeof(SL_Head_pack);
|
||||
|
||||
/* 功能码处理函数 */
|
||||
typedef void (*MsgProcFunc)(device_handle device, void*, uint32_t MsgLen);
|
||||
typedef struct _SL_FunctionMsgProcTable{
|
||||
|
@ -173,7 +280,8 @@ typedef struct _SL_FunctionMsgProcTable{
|
|||
|
||||
extern SL_Mppt_Scan_Broadcast_pack g_Scan_Broadcast_pack;
|
||||
|
||||
void read_and_process_uart_data(device_handle device);
|
||||
void send_data(uint8_t *buff);
|
||||
void read_and_process_sensorUart_data(device_handle device);
|
||||
void read_and_process_intelligentModuleUart_data(device_handle device);
|
||||
void send_uart_data(uint8_t *buff);
|
||||
|
||||
#endif /* SOFTWARE_PROTOCOL_COMMUNICATION_PROTOCOL_H_ */
|
||||
|
|
|
@ -9,16 +9,15 @@
|
|||
#define APP_INC_INFLASH_H_
|
||||
|
||||
#include "debug.h"
|
||||
#include "communication_protocol.h"
|
||||
|
||||
#pragma pack(push,1)
|
||||
typedef struct _config_info{
|
||||
uint8_t start_Flag[2]; /* お宎梓祩 */
|
||||
uint8_t address[7]; /* 華硊 */
|
||||
uint8_t end_Flag; /* 賦旰梓祩 */
|
||||
uint16_t Access_Node_Type; /* 接入节点类型 */
|
||||
uint16_t Communication_Methods; /* 通信方式 */
|
||||
uint32_t bat485_Baud; /* 串口波特率 */
|
||||
uint32_t gw485_Baud; /* 串口波特率 */
|
||||
SL_Head_pack headPack; /* 관庫 */
|
||||
SL_Tail_pack tailPack; /* 관庫 */
|
||||
}config_info;
|
||||
#define CONFIG_INFO_SIZE (sizeof(config_info))
|
||||
#pragma pack(pop)
|
||||
|
|
|
@ -12,19 +12,14 @@
|
|||
#include "uart_dev.h"
|
||||
|
||||
/* UartSend队列的格式 */
|
||||
#define UART_MQ_SEND_LENGTH 20
|
||||
#define UART_MQ_SEND_LENGTH 50
|
||||
typedef struct _SL_UartSend_pack{
|
||||
device_handle device; /* 串口 */
|
||||
rt_uint8_t direction; /* 方向 */
|
||||
rt_uint8_t Channel; /* ͨµÀ */
|
||||
rt_uint8_t len; /* 长度 */
|
||||
rt_uint8_t recv_Data[UART_MQ_SEND_LENGTH]; /* 其他部分 */
|
||||
}SL_UartSend_pack;
|
||||
|
||||
typedef enum{
|
||||
up = 0, /* 往智能模块传传输数据 */
|
||||
down = 1, /* 向下往传感器传输数据 */
|
||||
}UartSend_pack_direction;
|
||||
|
||||
extern SL_UartSend_pack MqUartSend_pack;
|
||||
extern rt_mq_t mqSend;
|
||||
|
||||
|
|
|
@ -28,17 +28,14 @@ extern device_handle g_J2RS485_UART7_handle;
|
|||
extern device_handle g_J3RS485_USART2_handle;
|
||||
extern device_handle g_J4RS485_UART8_handle;
|
||||
extern device_handle g_J50RS485_USART3_handle;
|
||||
extern device_handle g_LORA_UART5_handle;
|
||||
|
||||
//typedef enum{
|
||||
// J1RS485_UART6 = UART6,
|
||||
// J2RS485_UART7 = 7,
|
||||
// J3RS485_USART2 = 2,
|
||||
// J4RS485_UART8 = 8,
|
||||
// J50RS485_USART3 = 3,
|
||||
// LORA_UART5 = 5,
|
||||
//}uartIndex_e;
|
||||
extern device_handle g_LORA_UART4_handle;
|
||||
extern device_handle g_Upward_UART5_handle;
|
||||
|
||||
/*
|
||||
* 串口连接对应的连接的设备
|
||||
* ONLYONE表示唯一
|
||||
* 串口3,会分时复用,采用如下的方式确定在与谁通信
|
||||
*/
|
||||
typedef enum{
|
||||
ONLYONE = 1,
|
||||
J0RS485 = 0,
|
||||
|
@ -51,16 +48,17 @@ typedef enum{
|
|||
|
||||
/* UART 驱动数据结构,对应一个uart设备 */
|
||||
typedef struct _uart_device_info{
|
||||
uint8_t init;
|
||||
USART_TypeDef *uart_index;
|
||||
uint32_t uart_baudrate;
|
||||
RingQueue uart_ring_queue;
|
||||
uartNum_e uart_num;
|
||||
uint8_t init; /* 设备是否初始化 */
|
||||
USART_TypeDef *uart_index; /* 对应的硬件串口 */
|
||||
uint32_t uart_baudrate; /* 波特率 */
|
||||
RingQueue uart_ring_queue; /* 缓冲区 */
|
||||
uartNum_e uart_num; /* 对应输出的设备 */
|
||||
}uart_device_info;
|
||||
|
||||
//device_handle uart_dev_init(uartIndex_e uart_index, uint8_t *buff, int buff_size);
|
||||
//device_handle uart_dev_init(uart_device_info *uart_device, uint8_t *buff, int buff_size);
|
||||
device_handle uart_dev_init(void);
|
||||
//device_handle uart_dev_init(void);
|
||||
uint8_t uart_all_dev_init(void);
|
||||
void uart_sendstr(device_handle device,char *str);
|
||||
void uart_dev_write(device_handle device, void *data, int len);
|
||||
int uart_dev_char_present(device_handle device);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -8,9 +8,17 @@
|
|||
#include "inflash.h"
|
||||
#include "flash.h"
|
||||
|
||||
|
||||
uint8_t address[7]; /* 뒈囹 */
|
||||
uint8_t end_Flag; /* 써監깃羚 */
|
||||
SL_Head_pack headPack; /* 관庫 */
|
||||
SL_Tail_pack tailPack; /* 관庫 */
|
||||
|
||||
config_info g_slConfigInfo = {
|
||||
.start_Flag = {'S', 'L'},
|
||||
.end_Flag = 0x16,
|
||||
.headPack.start_Flag = {'S', 'L'},
|
||||
.tailPack.end_Flag = 0x17,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -72,21 +72,28 @@ void Send_thread_Init(void)
|
|||
|
||||
void Recv_thread_entry(void* parameter)
|
||||
{
|
||||
rt_kprintf("\n Recv \n");
|
||||
while (1) {
|
||||
read_and_process_uart_data(g_J50RS485_USART3_handle);
|
||||
rt_thread_mdelay(100);
|
||||
read_and_process_sensorUart_data(g_J1RS485_UART6_handle);
|
||||
read_and_process_sensorUart_data(g_J2RS485_UART7_handle);
|
||||
read_and_process_sensorUart_data(g_J3RS485_USART2_handle);
|
||||
read_and_process_sensorUart_data(g_J4RS485_UART8_handle);
|
||||
read_and_process_sensorUart_data(g_J50RS485_USART3_handle);
|
||||
read_and_process_sensorUart_data(g_LORA_UART4_handle);
|
||||
read_and_process_intelligentModuleUart_data(g_Upward_UART5_handle);
|
||||
rt_thread_mdelay(5);
|
||||
}
|
||||
}
|
||||
|
||||
static uint8_t buff[100];
|
||||
void Send_thread_entry(void* parameter)
|
||||
{
|
||||
uint8_t buff[100];
|
||||
rt_kprintf("\n Send \n");
|
||||
while (1) {
|
||||
memset(buff, 0, sizeof(buff));
|
||||
rt_mq_recv(mqSend, buff, sizeof(buff), RT_WAITING_FOREVER);
|
||||
rt_kprintf("\n Send buff \n");
|
||||
send_data(buff);
|
||||
// rt_kprintf("\n Send buff \n");
|
||||
send_uart_data(buff);
|
||||
|
||||
// uart_dev_write(g_Upward_UART5_handle, "hello world\n", sizeof("hello world\n"));
|
||||
// rt_thread_mdelay(1000);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,9 +25,9 @@ rt_mq_t mqSend = RT_NULL;
|
|||
rt_uint8_t Send_mq_Init(void)
|
||||
{
|
||||
mqSend = rt_mq_create("Send_mq",/* ÏûÏ¢¶ÓÁÐÃû×Ö */
|
||||
100, /* 消息的最大长度 */
|
||||
20, /* 消息队列的最大容量 */
|
||||
RT_IPC_FLAG_FIFO);/* 队列模式 FIFO(0x00)*/
|
||||
100, /* 消息的最大长度 */
|
||||
20, /* 消息队列的最大容量 */
|
||||
RT_IPC_FLAG_FIFO); /* 队列模式 FIFO(0x00)*/
|
||||
if (mqSend != RT_NULL)
|
||||
return 1;
|
||||
return 0;
|
||||
|
|
|
@ -6,11 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "uart_dev.h"
|
||||
#include "J1_UART6.h"
|
||||
#include "J2_UART7.h"
|
||||
#include "J3_USART2.h"
|
||||
#include "J4_UART8.h"
|
||||
#include "J5-0_USART3.h"
|
||||
#include "UART.h"
|
||||
|
||||
|
||||
/* 使能485发送 */
|
||||
|
@ -20,12 +16,13 @@
|
|||
static void uart_init(uart_device_info *uart_device, int baud);
|
||||
static uint8_t uart_putchar(device_handle device, char ch);
|
||||
|
||||
device_handle g_J1RS485_UART6_handle;
|
||||
device_handle g_J2RS485_UART7_handle;
|
||||
device_handle g_J3RS485_USART2_handle;
|
||||
device_handle g_J4RS485_UART8_handle;
|
||||
device_handle g_J50RS485_USART3_handle;
|
||||
device_handle g_LORA_UART5_handle;
|
||||
device_handle g_J1RS485_UART6_handle = 0;
|
||||
device_handle g_J2RS485_UART7_handle = 0;
|
||||
device_handle g_J3RS485_USART2_handle = 0;
|
||||
device_handle g_J4RS485_UART8_handle = 0;
|
||||
device_handle g_J50RS485_USART3_handle = 0;
|
||||
device_handle g_LORA_UART4_handle = 0;
|
||||
device_handle g_Upward_UART5_handle = 0;
|
||||
|
||||
#define IN_BUFF_SIZE 128
|
||||
static uint8_t J1RS485_in_buff[IN_BUFF_SIZE];
|
||||
|
@ -33,7 +30,8 @@ static uint8_t J2RS485_in_buff[IN_BUFF_SIZE];
|
|||
static uint8_t J3RS485_in_buff[IN_BUFF_SIZE];
|
||||
static uint8_t J4RS485_in_buff[IN_BUFF_SIZE];
|
||||
static uint8_t J50RS485_in_buff[IN_BUFF_SIZE];
|
||||
static uint8_t LORA_in_buff[IN_BUFF_SIZE];
|
||||
static uint8_t LORA_in_buff[1];
|
||||
static uint8_t Upward_in_buff[IN_BUFF_SIZE];
|
||||
//uint8_t J1RS485_in_buff[IN_BUFF_SIZE];
|
||||
//uint8_t J2RS485_in_buff[IN_BUFF_SIZE];
|
||||
//uint8_t J3RS485_in_buff[IN_BUFF_SIZE];
|
||||
|
@ -54,31 +52,43 @@ uart_device_info uart_devices[]={
|
|||
.init = 0,
|
||||
.uart_index = UART6,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[1] = {
|
||||
.init = 0,
|
||||
.uart_index = UART7,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[2] = {
|
||||
.init = 0,
|
||||
.uart_index = USART2,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[3] = {
|
||||
.init = 0,
|
||||
.uart_index = UART8,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[4] = {
|
||||
.init = 0,
|
||||
.uart_index = USART3,
|
||||
.uart_num = J0RS485,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[5] = {
|
||||
.init = 0,
|
||||
.uart_index = UART4,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 9600,
|
||||
},
|
||||
[6] = {
|
||||
.init = 0,
|
||||
.uart_index = UART5,
|
||||
.uart_num = ONLYONE,
|
||||
.uart_baudrate = 115200,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -89,23 +99,24 @@ uart_device_info uart_devices[]={
|
|||
* @param buff_size 串口循环buff对应大小
|
||||
* @retval 串口句柄
|
||||
*/
|
||||
//#define ELEMENT_OF(x) (sizeof(x) / sizeof((x)[0]))
|
||||
//device_handle uart_dev_init(uartIndex_e uart_index, uint8_t *buff, int buff_size)
|
||||
//{
|
||||
// int i = 0;
|
||||
// for(; i < ELEMENT_OF(uart_devices); i++){
|
||||
// if(uart_devices[i].uart_index == uart_index){
|
||||
// if(!uart_devices[i].init){
|
||||
// InitRingQueue(&uart_devices[i].uart_ring_queue, buff, buff_size);
|
||||
// uart_init(uart_index, uart_devices[i].uart_baudrate);
|
||||
//
|
||||
// uart_devices[i].init = 1;
|
||||
// }
|
||||
// return (device_handle)(&uart_devices[i]);
|
||||
// }
|
||||
// }
|
||||
// return 0;
|
||||
//}
|
||||
#define ELEMENT_OF(x) (sizeof(x) / sizeof((x)[0]))
|
||||
device_handle uart_dev_init(USART_TypeDef *uart_index, uint8_t *buff, int buff_size)
|
||||
{
|
||||
int i = 0;
|
||||
for(; i < ELEMENT_OF(uart_devices); i++){
|
||||
if(uart_devices[i].uart_index == uart_index){
|
||||
if(!uart_devices[i].init){
|
||||
InitRingQueue(&uart_devices[i].uart_ring_queue, buff, buff_size);
|
||||
uart_init(&uart_devices[i], uart_devices[i].uart_baudrate);
|
||||
|
||||
uart_devices[i].init = 1;
|
||||
}
|
||||
return (device_handle)(&uart_devices[i]);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
//device_handle uart_dev_init(uart_device_info *uart_device, uint8_t *buff, int buff_size)
|
||||
//{
|
||||
// int i = 0;
|
||||
|
@ -122,39 +133,67 @@ uart_device_info uart_devices[]={
|
|||
// }
|
||||
// return 0;
|
||||
//}
|
||||
device_handle uart_dev_init(void)
|
||||
|
||||
|
||||
//uint8_t uart_all_dev_init(void)
|
||||
//{
|
||||
// InitRingQueue(&uart_devices[0].uart_ring_queue, J1RS485_in_buff, sizeof(J1RS485_in_buff));
|
||||
// uart_init(&uart_devices[0], 9600);
|
||||
// uart_devices[0].init = 1;
|
||||
// g_J1RS485_UART6_handle = (device_handle)(&uart_devices[0]);
|
||||
//
|
||||
// InitRingQueue(&uart_devices[1].uart_ring_queue, J2RS485_in_buff, sizeof(J2RS485_in_buff));
|
||||
// uart_init(&uart_devices[1], 9600);
|
||||
// uart_devices[1].init = 1;
|
||||
// g_J2RS485_UART7_handle = (device_handle)(&uart_devices[1]);
|
||||
//
|
||||
//
|
||||
// InitRingQueue(&uart_devices[2].uart_ring_queue, J3RS485_in_buff, sizeof(J3RS485_in_buff));
|
||||
// uart_init(&uart_devices[2], 9600);
|
||||
// uart_devices[2].init = 1;
|
||||
// g_J3RS485_USART2_handle = (device_handle)(&uart_devices[2]);
|
||||
//
|
||||
// InitRingQueue(&uart_devices[3].uart_ring_queue, J4RS485_in_buff, sizeof(J4RS485_in_buff));
|
||||
// uart_init(&uart_devices[3], 9600);
|
||||
// uart_devices[3].init = 1;
|
||||
// g_J4RS485_UART8_handle = (device_handle)(&uart_devices[3]);
|
||||
//
|
||||
//
|
||||
// InitRingQueue(&uart_devices[4].uart_ring_queue, J50RS485_in_buff, sizeof(J50RS485_in_buff));
|
||||
// uart_init(&uart_devices[4], 9600);
|
||||
// uart_devices[4].init = 1;
|
||||
// g_J50RS485_USART3_handle = (device_handle)(&uart_devices[4]);
|
||||
//
|
||||
// InitRingQueue(&uart_devices[5].uart_ring_queue, LORA_in_buff, sizeof(LORA_in_buff));
|
||||
// uart_init(&uart_devices[5], 9600);
|
||||
// uart_devices[5].init = 1;
|
||||
// g_LORA_UART4_handle = (device_handle)(&uart_devices[5]);
|
||||
//
|
||||
// return 0;
|
||||
//}
|
||||
|
||||
uint8_t uart_all_dev_init(void)
|
||||
{
|
||||
InitRingQueue(&uart_devices[0].uart_ring_queue, J1RS485_in_buff, sizeof(J1RS485_in_buff));
|
||||
uart_init(&uart_devices[0], 9600);
|
||||
uart_devices[0].init = 1;
|
||||
g_J1RS485_UART6_handle = (device_handle)(&uart_devices[0]);
|
||||
g_J1RS485_UART6_handle = uart_dev_init(uart_devices[0].uart_index,
|
||||
J1RS485_in_buff, sizeof(J1RS485_in_buff));
|
||||
|
||||
InitRingQueue(&uart_devices[1].uart_ring_queue, J2RS485_in_buff, sizeof(J2RS485_in_buff));
|
||||
uart_init(&uart_devices[1], 9600);
|
||||
uart_devices[1].init = 1;
|
||||
g_J2RS485_UART7_handle = (device_handle)(&uart_devices[1]);
|
||||
g_J2RS485_UART7_handle = uart_dev_init(uart_devices[1].uart_index,
|
||||
J2RS485_in_buff, sizeof(J2RS485_in_buff));
|
||||
|
||||
g_J3RS485_USART2_handle = uart_dev_init(uart_devices[2].uart_index,
|
||||
J3RS485_in_buff, sizeof(J3RS485_in_buff));
|
||||
|
||||
InitRingQueue(&uart_devices[2].uart_ring_queue, J3RS485_in_buff, sizeof(J3RS485_in_buff));
|
||||
uart_init(&uart_devices[2], 9600);
|
||||
uart_devices[2].init = 1;
|
||||
g_J3RS485_USART2_handle = (device_handle)(&uart_devices[2]);
|
||||
g_J4RS485_UART8_handle = uart_dev_init(uart_devices[3].uart_index,
|
||||
J4RS485_in_buff, sizeof(J4RS485_in_buff));
|
||||
|
||||
InitRingQueue(&uart_devices[3].uart_ring_queue, J4RS485_in_buff, sizeof(J4RS485_in_buff));
|
||||
uart_init(&uart_devices[3], 9600);
|
||||
uart_devices[3].init = 1;
|
||||
g_J4RS485_UART8_handle = (device_handle)(&uart_devices[3]);
|
||||
g_J50RS485_USART3_handle = uart_dev_init(uart_devices[4].uart_index,
|
||||
J50RS485_in_buff, sizeof(J50RS485_in_buff));
|
||||
|
||||
g_LORA_UART4_handle = uart_dev_init(uart_devices[5].uart_index,
|
||||
LORA_in_buff, sizeof(LORA_in_buff));
|
||||
|
||||
InitRingQueue(&uart_devices[4].uart_ring_queue, J50RS485_in_buff, sizeof(J50RS485_in_buff));
|
||||
uart_init(&uart_devices[4], 9600);
|
||||
uart_devices[4].init = 1;
|
||||
g_J50RS485_USART3_handle = (device_handle)(&uart_devices[4]);
|
||||
|
||||
InitRingQueue(&uart_devices[5].uart_ring_queue, LORA_in_buff, sizeof(LORA_in_buff));
|
||||
uart_init(&uart_devices[5], 9600);
|
||||
uart_devices[5].init = 1;
|
||||
g_LORA_UART5_handle = (device_handle)(&uart_devices[5]);
|
||||
g_Upward_UART5_handle = uart_dev_init(uart_devices[6].uart_index,
|
||||
Upward_in_buff, sizeof(Upward_in_buff));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -193,7 +232,9 @@ void uart_init(uart_device_info *uart_device, int baud)
|
|||
USART_CONNET_J9();
|
||||
}
|
||||
} else if (uart_device->uart_index == UART5) {
|
||||
;
|
||||
Upward_UART5_Init(baud);
|
||||
// } else if (uart_device->uart_index == UART4) {
|
||||
// LORA_UART4_Init(baud);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -402,6 +443,8 @@ void uart_dev_write(device_handle device, void *data, int len)
|
|||
J50RS485_tx_disenabla();
|
||||
}
|
||||
#endif
|
||||
|
||||
rt_thread_mdelay(1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,7 +36,6 @@ int main(void)
|
|||
rt_kprintf(" ChipID: %08x\r\n",DBGMCU_GetCHIPID());
|
||||
|
||||
app_star();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
87
User/start.c
87
User/start.c
|
@ -1,6 +1,5 @@
|
|||
#include <start.h>
|
||||
|
||||
|
||||
#include "inc/Android.h"
|
||||
#include "inc/Flash.h"
|
||||
#include "inc/UART.h"
|
||||
|
@ -13,43 +12,103 @@
|
|||
|
||||
|
||||
/*
|
||||
* 硬件初始化函数
|
||||
*
|
||||
* @brief 硬件初始化函数
|
||||
* @param
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void hareware_init()
|
||||
{
|
||||
android_PowerCtrl_Init();
|
||||
android_PowerCtrl_Open();
|
||||
android_PowerKey_Init();
|
||||
|
||||
android_PowerKey_Rest();
|
||||
rt_kprintf("\nandroid_PowerKey_Rest OK\n");
|
||||
|
||||
|
||||
// while (1) {
|
||||
//
|
||||
// };
|
||||
// SPI_Flash_TEST();
|
||||
// USARTx_SendStr(J5_0_USART, "This is a test data.\n");
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* 线程初始化函数
|
||||
*
|
||||
* @brief 线程初始化函数
|
||||
* @param
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void software_init()
|
||||
{
|
||||
uart_dev_init();
|
||||
uart_all_dev_init();
|
||||
Send_mq_Init();
|
||||
Recv_thread_Init();
|
||||
Send_thread_Init();
|
||||
while (1);
|
||||
|
||||
while (1) {
|
||||
// uart_dev_write(g_J4RS485_UART8_handle, "hello world\n", sizeof("hello world\n"));
|
||||
rt_thread_delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* 启动函数
|
||||
*
|
||||
* @brief 启动函数
|
||||
* @param
|
||||
* @retval
|
||||
*
|
||||
*/
|
||||
void app_star()
|
||||
{
|
||||
hareware_init();
|
||||
software_init();
|
||||
// hareware_init();
|
||||
// software_init();
|
||||
|
||||
android_PowerCtrl_Init();
|
||||
android_PowerKey_Init();
|
||||
android_PowerKey_Rest();
|
||||
rt_kprintf("\nandroid_PowerKey_Rest OK\n");
|
||||
|
||||
uart_all_dev_init();
|
||||
Send_mq_Init();
|
||||
Recv_thread_Init();
|
||||
Send_thread_Init();
|
||||
|
||||
J1_485_Init(9600);
|
||||
J1_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J2_485_Init(9600);
|
||||
J2_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J3_485_Init(9600);
|
||||
J3_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J4_485_Init(9600);
|
||||
J4_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
|
||||
J5_0_485_Init(9600);
|
||||
J5_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J6_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J7_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J8_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
J9_PWR_Open();
|
||||
rt_thread_mdelay(5000);
|
||||
|
||||
while (1) {
|
||||
// uart_dev_write(g_J4RS485_UART8_handle, "hello world\n", sizeof("hello world\n"));
|
||||
rt_thread_delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
BIN
obj/CH32V303.elf
BIN
obj/CH32V303.elf
Binary file not shown.
1496
obj/CH32V303.hex
1496
obj/CH32V303.hex
File diff suppressed because it is too large
Load Diff
7922
obj/CH32V303.lst
7922
obj/CH32V303.lst
File diff suppressed because it is too large
Load Diff
3871
obj/CH32V303.map
3871
obj/CH32V303.map
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
14012
obj/CH32V303_V0.1.lst
14012
obj/CH32V303_V0.1.lst
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -1,151 +0,0 @@
|
|||
Hardware/src/J1_UART6.o: ../Hardware/src/J1_UART6.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J1_UART6.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J1_UART6.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
Binary file not shown.
|
@ -1,151 +0,0 @@
|
|||
Hardware/src/J2_UART7.o: ../Hardware/src/J2_UART7.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J2_UART7.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J2_UART7.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
Binary file not shown.
|
@ -1,151 +0,0 @@
|
|||
Hardware/src/J3_USART2.o: ../Hardware/src/J3_USART2.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J3_USART2.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J3_USART2.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
Binary file not shown.
|
@ -1,151 +0,0 @@
|
|||
Hardware/src/J4_UART8.o: ../Hardware/src/J4_UART8.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J4_UART8.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J4_UART8.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
Binary file not shown.
|
@ -1,157 +0,0 @@
|
|||
Hardware/src/J5-0_USART3.o: ../Hardware/src/J5-0_USART3.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J5-0_USART3.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J5-0_USART3.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Core/core_riscv.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/system_ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_conf.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_adc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_bkp.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_can.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_crc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dac.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dbgmcu.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_dma.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_exti.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_flash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_fsmc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_gpio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_i2c.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_iwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_pwr.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rcc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_rtc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_sdio.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_spi.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_tim.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_usart.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Debug/debug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h:
|
Binary file not shown.
|
@ -47,7 +47,9 @@ Hardware/src/UART.o: ../Hardware/src/UART.c \
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
|
@ -146,3 +148,7 @@ D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h:
|
||||
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
Hardware/src/spi.o: ../Hardware/src/spi.c
|
Binary file not shown.
|
@ -7,35 +7,17 @@
|
|||
C_SRCS += \
|
||||
../Hardware/src/Android.c \
|
||||
../Hardware/src/Flash.c \
|
||||
../Hardware/src/J1_UART6.c \
|
||||
../Hardware/src/J2_UART7.c \
|
||||
../Hardware/src/J3_USART2.c \
|
||||
../Hardware/src/J4_UART8.c \
|
||||
../Hardware/src/J5-0_USART3.c \
|
||||
../Hardware/src/UART.c \
|
||||
../Hardware/src/spi.c
|
||||
../Hardware/src/UART.c
|
||||
|
||||
OBJS += \
|
||||
./Hardware/src/Android.o \
|
||||
./Hardware/src/Flash.o \
|
||||
./Hardware/src/J1_UART6.o \
|
||||
./Hardware/src/J2_UART7.o \
|
||||
./Hardware/src/J3_USART2.o \
|
||||
./Hardware/src/J4_UART8.o \
|
||||
./Hardware/src/J5-0_USART3.o \
|
||||
./Hardware/src/UART.o \
|
||||
./Hardware/src/spi.o
|
||||
./Hardware/src/UART.o
|
||||
|
||||
C_DEPS += \
|
||||
./Hardware/src/Android.d \
|
||||
./Hardware/src/Flash.d \
|
||||
./Hardware/src/J1_UART6.d \
|
||||
./Hardware/src/J2_UART7.d \
|
||||
./Hardware/src/J3_USART2.d \
|
||||
./Hardware/src/J4_UART8.d \
|
||||
./Hardware/src/J5-0_USART3.d \
|
||||
./Hardware/src/UART.d \
|
||||
./Hardware/src/spi.d
|
||||
./Hardware/src/UART.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
|
|
|
@ -53,7 +53,9 @@ Software/src/communication_protocol.o: \
|
|||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/inflash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/thread_communication.h
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/communication_protocol.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/thread_communication.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/communication_protocol.h:
|
||||
|
||||
|
@ -161,4 +163,8 @@ D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h:
|
|||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/inflash.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/communication_protocol.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/thread_communication.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
|
Binary file not shown.
|
@ -29,15 +29,30 @@ Software/src/inflash.o: ../Software/src/inflash.c \
|
|||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_wwdg.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/flash.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/communication_protocol.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware/inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread/rtconfig.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdebug.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtdef.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/flash.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/inflash.h:
|
||||
|
||||
|
@ -99,9 +114,9 @@ D:\psx\su806\git\CH32V303_V0.1\User/ch32v30x_it.h:
|
|||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc/ch32v30x_misc.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/flash.h:
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/communication_protocol.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware/inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtthread.h:
|
||||
|
||||
|
@ -116,3 +131,33 @@ D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtservice.h:
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rtm.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/ringbuffer.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/completion.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/dataqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/workqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/waitqueue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/flash.h:
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -38,7 +38,6 @@ Software/src/uart_dev.o: ../Software/src/uart_dev.c \
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh/finsh_api.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J1_UART6.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/rtdevice.h \
|
||||
|
@ -50,11 +49,7 @@ Software/src/uart_dev.o: ../Software/src/uart_dev.c \
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/pipe.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J2_UART7.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J3_USART2.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J4_UART8.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J5-0_USART3.h
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.h:
|
||||
|
||||
|
@ -134,8 +129,6 @@ D:\psx\su806\git\CH32V303_V0.1\rtthread\include/rthw.h:
|
|||
|
||||
D:\psx\su806\git\CH32V303_V0.1\drivers/RingQueue/ring_queue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J1_UART6.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/UART.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
@ -159,11 +152,3 @@ D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/ipc/poll.h:
|
|||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/serial.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include/drivers/pin.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J2_UART7.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J3_USART2.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J4_UART8.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Hardware\inc/J5-0_USART3.h:
|
||||
|
|
Binary file not shown.
BIN
obj/User/main.o
BIN
obj/User/main.o
Binary file not shown.
BIN
obj/User/start.o
BIN
obj/User/start.o
Binary file not shown.
Binary file not shown.
1411
obj/rt-thread.hex
1411
obj/rt-thread.hex
File diff suppressed because it is too large
Load Diff
7418
obj/rt-thread.lst
7418
obj/rt-thread.lst
File diff suppressed because it is too large
Load Diff
3532
obj/rt-thread.map
3532
obj/rt-thread.map
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
Reference in New Issue