no message
This commit is contained in:
parent
21f53432b8
commit
29d8387c74
|
@ -92,6 +92,7 @@
|
|||
<listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/rtthread/components/finsh}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/CH32V303_V0.1/Software/inc}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/CH32V303_V0.1/Hardware/inc}""/>
|
||||
<listOptionValue builtIn="false" value=""${workspace_loc:/CH32V303_V0.1/drivers/RingQueue}""/>
|
||||
</option>
|
||||
<option id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.2020844713" name="Language standard" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std" useByScannerDiscovery="true" value="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.std.gnu99" valueType="enumerated"/>
|
||||
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs.177116515" name="Defined symbols (-D)" superClass="ilg.gnumcueclipse.managedbuild.cross.riscv.option.c.compiler.defs" useByScannerDiscovery="true" valueType="definedSymbols"/>
|
||||
|
|
|
@ -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="933007178851107265" 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="842268059550569664" 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>
|
||||
|
|
|
@ -10,26 +10,20 @@
|
|||
|
||||
#include "inc/UART.h"
|
||||
|
||||
/* 功能码类型 */
|
||||
#define read_Register 0x30
|
||||
#define write_Register 0x10
|
||||
#define broadcast_Scan 0xA0
|
||||
#define reg_Req 0xA1
|
||||
|
||||
/* 起始标志 */
|
||||
#define StartFlag "SL"
|
||||
/* 结束标志 */
|
||||
#define EndFlag 0x16
|
||||
|
||||
/* 广播ID */
|
||||
#define broadcast_ID 0xFFFFFFFFFFFF
|
||||
|
||||
#define max_Len 32
|
||||
|
||||
extern uint8_t protocol[max_Len];
|
||||
/* 功能码 */
|
||||
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_MsgFunctionCode;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void broadcast_Scan_Fun(USART_TypeDef* pUSARTx);
|
||||
|
||||
|
||||
#endif /* SOFTWARE_PROTOCOL_COMMUNICATION_PROTOCOL_H_ */
|
||||
|
|
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* uart_dev.h
|
||||
*
|
||||
* Created on: 2024年6月22日
|
||||
* Author: psx
|
||||
*/
|
||||
|
||||
#ifndef APP_INC_UART_DEV_H_
|
||||
#define APP_INC_UART_DEV_H_
|
||||
|
||||
#include "ch32v30x.h"
|
||||
#include <rtthread.h>
|
||||
#include <rthw.h>
|
||||
#include "ring_queue.h"
|
||||
#include "rs485.h"
|
||||
|
||||
#define ASCII_CHAR_BACKSPACE 0x08 /* '\b' */
|
||||
#define ASCII_CHAR_CHARACTER_TABULATION 0x09 /* '\t' */
|
||||
#define ASCII_CHAR_LINE_FEED 0x0A /* '\n' */
|
||||
#define ASCII_CHAR_LINE_TABULATION 0x0B /* '\v' */
|
||||
#define ASCII_CHAR_FORM_FEED 0x0C /* '\f' */
|
||||
#define ASCII_CHAR_CARRIAGE_RETURN 0x0D /* '\r' */
|
||||
|
||||
#define RS485_MAX_PACK_DATA_LEN 30
|
||||
|
||||
typedef uint32_t device_handle;
|
||||
|
||||
|
||||
typedef enum{
|
||||
J1RS485_UART6 = 0,
|
||||
J2RS485_UART7,
|
||||
J3RS485_USART2,
|
||||
J4RS485_UART8,
|
||||
J50RS485_USART3,
|
||||
LORA_UART5,
|
||||
}uartIndex_e;
|
||||
|
||||
/* UART 驱动数据结构,对应一个uart设备 */
|
||||
typedef struct _uart_device_info{
|
||||
uint8_t init;
|
||||
uartIndex_e uart_index;
|
||||
uint32_t uart_baudrate;
|
||||
RingQueue uart_ring_queue;
|
||||
}uart_device_info;
|
||||
|
||||
//device_handle uart_dev_init(uartIndex_e uart_index, uint8_t *buff, int buff_size);
|
||||
device_handle uart_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);
|
||||
char uart_dev_in_char(device_handle device);
|
||||
int ring_queue_dev_char_present(RingQueue *ring_queue);
|
||||
char ring_queue_dev_in_char(RingQueue *ring_queue);
|
||||
int ring_queue_length(device_handle device);
|
||||
|
||||
|
||||
#endif /* APP_INC_UART_DEV_H_ */
|
|
@ -39,7 +39,6 @@ void Rs485_thread_entry(void* parameter)
|
|||
{
|
||||
|
||||
while (1) {
|
||||
broadcast_Scan_Fun(J5_0_USART);
|
||||
rt_thread_mdelay(3000);
|
||||
|
||||
}
|
||||
|
|
|
@ -6,32 +6,7 @@
|
|||
*/
|
||||
|
||||
#include <communication_protocol.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
uint8_t protocol[max_Len];
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Function Name : broadcast_Scan_Fun
|
||||
* Description : 对pUSARTx串口发送扫描广播帧(汇聚网关->接入节点)
|
||||
* Input : USART_TypeDef* pUSARTx 串口号
|
||||
* Return : None
|
||||
**/
|
||||
void broadcast_Scan_Fun(USART_TypeDef* pUSARTx)
|
||||
{
|
||||
memcpy(protocol, StartFlag, 2);
|
||||
protocol[2] = broadcast_ID & 0xFF;
|
||||
protocol[3] = (broadcast_ID >> 8) & 0xFF;
|
||||
protocol[4] = (broadcast_ID >> 16) & 0xFF;
|
||||
protocol[5] = (broadcast_ID >> 24) & 0xFF;
|
||||
protocol[6] = (broadcast_ID >> 32) & 0xFF;
|
||||
protocol[7] = (broadcast_ID >> 40) & 0xFF;
|
||||
protocol[8] = broadcast_Scan;
|
||||
protocol[9] = 0xCE;
|
||||
protocol[10] = EndFlag;
|
||||
|
||||
USARTx_SendStr_Len(J5_0_USART, protocol, 11);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,312 @@
|
|||
/*
|
||||
* uart_dev.c
|
||||
*
|
||||
* Created on: 2024年6月22日
|
||||
* Author: psx
|
||||
*/
|
||||
|
||||
#include "uart_dev.h"
|
||||
|
||||
/* 使能485发送 */
|
||||
//#define rs485_send_enable 1
|
||||
|
||||
static void uart_init(uartIndex_e uart_index, int baud);
|
||||
static uint8_t uart_putchar(device_handle device, char ch);
|
||||
|
||||
//device_handle g_bat485_uart3_handle;
|
||||
//device_handle g_gw485_uart4_handle;
|
||||
//
|
||||
//static uint8_t bat485_in_buff[200];
|
||||
//static uint8_t gw485_in_buff[300];
|
||||
//
|
||||
//uint8_t rs485_out_buff[100];
|
||||
|
||||
|
||||
/**
|
||||
* @brief 串口信息初始化,串口号及波特率.
|
||||
* @param uart_index 对应的硬件串口号
|
||||
* @param uart_baudrate 波特率
|
||||
*/
|
||||
uart_device_info uart_devices[]={
|
||||
// [0] = {
|
||||
// .init = 0,
|
||||
// .uart_index = BAT485_UART_INDEX,
|
||||
// .uart_baudrate = 9600,
|
||||
// },
|
||||
// [1] = {
|
||||
// .init = 0,
|
||||
// .uart_index = GW485_UART_INDEX,
|
||||
// .uart_baudrate = 9600,
|
||||
// },
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief 初始化串口设备.
|
||||
* @param uart_index 初始化串口号
|
||||
* @param buff 串口循环buff地址
|
||||
* @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;
|
||||
//}
|
||||
device_handle uart_dev_init(void)
|
||||
{
|
||||
// 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]);
|
||||
// }
|
||||
// }
|
||||
// InitRingQueue(&uart_devices[0].uart_ring_queue, bat485_in_buff, sizeof(bat485_in_buff));
|
||||
// uart_init(BAT485_UART_INDEX, g_slConfigInfo.bat485_Baud);
|
||||
// uart_devices[0].init = 1;
|
||||
// g_bat485_uart3_handle = (device_handle)(&uart_devices[0]);
|
||||
//
|
||||
// InitRingQueue(&uart_devices[1].uart_ring_queue, gw485_in_buff, sizeof(gw485_in_buff));
|
||||
// uart_init(GW485_UART_INDEX, g_slConfigInfo.gw485_Baud);
|
||||
// uart_devices[1].init = 1;
|
||||
// g_gw485_uart4_handle = (device_handle)(&uart_devices[1]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 串口硬件初始化.
|
||||
* @param uart_index 串口号
|
||||
* @param baud 波特率
|
||||
* @retval None
|
||||
*/
|
||||
void uart_init(uartIndex_e uart_index, int baud)
|
||||
{
|
||||
// if (uart_index == BAT485_UART_INDEX) {
|
||||
// BAT_485_Init(uart_devices[0].uart_baudrate);
|
||||
// } else if (uart_index == GW485_UART_INDEX) {
|
||||
// GW_485_Init(uart_devices[1].uart_baudrate);
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 发送一个字节.
|
||||
* @param uart_index 串口号
|
||||
* @param ch 待发送字符
|
||||
* @retval 1 成功 0失败
|
||||
*/
|
||||
uint8_t uart_putchar(device_handle device, char ch)
|
||||
{
|
||||
uart_device_info *device_info = (uart_device_info *)device;
|
||||
if((!device) || (!device_info->init))
|
||||
return 0;
|
||||
|
||||
// if (device_info->uart_index == BAT485_UART_INDEX) {
|
||||
// USARTx_SendByte(BAT_485, ch);
|
||||
// } else if(device_info->uart_index == GW485_UART_INDEX) {
|
||||
// USARTx_SendByte(GW_485, ch);
|
||||
// }
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief bat485发送使能.
|
||||
* @param
|
||||
* @retval
|
||||
*/
|
||||
void bat485_tx_enabla(void)
|
||||
{
|
||||
// GPIO_WriteBit(GPIO_BAT_485_RDE, Pin_BAT_485_RDE, write);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief bat485发送关闭.
|
||||
* @param
|
||||
* @retval
|
||||
*/
|
||||
void bat485_tx_disenabla(void)
|
||||
{
|
||||
// GPIO_WriteBit(GPIO_BAT_485_RDE, Pin_BAT_485_RDE, read);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief gw485发送使能.
|
||||
* @param
|
||||
* @retval
|
||||
*/
|
||||
void gw485_tx_enabla(void)
|
||||
{
|
||||
// GPIO_WriteBit(GPIO_GW_485_RDE, Pin_GW_485_RDE, write);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief gw485发送关闭.
|
||||
* @param
|
||||
* @retval
|
||||
*/
|
||||
void gw485_tx_disenabla(void)
|
||||
{
|
||||
// GPIO_WriteBit(GPIO_GW_485_RDE, Pin_GW_485_RDE, read);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 发送字符串.
|
||||
* @param uart_index 串口号
|
||||
* @param str 待发送字符串地址
|
||||
* @retval None
|
||||
*/
|
||||
void uart_sendstr(device_handle device,char *str)
|
||||
{
|
||||
#if rs485_send_enable
|
||||
if(device == g_bat485_uart3_handle){
|
||||
bat485_tx_enabla();
|
||||
}
|
||||
else if (device == g_gw485_uart4_handle) {
|
||||
gw485_tx_enabla();
|
||||
}
|
||||
#endif
|
||||
|
||||
while ((*str) != (char )0u) {
|
||||
if (*str == ASCII_CHAR_LINE_FEED){
|
||||
uart_putchar(device, (ASCII_CHAR_CARRIAGE_RETURN));
|
||||
uart_putchar(device, ASCII_CHAR_LINE_FEED);
|
||||
str++;
|
||||
}else{
|
||||
uart_putchar(device, *str++);
|
||||
}
|
||||
}
|
||||
|
||||
#if rs485_send_enable
|
||||
if(device == g_bat485_uart3_handle){
|
||||
bat485_tx_disenabla();
|
||||
}
|
||||
else if (device == g_gw485_uart4_handle) {
|
||||
gw485_tx_disenabla();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief 串口多字节发送.
|
||||
* @param device 串口句柄
|
||||
* @param data 待发送数据
|
||||
* @param len 待发送数据长度
|
||||
* @retval None
|
||||
*/
|
||||
void uart_dev_write(device_handle device, void *data, int len)
|
||||
{
|
||||
#if rs485_send_enable
|
||||
if(device == g_bat485_uart3_handle){
|
||||
bat485_tx_enabla();
|
||||
}
|
||||
else if (device == g_gw485_uart4_handle) {
|
||||
gw485_tx_enabla();
|
||||
}
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < len; i++) {
|
||||
uart_putchar(device, ((u_int8_t *)data)[i]);
|
||||
}
|
||||
|
||||
#if rs485_send_enable
|
||||
if(device == g_bat485_uart3_handle){
|
||||
bat485_tx_disenabla();
|
||||
}
|
||||
else if (device == g_gw485_uart4_handle) {
|
||||
gw485_tx_disenabla();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 判断串口设备循环buff是否有数据.
|
||||
* @param device 串口句柄
|
||||
* @retval 0 空 1有数据
|
||||
*/
|
||||
int uart_dev_char_present(device_handle device)
|
||||
{
|
||||
uart_device_info *device_info = (uart_device_info *)device;
|
||||
|
||||
if((!device) || (!device_info->init))
|
||||
return 0;
|
||||
|
||||
return !RingQueueEmpty(&device_info->uart_ring_queue);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 从串口设备循环buff读取一个数据.
|
||||
* @param device 串口句柄
|
||||
* @retval 读取到的字符
|
||||
*/
|
||||
char uart_dev_in_char(device_handle device)
|
||||
{
|
||||
uart_device_info *device_info = (uart_device_info *)device;
|
||||
char c = 0;
|
||||
|
||||
if (uart_dev_char_present(device))
|
||||
OutRingQueue(&device_info->uart_ring_queue, (u_int8_t*)&c);
|
||||
return c;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 判断循环buff是否有数据.
|
||||
* @param ring_queue 循环buff地址
|
||||
* @retval 0 空 1有数据
|
||||
*/
|
||||
int ring_queue_dev_char_present(RingQueue *ring_queue)
|
||||
{
|
||||
return !RingQueueEmpty(ring_queue);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 从循环buff读取一个数据.
|
||||
* @param ring_queue 循环buff地址
|
||||
* @retval 读取到的字符
|
||||
*/
|
||||
char ring_queue_dev_in_char(RingQueue *ring_queue)
|
||||
{
|
||||
char c = 0;
|
||||
if (ring_queue_dev_char_present(ring_queue))
|
||||
OutRingQueue(ring_queue, (u_int8_t*)&c);
|
||||
return c;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 查看循环buff中的数据个数.
|
||||
* @param ring_queue 循环buff地址
|
||||
* @retval 循环buff中的个数
|
||||
*/
|
||||
int ring_queue_length(device_handle device)
|
||||
{
|
||||
uart_device_info *device_info = (uart_device_info *)device;
|
||||
return RingQueueLength(&device_info->uart_ring_queue);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Core/%.o: ../Core/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Debug/%.o: ../Debug/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -37,6 +37,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Hardware/src/%.o: ../Hardware/src/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -91,6 +91,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Peripheral/src/%.o: ../Peripheral/src/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -7,21 +7,24 @@
|
|||
C_SRCS += \
|
||||
../Software/src/Rs485.c \
|
||||
../Software/src/communication_protocol.c \
|
||||
../Software/src/mutex.c
|
||||
../Software/src/mutex.c \
|
||||
../Software/src/uart_dev.c
|
||||
|
||||
OBJS += \
|
||||
./Software/src/Rs485.o \
|
||||
./Software/src/communication_protocol.o \
|
||||
./Software/src/mutex.o
|
||||
./Software/src/mutex.o \
|
||||
./Software/src/uart_dev.o
|
||||
|
||||
C_DEPS += \
|
||||
./Software/src/Rs485.d \
|
||||
./Software/src/communication_protocol.d \
|
||||
./Software/src/mutex.d
|
||||
./Software/src/mutex.d \
|
||||
./Software/src/uart_dev.d
|
||||
|
||||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
Software/src/%.o: ../Software/src/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -0,0 +1,160 @@
|
|||
Software/src/uart_dev.o: ../Software/src/uart_dev.c \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/uart_dev.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\drivers\RingQueue/ring_queue.h \
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/rs485.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\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\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\drivers\RingQueue/ring_queue.h:
|
||||
|
||||
D:\psx\su806\git\CH32V303_V0.1\Software\inc/rs485.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\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.
BIN
obj/User/start.o
BIN
obj/User/start.o
Binary file not shown.
|
@ -25,7 +25,7 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
User/%.o: ../User/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
User/start.o: ../User/start.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Software" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"User/start.d" -c -o "$@" "$<"
|
||||
|
|
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
drivers/RingQueue/%.o: ../drivers/RingQueue/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -19,6 +19,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
drivers/%.o: ../drivers/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
rtthread/components/drivers/misc/%.o: ../rtthread/components/drivers/misc/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
rtthread/components/drivers/serial/%.o: ../rtthread/components/drivers/serial/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -31,6 +31,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
rtthread/components/finsh/%.o: ../rtthread/components/finsh/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -29,6 +29,6 @@ rtthread/libcpu/risc-v/common/%.o: ../rtthread/libcpu/risc-v/common/%.S
|
|||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -x assembler-with-cpp -I"D:\psx\su806\git\CH32V303_V0.1\Startup" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Software" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
rtthread/libcpu/risc-v/common/%.o: ../rtthread/libcpu/risc-v/common/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -61,6 +61,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
rtthread/src/%.o: ../rtthread/src/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
|
@ -16,6 +16,6 @@ C_DEPS += \
|
|||
|
||||
# Each subdirectory must supply rules for building sources it contributes
|
||||
rtthread/%.o: ../rtthread/%.c
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @ riscv-none-embed-gcc -march=rv32imacxw -mabi=ilp32 -msmall-data-limit=8 -msave-restore -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -fno-common -Wunused -Wuninitialized -g -I"D:\psx\su806\git\CH32V303_V0.1\Debug" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware" -I"D:\psx\su806\git\CH32V303_V0.1\Core" -I"D:\psx\su806\git\CH32V303_V0.1\User" -I"D:\psx\su806\git\CH32V303_V0.1\Peripheral\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\include\libc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\libcpu\risc-v\common" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\src" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\include" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\misc" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\drivers\serial" -I"D:\psx\su806\git\CH32V303_V0.1\rtthread\components\finsh" -I"D:\psx\su806\git\CH32V303_V0.1\Software\inc" -I"D:\psx\su806\git\CH32V303_V0.1\Hardware\inc" -I"D:\psx\su806\git\CH32V303_V0.1\drivers\RingQueue" -std=gnu99 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -c -o "$@" "$<"
|
||||
@ @
|
||||
|
||||
|
|
Loading…
Reference in New Issue