no message

This commit is contained in:
起床就犯困 2024-08-05 10:36:17 +08:00
parent 465464de9f
commit c0ea36b58f
18 changed files with 5682 additions and 5682 deletions

View File

@ -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="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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>

18
Hardware/inc/spi.h Normal file
View File

@ -0,0 +1,18 @@
/*
* spi.h
*
* Created on: 2024725
* Author: psx
*/
#ifndef HARDWARE_INC_SPI_H_
#define HARDWARE_INC_SPI_H_
#endif /* HARDWARE_INC_SPI_H_ */

8
Hardware/src/spi.c Normal file
View File

@ -0,0 +1,8 @@
/*
* spi.c
*
* Created on: 2024725
* Author: psx
*/

View File

@ -25,8 +25,8 @@ rt_mq_t mqSend = RT_NULL;
rt_uint8_t Send_mq_Init(void)
{
mqSend = rt_mq_create("Send_mq",/* ÏûÏ¢¶ÓÁÐÃû×Ö */
50, /* 消息的最大长度 */
5, /* 消息队列的最大容量 */
100, /* 消息的最大长度 */
20, /* 消息队列的最大容量 */
RT_IPC_FLAG_FIFO);/* ¶ÓÁÐģʽ FIFO(0x00)*/
if (mqSend != RT_NULL)
return 1;

View File

@ -38,6 +38,7 @@ void software_init()
Send_mq_Init();
Recv_thread_Init();
Send_thread_Init();
while (1);
}
/*

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

1
obj/Hardware/src/spi.d Normal file
View File

@ -0,0 +1 @@
Hardware/src/spi.o: ../Hardware/src/spi.c

BIN
obj/Hardware/src/spi.o Normal file

Binary file not shown.

View File

@ -12,7 +12,8 @@ C_SRCS += \
../Hardware/src/J3_USART2.c \
../Hardware/src/J4_UART8.c \
../Hardware/src/J5-0_USART3.c \
../Hardware/src/UART.c
../Hardware/src/UART.c \
../Hardware/src/spi.c
OBJS += \
./Hardware/src/Android.o \
@ -22,7 +23,8 @@ OBJS += \
./Hardware/src/J3_USART2.o \
./Hardware/src/J4_UART8.o \
./Hardware/src/J5-0_USART3.o \
./Hardware/src/UART.o
./Hardware/src/UART.o \
./Hardware/src/spi.o
C_DEPS += \
./Hardware/src/Android.d \
@ -32,7 +34,8 @@ C_DEPS += \
./Hardware/src/J3_USART2.d \
./Hardware/src/J4_UART8.d \
./Hardware/src/J5-0_USART3.d \
./Hardware/src/UART.d
./Hardware/src/UART.d \
./Hardware/src/spi.d
# Each subdirectory must supply rules for building sources it contributes

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -61,7 +61,8 @@ void rt_hw_board_init()
rt_components_board_init();
#endif
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
rt_system_heap_init(rt_heap_begin_get(), rt_heap_end_get());
// rt_system_heap_init(rt_heap_begin_get(), rt_heap_end_get());
rt_system_heap_init(HEAP_BEGIN, HEAP_END);
#endif
#ifdef RT_USING_CONSOLE

View File

@ -25,8 +25,9 @@
extern int _ebss;
#define HEAP_BEGIN ((void *)&_ebss)
#define HEAP_END (SRAM_END-__stack_size)
//#define __stack_size 32768
//#define HEAP_END ((void *)(SRAM_END-__stack_size))
#define HEAP_END ((void *)SRAM_END)
void rt_hw_board_init(void);