1212 lines
31 KiB
Plaintext
1212 lines
31 KiB
Plaintext
/*Modified at 2024-01-21 20:38:08*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-06-14 15:12:50*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-06-14 15:12:57*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-08-17 14:30:27*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-08-17 14:30:32*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-08-17 14:30:45*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|
||
/*Modified at 2024-08-17 14:30:51*/
|
||
/****************************************************
|
||
* Automatically-generated file. Do not edit! *
|
||
****************************************************/
|
||
|
||
#include "project_config.h"
|
||
#include "djyos.h"
|
||
#include "stdint.h"
|
||
#include "stddef.h"
|
||
#include "cpu_peri.h"
|
||
#include <Iboot_info.h>
|
||
|
||
#include <djyfs/filesystems.h>
|
||
|
||
extern ptu32_t djy_main(void);
|
||
//如果这个CN_MANUFACTURER_NAME名字要改,那djysrc里的Iboot_info.c中相应的名字也要改
|
||
const char CN_MANUFACTURER_NAME[] = PRODUCT_MANUFACTURER_NAME;
|
||
|
||
|
||
|
||
ptu32_t __djy_main(void)
|
||
{
|
||
djy_main();
|
||
|
||
return 0;
|
||
}
|
||
|
||
void Sys_ModuleInit(void)
|
||
{
|
||
uint16_t evtt_main;
|
||
|
||
//shell
|
||
extern void Stdio_KnlInOutInit(char * StdioIn, char *StdioOut);
|
||
Stdio_KnlInOutInit(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME);
|
||
extern s32 ModuleInstall_Shell(ptu32_t para);
|
||
ModuleInstall_Shell(0);
|
||
//end shell
|
||
|
||
//----------------------------early----------------------------//
|
||
|
||
//device file system
|
||
extern s32 ModuleInstall_dev(void);
|
||
ModuleInstall_dev(); // 安装设备文件系统;
|
||
//end device file system
|
||
|
||
//djybus
|
||
extern bool_t ModuleInstall_DjyBus(void);
|
||
ModuleInstall_DjyBus ( );
|
||
//end djybus
|
||
|
||
//iicbus
|
||
extern bool_t ModuleInstall_IICBus(void);
|
||
ModuleInstall_IICBus ( );
|
||
//end iicbus
|
||
|
||
//message queue
|
||
extern bool_t ModuleInstall_MsgQ(void);
|
||
ModuleInstall_MsgQ ( );
|
||
//end message queue
|
||
|
||
//multiplex
|
||
extern bool_t ModuleInstall_Multiplex(void);
|
||
ModuleInstall_Multiplex ();
|
||
//end multiplex
|
||
|
||
//spi bus
|
||
extern bool_t ModuleInstall_SPIBus(void);
|
||
ModuleInstall_SPIBus();
|
||
//end spi bus
|
||
|
||
//cpu onchip spi
|
||
bool_t ModuleInstall_SPI(u8 SPI_port);
|
||
#if CFG_SPI0_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI0);
|
||
#endif
|
||
#if CFG_SPI1_ENABLE==1
|
||
ModuleInstall_SPI(CN_SPI1);
|
||
#endif
|
||
//end cpu onchip spi
|
||
|
||
//cpu onchip uart
|
||
extern ptu32_t ModuleInstall_UART(ptu32_t SerialNo);
|
||
#if CFG_UART0_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART0);
|
||
#endif
|
||
#if CFG_UART1_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART1);
|
||
#endif
|
||
#if CFG_UART2_ENABLE ==1
|
||
ModuleInstall_UART(CN_UART2);
|
||
#endif
|
||
//end cpu onchip uart
|
||
|
||
//fat file system
|
||
extern s32 ModuleInstall_FAT(const char *dir, u32 opt, void *data);
|
||
ModuleInstall_FAT(CFG_FAT_MOUNT_POINT, CFG_FAT_MS_INSTALLUSE, CFG_FAT_MEDIA_KIND);
|
||
//end fat file system
|
||
|
||
//cpu onchip timer
|
||
extern bool_t ModuleInstall_HardTimer(void);
|
||
ModuleInstall_HardTimer();
|
||
//end cpu onchip timer
|
||
|
||
//cpu_dma
|
||
extern void DMA_Init(void);
|
||
DMA_Init();
|
||
//end cpu_dma
|
||
|
||
//ioiicconfig
|
||
bool_t ModuleInstall_init_ioiic(const char * busname);
|
||
ModuleInstall_init_ioiic(CFG_IO_IIC_BUS_NAME);
|
||
//end ioiicconfig
|
||
|
||
//kernel
|
||
#if(CFG_OS_TINY == flase)
|
||
extern s32 kernel_command(void);
|
||
kernel_command();
|
||
#endif
|
||
//end kernel
|
||
|
||
//Nls Charset
|
||
extern ptu32_t ModuleInstall_Charset(ptu32_t para);
|
||
ModuleInstall_Charset(0);
|
||
extern void ModuleInstall_CharsetNls(const char * DefaultCharset);
|
||
ModuleInstall_CharsetNls("C");
|
||
//end Nls Charset
|
||
|
||
//gb2312 charset
|
||
extern bool_t ModuleInstall_CharsetGb2312(void);
|
||
ModuleInstall_CharsetGb2312 ( );
|
||
//end gb2312 charset
|
||
|
||
//utf8 charset
|
||
extern bool_t ModuleInstall_CharsetUtf8(void);
|
||
ModuleInstall_CharsetUtf8 ( );
|
||
//end utf8 charset
|
||
|
||
//norflash W25QXX
|
||
extern s32 ModuleInstall_W25qxx(void);
|
||
ModuleInstall_W25qxx();
|
||
//end norflash W25QXX
|
||
|
||
//W25QXX FAT
|
||
extern bool_t ModuleInstall_W25qxxInstallFat(const char *TargetFs, s32 bstart, s32 bend, u32 doformat);
|
||
ModuleInstall_W25qxxInstallFat(CFG_W25_FAT_MOUNT_NAME,CFG_W25_FAT_PART_START,CFG_W25_FAT_PART_END,CFG_W25_FAT_PART_FORMAT);
|
||
//end W25QXX FAT
|
||
|
||
//----------------------------later----------------------------//
|
||
//stdio
|
||
#if(CFG_STDIO_STDIOFILE == true)
|
||
extern s32 ModuleInstall_STDIO(const char *in,const char *out, const char *err);
|
||
ModuleInstall_STDIO(CFG_STDIO_IN_NAME,CFG_STDIO_OUT_NAME,CFG_STDIO_ERR_NAME);
|
||
#endif
|
||
//end stdio
|
||
|
||
evtt_main = DJY_EvttRegist(EN_CORRELATIVE,CN_PRIO_RRS,0,0,
|
||
__djy_main,NULL,CFG_MAINSTACK_LIMIT, "main function");
|
||
//事件的两个参数暂设为0,如果用shell启动,可用来采集shell命令行参数
|
||
DJY_EventPop(evtt_main,NULL,0,0,0,0);
|
||
|
||
//----------------------------medium----------------------------//
|
||
//heap
|
||
#if ((CFG_DYNAMIC_MEM == true))
|
||
extern bool_t Heap_DynamicModuleInit(void);
|
||
Heap_DynamicModuleInit ( );
|
||
#endif
|
||
//end heap
|
||
|
||
|
||
|
||
return ;
|
||
}
|
||
|