diff --git a/docs/ChangeLog.md b/docs/ChangeLog.md index 8cf8db67aea3a082eb99a11a8a9dfefcf4f91dac..a4accd6728f28ea7509e17743683c5f96f6fb24b 100644 --- a/docs/ChangeLog.md +++ b/docs/ChangeLog.md @@ -1,3 +1,28 @@ +# Phytium Standalone SDK 2023-11-20 ChangeLog + +Change Log since 2023-11-15 + +## example + +- add openamp for linux examples + +## third-party + +- add libmetal port to support freertos + +# Phytium Standalone SDK 2023-11-15 ChangeLog + +Change Log since 2023-11-09 + +## example + +- synchronous update with GDMA OS driver +- code decouple work + +## driver + +- GDMA synchronous update with standalone SDK + # Phytium Standalone SDK 2023-11-09 ChangeLog Change Log since 2023-11-01 @@ -6,6 +31,14 @@ Change Log since 2023-11-01 - added extended frame test examples +# Phytium Standalone SDK 2023-11-06 ChangeLog + +Change Log since 2023-11-06 + +## example + +- update network example configs and adapt the example to the new standalone framework. + # Phytium Standalone SDK 2023-11-01 ChangeLog Change Log since 2023-11-01 diff --git a/drivers/dma/fgdma/fgdma_os.c b/drivers/dma/fgdma/fgdma_os.c index e6201e92b833d2a9e85ed20afac5546035333db9..a4f54ac82458719e5b9b1fcaeb281dbe993bceb9 100644 --- a/drivers/dma/fgdma/fgdma_os.c +++ b/drivers/dma/fgdma/fgdma_os.c @@ -17,9 +17,10 @@ * Description:  This file is for required function implementations of gdma driver used in FreeRTOS. * * Modify History: - * Ver   Who        Date         Changes - * ----- ------     --------    -------------------------------------- - * 1.0 zhugengyu 2022/7/27 init commit + * Ver    Who         Date         Changes + * -----  ------      --------     -------------------------------------- + * 1.0 zhugengyu 2022/7/27 init commit + * 2.0 liqiaozhong 2023/11/10 synchronous update with standalone sdk */ /***************************** Include Files *********************************/ #include @@ -36,27 +37,45 @@ #include "fgdma_hw.h" #include "fgdma_os.h" - /************************** Constant Definitions *****************************/ /**************************** Type Definitions *******************************/ /************************** Variable Definitions *****************************/ -static FFreeRTOSGdma gdma[FGDMA_INSTANCE_NUM]; - +static FFreeRTOSGdma gdma_instance[FGDMA_INSTANCE_NUM]; +static FGdmaBdlDesc *channel_first_desc_addr[FFREERTOS_GDMA_NUM_OF_CHAN]; /***************** Macros (Inline Functions) Definitions *********************/ #define FGDMA_DEBUG_TAG "GDMA-OS" #define FGDMA_ERROR(format, ...) FT_DEBUG_PRINT_E(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_WARN(format, ...) FT_DEBUG_PRINT_W(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_INFO(format, ...) FT_DEBUG_PRINT_I(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_DEBUG(format, ...) FT_DEBUG_PRINT_D(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) - /************************** Function Prototypes ******************************/ /*****************************************************************************/ +/* GDMA transfer end irq response function */ +static void GdmaChannelTransferEnd(FGdmaChanIrq *const chan_irq_info_p, void *args) +{ + FASSERT(chan_irq_info_p); + + FGdmaChanIndex channel_id = chan_irq_info_p->chan_id; + uint32_t ctrl_id = chan_irq_info_p->gdma_instance->config.instance_id; + FreeRTOSGdmaChanEvtHandler usr_evt_handler = gdma_instance[ctrl_id].os_evt_handler[channel_id][FFREERTOS_GDMA_CHAN_EVT_TRANS_END]; + void *usr_evt_handler_arg = gdma_instance[ctrl_id].os_evt_handler_arg[channel_id][FFREERTOS_GDMA_CHAN_EVT_TRANS_END]; + + if (usr_evt_handler != NULL) + { + usr_evt_handler(channel_id, usr_evt_handler_arg); + } + FGDMA_INFO("Channel: %d Transfer completed.\n", channel_id); + + return; +} + static inline FError FGdmaOsTakeSema(SemaphoreHandle_t locker) { FASSERT_MSG((NULL != locker), "Locker not exists."); + if (pdFALSE == xSemaphoreTake(locker, portMAX_DELAY)) { FGDMA_ERROR("Failed to take locker!!!"); @@ -77,65 +96,108 @@ static inline void FGdmaOsGiveSema(SemaphoreHandle_t locker) return; } -static void FGdmaOsSetupInterrupt(FGdma *const ctrl) +/* for GIC register */ +/* if GDMA chennels share the same intr num of the controller */ +static void FGdmaSetupShareInterrupt(FGdma *const gdma_ctrl_p) { - FASSERT(ctrl); - FGdmaConfig *config = &ctrl->config; - uintptr base_addr = config->base_addr; - u32 cpu_id = 0; - u32 irq_id = config->irq_num[0]; + FASSERT(gdma_ctrl_p); + FASSERT(gdma_ctrl_p->gdma_ready); + + uint32_t cpu_id = 0; GetCpuId(&cpu_id); + FGDMA_INFO("cpu id is %d", cpu_id); - FGDMA_INFO("cpu_id is cpu_id %d", cpu_id); - FGDMA_INFO("interrupt_id is %d", irq_id); - InterruptSetTargetCpus(irq_id, cpu_id); + FGdmaConfig *gdma_config_p = &gdma_ctrl_p->config; - InterruptSetPriority(irq_id, config->irq_prority); + InterruptSetTargetCpus(gdma_config_p->irq_num[0], cpu_id); + InterruptSetPriority(gdma_config_p->irq_num[0], gdma_config_p->irq_prority); /* register intr callback */ - InterruptInstall(irq_id, + InterruptInstall(gdma_config_p->irq_num[0], FGdmaIrqHandler, - ctrl, + gdma_ctrl_p, NULL); /* enable gdma irq */ - InterruptUmask(irq_id); + InterruptUmask(gdma_config_p->irq_num[0]); + FGDMA_INFO("GDMA GIC interrupt register FINISH."); - FGDMA_INFO("gdma interrupt setup done!!!"); return; } -FFreeRTOSGdma *FFreeRTOSGdmaInit(u32 id) +/* if GDMA chennels have their own intr nums */ +static void FGdmaSetupPrivateInterrupt(FGdma *const gdma_ctrl_p, FGdmaChanIndex channel_id) { - FASSERT_MSG(id < FGDMA_INSTANCE_NUM, "Invalid gdma id."); - FFreeRTOSGdma *instance = &gdma[id]; - FGdma *const ctrl = &instance->ctrl; - FGdmaConfig config; - FMemp *memp = &instance->memp; - void *memp_buf_beg = (void *)instance->memp_buf; - void *memp_buf_end = (void *)instance->memp_buf + sizeof(instance->memp_buf); - FError err = FFREERTOS_GDMA_OK; + FASSERT(gdma_ctrl_p); + FASSERT(gdma_ctrl_p->gdma_ready); + FASSERT(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN); - if (FT_COMPONENT_IS_READY == ctrl->is_ready) - { - FGDMA_WARN("gdma ctrl %d already inited!!!", id); - return instance; - } + uint32_t cpu_id = 0; + FGdmaConfig *gdma_config_p = &gdma_ctrl_p->config; + + InterruptSetTargetCpus(gdma_config_p->irq_num[channel_id], cpu_id); + InterruptSetPriority(gdma_config_p->irq_num[channel_id], gdma_config_p->irq_prority); + + /* register intr callback */ + InterruptInstall(gdma_config_p->irq_num[channel_id], + FGdmaIrqHandlerPrivateChannel, + &gdma_ctrl_p->chan_irq_info[channel_id], + NULL); + + /* enable gdma irq */ + InterruptUmask(gdma_config_p->irq_num[channel_id]); + FGDMA_INFO("GDMA GIC interrupt register FINISH."); - /* no scheduler during init */ - taskENTER_CRITICAL(); + return; +} + +void FFreeRTOSGdmaChanRegisterEvtHandler(FFreeRTOSGdma *const instance_p, + uint32_t channel_id, + FFreeRTOSGdmaChanEvtType evt, + FreeRTOSGdmaChanEvtHandler os_evt_handler, + void *os_evt_handler_arg) +{ + FASSERT(instance_p); + FASSERT(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN); + FASSERT(evt < FFREERTOS_GDMA_CHAN_NUM_OF_EVT); + FASSERT(os_evt_handler); + + instance_p->os_evt_handler[channel_id][evt] = os_evt_handler; + instance_p->os_evt_handler_arg[channel_id][evt] =os_evt_handler_arg; + + return; +} + +/* GDMA ctrl(controller) init function */ +FFreeRTOSGdma *FFreeRTOSGdmaInit(uint32_t ctrl_id) +{ + FASSERT_MSG(ctrl_id < FGDMA_INSTANCE_NUM, "Invalid GDMA controller id."); + + FFreeRTOSGdma *instance_p = &gdma_instance[ctrl_id]; + FGdma *ctrl_p = &instance_p->ctrl; + FGdmaConfig ctrl_config; + FMemp *memp = &instance_p->memp; + void *memp_buf_beg = (void *)instance_p->memp_buf; + void *memp_buf_end = (void *)instance_p->memp_buf + sizeof(instance_p->memp_buf); + FError err = FFREERTOS_GDMA_OK; - config = *FGdmaLookupConfig(id); - config.irq_prority = FFREERTOS_GDMA_IRQ_PRIORITY; - err = FGdmaCfgInitialize(ctrl, &config); + taskENTER_CRITICAL(); /* forbidden scheduler during init */ + + ctrl_config = *FGdmaLookupConfig(ctrl_id); + ctrl_config.irq_prority = FFREERTOS_GDMA_IRQ_PRIORITY; + err = FGdmaCfgInitialize(ctrl_p, &ctrl_config); if (FGDMA_SUCCESS != err) { - FGDMA_ERROR("Init gdma-%d failed, 0x%x", id, err); + FGDMA_ERROR("Init gdma-%d failed, err = 0x%x", ctrl_id, err); goto err_exit; } - FGdmaOsSetupInterrupt(ctrl); + if (ctrl_p->config.caps & FGDMA_IRQ1_MASK) + { + FGdmaSetupShareInterrupt(ctrl_p); + } + /* init memory pool */ err = FMempInit(memp, memp_buf_beg, memp_buf_end); if (FMEMP_SUCCESS != err) { @@ -143,159 +205,212 @@ FFreeRTOSGdma *FFreeRTOSGdmaInit(u32 id) goto err_exit; } - FASSERT_MSG(NULL == instance->locker, "Locker exists!!!"); - FASSERT_MSG((instance->locker = xSemaphoreCreateMutex()) != NULL, "Create mutex failed!!!"); - - /* start gdma first, then config gdma channel */ - err = FGdmaStart(ctrl); + FASSERT_MSG(NULL == instance_p->locker, "Mutex instance_p->locker aready exists."); + FASSERT_MSG((instance_p->locker = xSemaphoreCreateMutex()) != NULL, "Create mutex instance_p->locker failed."); err_exit: taskEXIT_CRITICAL(); /* allow schedule after init */ - return (FT_SUCCESS == err) ? instance : NULL; /* exit with NULL if failed */ + return (FT_SUCCESS == err) ? instance_p : NULL; /* exit with NULL if failed */ } -FError FFreeRTOSGdmaDeInit(FFreeRTOSGdma *const instance) +/* GDMA instance deinit function */ +FError FFreeRTOSGdmaDeInit(FFreeRTOSGdma *const instance_p) { - FASSERT(instance); - FGdma *const ctrl = &instance->ctrl; - FGdmaConfig *config = &ctrl->config; - FMemp *memp = &instance->memp; + FASSERT(instance_p); + FGdma *ctrl_p = &instance_p->ctrl; + FGdmaConfig *config = &ctrl_p->config; + FMemp *memp = &instance_p->memp; FError err = FFREERTOS_GDMA_OK; - if (FT_COMPONENT_IS_READY != ctrl->is_ready) + taskENTER_CRITICAL(); /* no schedule when deinit */ + + err = FGdmaGlobalStop(ctrl_p); + if (FMEMP_SUCCESS != err) { - FGDMA_ERROR("Gdma ctrl %d not yet init!!!", ctrl->config.instance_id); - return FFREERTOS_GDMA_NOT_INIT; + FGDMA_ERROR("FGdmaGlobalStop failed, err = 0x%x.", err); + taskEXIT_CRITICAL(); + return err; } - - taskENTER_CRITICAL(); /* no schedule when deinit instance */ - - err = FGdmaStop(ctrl); FMempDeinit(memp); - FGdmaDeInitialize(ctrl); + FGdmaDeInitialize(ctrl_p); - vSemaphoreDelete(instance->locker); - instance->locker = NULL; + vSemaphoreDelete(instance_p->locker); + instance_p->locker = NULL; taskEXIT_CRITICAL(); /* allow schedule after deinit */ + return err; } -FError FFreeRTOSGdmaSetupChannel(FFreeRTOSGdma *const instance, u32 chan_id, const FFreeRTOSGdmaRequest *req) +/* GDMA channenl configure function */ +FError FFreeRTOSGdmaChanConfigure(FFreeRTOSGdma *const instance_p, + uint32_t channel_id, + FFreeRTOSGdmaChanCfg const *os_channel_config_p) { - FASSERT(instance); - FGdma *const ctrl = &instance->ctrl; - FMemp *memp = &instance->memp; + FASSERT(instance_p); + FASSERT_MSG(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN, "Invalid GDMA channel id."); + FASSERT(os_channel_config_p); + + FGdma *ctrl_p = &instance_p->ctrl; FError err = FFREERTOS_GDMA_OK; - FFreeRTOSGdmaChan *chan_os = &instance->chan[chan_id]; - FFreeRTOSGdmaTranscation *trans = NULL; - FGdmaChanConfig *chan_config = NULL; - u32 buf_idx; - err = FGdmaOsTakeSema(instance->locker); + err = FGdmaOsTakeSema(instance_p->locker); if (FFREERTOS_GDMA_OK != err) { + FGDMA_ERROR("Mutex instance_p->locker is occupied."); return err; } - chan_os->bdl_list = FMempMallocAlign(memp, sizeof(FGdmaBdlDesc) * req->valid_trans_num, FGDMA_ADDR_ALIGMENT); - if (NULL == chan_os->bdl_list) + /* channel config set */ + FGdmaChanConfig channel_config = FGDMA_DEFAULT_CHAN_CONFIG(); + + if (os_channel_config_p->trans_mode == FFREERTOS_GDMA_OPER_DIRECT) { - FGDMA_ERROR("Allocate buffer failed!!!"); - err = FFREERTOS_GDMA_ALLOCATE_FAIL; - goto err_exit; + channel_config.trans_mode = FGDMA_OPER_DIRECT; + channel_config.src_addr = os_channel_config_p->src_addr; + channel_config.dst_addr = os_channel_config_p->dst_addr; + channel_config.trans_length = os_channel_config_p->trans_length; + } + else if (os_channel_config_p->trans_mode == FFREERTOS_GDMA_OPER_BDL) + { + FMemp *memp = &instance_p->memp; + + /* allocate a piece of memory space from memroy pool for BDL descriptor list */ + FGdmaBdlDesc *first_desc_addr = FMempMallocAlign(memp, + sizeof(FGdmaBdlDesc) * channel_config.valid_desc_num, + FGDMA_BDL_DESC_ALIGMENT); + if (first_desc_addr == NULL) + { + FGDMA_ERROR("Allocate memory space from memroy pool failed."); + err = FFREERTOS_GDMA_ALLOCATE_FAIL; + goto err_exit; + } + channel_first_desc_addr[channel_id] = first_desc_addr; + + /* creat BDL descriptor list */ + FGdmaBdlDescConfig bdl_desc_config[channel_config.valid_desc_num]; + s32 pre_desc_trans_len = os_channel_config_p->trans_length / channel_config.valid_desc_num; + for (s32 loop = 0; loop < channel_config.valid_desc_num; loop++) + { + bdl_desc_config[loop] = FGDMA_DEFAULT_DESC_CONFIG(); + bdl_desc_config[loop].current_desc_num = loop; + bdl_desc_config[loop].src_addr = os_channel_config_p->src_addr + loop * pre_desc_trans_len; + bdl_desc_config[loop].dst_addr = os_channel_config_p->dst_addr + loop * pre_desc_trans_len; + bdl_desc_config[loop].trans_length = pre_desc_trans_len; + FGdmaBDLSetDesc(first_desc_addr, &bdl_desc_config[loop]); + } + + channel_config.trans_mode = FGDMA_OPER_BDL; + channel_config.first_desc_addr = first_desc_addr; } - chan_config = &chan_os->chan.config; - *chan_config = FGDMA_DEFAULT_BDL_CHAN_CONFIG(chan_id, chan_os->bdl_list, req->valid_trans_num); - err = FGdmaAllocateChan(ctrl, &chan_os->chan, chan_config); + /* use channel config to configure channel */ + err = FGdmaChanConfigure(ctrl_p, channel_id, &channel_config); if (FGDMA_SUCCESS != err) { - FGDMA_ERROR("Allocate chan failed!!!"); + FGDMA_ERROR("GDMA channel configure failed."); goto err_exit; } - FGdmaChanRegisterEvtHandler(&chan_os->chan, - FGDMA_CHAN_EVT_TRANS_END, - req->req_done_handler, - req->req_done_args); - - /* assign bdl for each transaction buffer */ - for (buf_idx = 0; buf_idx < req->valid_trans_num; buf_idx++) + /* register GIC interrupt */ + if (ctrl_p->config.caps & FGDMA_IRQ2_MASK) { - trans = &req->trans[buf_idx]; - - /* append bdl entry */ - err = FGdmaAppendBDLEntry(&chan_os->chan, (uintptr)trans->src_buf, - (uintptr)trans->dst_buf, trans->data_len); - if (FGDMA_SUCCESS != err) - { - FGDMA_ERROR("Setup bdl entry failed!!!"); - goto err_exit; - } + FGdmaSetupPrivateInterrupt(ctrl_p, channel_id); } + FGdmaChanRegisterEvtHandler(ctrl_p, + channel_id, + FGDMA_CHAN_EVT_TRANS_END, + GdmaChannelTransferEnd, + NULL); + err_exit: - FGdmaOsGiveSema(instance->locker); + FGdmaOsGiveSema(instance_p->locker); return err; } -FError FFreeRTOSGdmaRevokeChannel(FFreeRTOSGdma *const instance, u32 chan_id) +/* GDMA channel transfer start function */ +void FFreeRTOSGdmaChanStart(FFreeRTOSGdma *const instance_p, uint32_t channel_id) { - FASSERT(instance); - FGdma *const ctrl = &instance->ctrl; + FASSERT(instance_p); + FASSERT_MSG(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN, "Invalid GDMA channel id."); + + FGdma *ctrl_p = &instance_p->ctrl; FError err = FFREERTOS_GDMA_OK; - FMemp *memp = &instance->memp; - u32 chan_idx; - FFreeRTOSGdmaChan *chan_os = &instance->chan[chan_id]; - err = FGdmaOsTakeSema(instance->locker); + err = FGdmaOsTakeSema(instance_p->locker); if (FFREERTOS_GDMA_OK != err) { - return err; + FGDMA_ERROR("Mutex instance_p->locker is occupied."); + goto err_exit; } - /* free dynamic memroy allocated for bdl */ - if (chan_os->bdl_list) + FGdmaChanStartTrans(ctrl_p, channel_id); /* start channel transfer */ + +err_exit: + FGdmaOsGiveSema(instance_p->locker); + return; +} + +/* GDMA channel stop function */ +FError FFreeRTOSGdmaChanStop(FFreeRTOSGdma *const instance_p, uint32_t channel_id) +{ + FASSERT(instance_p); + FASSERT_MSG(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN, "Invalid GDMA channel id."); + + FGdma *ctrl_p = &instance_p->ctrl; + FError err = FFREERTOS_GDMA_OK; + + err = FGdmaOsTakeSema(instance_p->locker); + if (FFREERTOS_GDMA_OK != err) { - FMempFree(memp, chan_os->bdl_list); - chan_os->bdl_list = NULL; + FGDMA_ERROR("Mutex instance_p->locker is occupied."); + goto err_exit; } - /* deallocate channel */ - err = FGdmaDellocateChan(&chan_os->chan); - if (FGDMA_SUCCESS != err) + err = FGdmaChanAbort(ctrl_p, channel_id); + if (err != FFREERTOS_GDMA_OK) { - FGDMA_ERROR("Dellocate chan %d failed.", chan_id); + FGDMA_ERROR("GDMA abort failed."); + goto err_exit; } err_exit: - FGdmaOsGiveSema(instance->locker); + FGdmaOsGiveSema(instance_p->locker); return err; } -FError FFreeRTOSGdmaStart(FFreeRTOSGdma *const instance, u32 chan_id) +FError FFreeRTOSGdmaChanDeconfigure(FFreeRTOSGdma *const instance_p, uint32_t channel_id) { - FASSERT(instance); - FGdma *const ctrl = &instance->ctrl; + FASSERT(instance_p); + FASSERT_MSG(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN, "Invalid GDMA channel id."); + + FGdma *ctrl_p = &instance_p->ctrl; FError err = FFREERTOS_GDMA_OK; - FFreeRTOSGdmaChan *chan_os = &instance->chan[chan_id]; + FMemp *memp = &instance_p->memp; - err = FGdmaOsTakeSema(instance->locker); + err = FGdmaOsTakeSema(instance_p->locker); if (FFREERTOS_GDMA_OK != err) { - return err; + FGDMA_ERROR("Mutex instance_p->locker is occupied."); + goto err_exit; } - err = FGdmaBDLTransfer(&chan_os->chan); /* start transfer of each channel */ - if (FGDMA_SUCCESS != err) + /* free dynamic memroy allocated for BDL desciptor list */ + if (channel_first_desc_addr[channel_id]) { - goto err_exit; + FMempFree(memp, channel_first_desc_addr[channel_id]); + channel_first_desc_addr[channel_id] = NULL; } - /* you may wait memcpy end in other task */ + /* deconfigure GDMA channel */ + err = FGdmaChanDeconfigure(ctrl_p, channel_id); + if (FGDMA_SUCCESS != err) + { + FGDMA_ERROR("Deconfigure GDMA channel-%d failed.", channel_id); + } err_exit: - FGdmaOsGiveSema(instance->locker); + FGdmaOsGiveSema(instance_p->locker); return err; } \ No newline at end of file diff --git a/drivers/dma/fgdma/fgdma_os.h b/drivers/dma/fgdma/fgdma_os.h index cd5e7b3931510ed3327f0b14b9101b1140f3ef2a..9e7009bb98163715c80959cb96b981e5ffeb02bf 100644 --- a/drivers/dma/fgdma/fgdma_os.h +++ b/drivers/dma/fgdma/fgdma_os.h @@ -17,9 +17,10 @@ * Description:  This file is for providing function related definitions of gdma driver used in FreeRTOS. * * Modify History: - * Ver   Who        Date         Changes - * ----- ------     --------    -------------------------------------- - * 1.0 zhugengyu 2022/7/27 init commit + * Ver    Who         Date         Changes + * -----  ------      --------     -------------------------------------- + * 1.0 zhugengyu 2022/7/27 init commit + * 2.0 liqiaozhong 2023/11/10 synchronous update with standalone sdk */ #ifndef FGDMA_OS_H #define FGDMA_OS_H @@ -38,46 +39,50 @@ extern "C" #endif #define FFREERTOS_GDMA_OK FT_SUCCESS -#define FFREERTOS_GDMA_NOT_INIT FT_CODE_ERR(ErrModPort, ErrGdma, 0) -#define FFREERTOS_GDMA_SEMA_ERR FT_CODE_ERR(ErrModPort, ErrGdma, 1) -#define FFREERTOS_GDMA_ALREADY_INIT FT_CODE_ERR(ErrModPort, ErrGdma, 2) -#define FFREERTOS_GDMA_ALLOCATE_FAIL FT_CODE_ERR(ErrModPort, ErrGdma, 3) -#define FFREERTOS_GDMA_MEMCPY_FAIL FT_CODE_ERR(ErrModPort, ErrGdma, 4) +#define FFREERTOS_GDMA_COMMON_ERR FT_CODE_ERR(ErrModPort, ErrGdma, 0) +#define FFREERTOS_GDMA_NOT_INIT FT_CODE_ERR(ErrModPort, ErrGdma, 1) +#define FFREERTOS_GDMA_SEMA_ERR FT_CODE_ERR(ErrModPort, ErrGdma, 2) +#define FFREERTOS_GDMA_ALREADY_INIT FT_CODE_ERR(ErrModPort, ErrGdma, 3) +#define FFREERTOS_GDMA_ALLOCATE_FAIL FT_CODE_ERR(ErrModPort, ErrGdma, 4) +#define FFREERTOS_GDMA_MEMCPY_FAIL FT_CODE_ERR(ErrModPort, ErrGdma, 5) #define FFREERTOS_GDMA_IRQ_PRIORITY IRQ_PRIORITY_VALUE_12 +#define FFREERTOS_GDMA_NUM_OF_CHAN FGDMA_NUM_OF_CHAN /**************************** Type Definitions *******************************/ - -typedef struct +typedef enum { - FGdmaChan chan; - FGdmaBdlDesc *bdl_list; /* descriptor of every chan, dynamic allocated */ -} FFreeRTOSGdmaChan; /* instance of gdma channel in FreeRTOS */ + FFREERTOS_GDMA_CHAN_EVT_BDL_END, /* one BDL descriptor transfer end */ + FFREERTOS_GDMA_CHAN_EVT_TRANS_END, /* channel transfer end */ + FFREERTOS_GDMA_CHAN_EVT_BUSY, /* channel is still transferring */ -typedef struct + FFREERTOS_GDMA_CHAN_NUM_OF_EVT +} FFreeRTOSGdmaChanEvtType; /* FreeRTOS GDMA channel event */ + +typedef enum { - FGdma ctrl; - SemaphoreHandle_t locker; - FFreeRTOSGdmaChan chan[FGDMA_NUM_OF_CHAN]; - FMemp memp; /* instance of memory pool */ - u8 memp_buf[SZ_16K]; /* buffer used to support dynamic memory */ -} FFreeRTOSGdma; /* instance of gdma in FreeRTOS */ + FFREERTOS_GDMA_OPER_DIRECT = 0, /* direct mode */ + FFREERTOS_GDMA_OPER_BDL /* BDL mode */ +} FFreeRTOSGdmaChanMode; /* FreeRTOS GDMA channel mode */ + +typedef void (*FreeRTOSGdmaChanEvtHandler)(uint32_t channel_id, void *arg); typedef struct { - u8 *src_buf; /* src memory buffer */ - u8 *dst_buf; /* dst memory buffer */ - fsize_t data_len; /* length of src & dst memory buffer */ -} FFreeRTOSGdmaTranscation; /* config of one memcpy transaction */ + FGdma ctrl; + SemaphoreHandle_t locker; + FMemp memp; /* instance of memory pool */ + uint8_t memp_buf[SZ_16K]; /* buffer used to support dynamic memory */ + FreeRTOSGdmaChanEvtHandler os_evt_handler[FGDMA_NUM_OF_CHAN][FFREERTOS_GDMA_CHAN_NUM_OF_EVT]; + void *os_evt_handler_arg[FGDMA_NUM_OF_CHAN][FFREERTOS_GDMA_CHAN_NUM_OF_EVT]; +} FFreeRTOSGdma; /* GDMA instance in FreeRTOS */ typedef struct { - FFreeRTOSGdmaTranscation *trans; /* list of transcations */ - u32 valid_trans_num; /* num of transcations can be used in request */ - u32 total_trans_num; /* length of transcation buffer */ - FGdmaChanEvtHandler req_done_handler; /* callback for request done */ - void *req_done_args; -} FFreeRTOSGdmaRequest; /* config of one memcpy request, may include multiple transaction */ - + FFreeRTOSGdmaChanMode trans_mode; /* GDMA channel mode: direct or BDL */ + uintptr_t src_addr; /* GDMA transfer source address - physical address */ + uintptr_t dst_addr; /* GDMA transfer destination address - physical address */ + size_t trans_length; /* GDMA transfer data length */ +} FFreeRTOSGdmaChanCfg; /* GDMA channel config in FreeRTOS */ /************************** Variable Definitions *****************************/ /***************** Macros (Inline Functions) Definitions *********************/ @@ -85,21 +90,31 @@ typedef struct /************************** Function Prototypes ******************************/ /*****************************************************************************/ -/* init and get gdma instance */ -FFreeRTOSGdma *FFreeRTOSGdmaInit(u32 instance_id); +/* GDMA ctrl(controller) init function */ +FFreeRTOSGdma *FFreeRTOSGdmaInit(uint32_t instance_id); + +/* GDMA instance deinit function */ +FError FFreeRTOSGdmaDeInit(FFreeRTOSGdma *const instance_p); -/* deinit gdma instance */ -FError FFreeRTOSGdmaDeInit(FFreeRTOSGdma *const instance); +/* GDMA channenl configure function */ +FError FFreeRTOSGdmaChanConfigure(FFreeRTOSGdma *const instance_p, + uint32_t channel_id, + FFreeRTOSGdmaChanCfg const *os_channel_config_p); -/* start gdma transfer by request */ -FError FFreeRTOSGdmaSetupChannel(FFreeRTOSGdma *const instance, u32 chan_id, const FFreeRTOSGdmaRequest *req); +/* GDMA channel transfer start function */ +void FFreeRTOSGdmaChanStart(FFreeRTOSGdma *const instance_p, uint32_t channel_id); -/* revoke setup of allocated channel */ -FError FFreeRTOSGdmaRevokeChannel(FFreeRTOSGdma *const instance, u32 chan_id); +/* GDMA channel stop function */ +FError FFreeRTOSGdmaChanStop(FFreeRTOSGdma *const instance_p, uint32_t channel_id); -/* start up dma transfer */ -FError FFreeRTOSGdmaStart(FFreeRTOSGdma *const instance, u32 chan_id); +/* GDMA channel deconfigure function */ +FError FFreeRTOSGdmaChanDeconfigure(FFreeRTOSGdma *const instance_p, uint32_t channel_id); +void FFreeRTOSGdmaChanRegisterEvtHandler(FFreeRTOSGdma *const instance_p, + uint32_t channel_id, + FFreeRTOSGdmaChanEvtType evt, + FreeRTOSGdmaChanEvtHandler os_evt_handler, + void *os_evt_handler_arg); #ifdef __cplusplus } diff --git a/drivers/pwm/fpwm_os.c b/drivers/pwm/fpwm_os.c index 84da8c4e2f685780bd49c208b19d229fdf628bc9..b418a2431abb4446297bac46ca1437185a96b2ac 100644 --- a/drivers/pwm/fpwm_os.c +++ b/drivers/pwm/fpwm_os.c @@ -154,11 +154,11 @@ static FError FFreeRTOSPwmControl(FFreeRTOSPwm *os_pwm_p, int cmd, void *arg) * @name: FFreeRTOSPwmSet * @msg: set freeRTOS pwm channel config, include div, period and pulse. * @param {FFreeRTOSPwm} *os_pwm_p, pointer to os pwm instance - * @param {FPwmChannel} channel, pwm channel + * @param {u8} channel, pwm channel * @param {FPwmVariableConfig} pwm_cfg_p, pwm config parameters, include mode and duty * @return err code information, FPWM_SUCCESS indicates success,others indicates failed */ -FError FFreeRTOSPwmSet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariableConfig *pwm_cfg_p) +FError FFreeRTOSPwmSet(FFreeRTOSPwm *os_pwm_p, u8 channel, FPwmVariableConfig *pwm_cfg_p) { FASSERT(os_pwm_p); FASSERT(os_pwm_p->pwm_semaphore != NULL); @@ -176,11 +176,11 @@ FError FFreeRTOSPwmSet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariable * @name: FFreeRTOSPwmGet * @msg: get freeRTOS pwm channel config, include div, period and pulse. * @param {FFreeRTOSPwm} *os_pwm_p, pointer to os pwm instance - * @param {FPwmChannel} channel, pwm channel + * @param {u8} channel, pwm channel * @param {FPwmVariableConfig} *pwm_cfg_p, pwm config parameters, include mode and duty * @return err code information, FPWM_SUCCESS indicates success,others indicates failed */ -FError FFreeRTOSPwmGet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariableConfig *pwm_cfg_p) +FError FFreeRTOSPwmGet(FFreeRTOSPwm *os_pwm_p, u8 channel, FPwmVariableConfig *pwm_cfg_p) { FASSERT(os_pwm_p); FASSERT(os_pwm_p->pwm_semaphore != NULL); @@ -202,11 +202,11 @@ FError FFreeRTOSPwmGet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariable * @name: FFreeRTOSPwmEnable * @msg: enable or disable freeRTOS pwm channel output * @param {FFreeRTOSPwm} *os_pwm_p, pointer to os pwm instance - * @param {FPwmChannel} channel, pwm channel + * @param {u8} channel, pwm channel * @param {boolean} state, TRUE-enable, FALSE-disable * @return err code information, FPWM_SUCCESS indicates success,others indicates failed */ -FError FFreeRTOSPwmEnable(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, boolean state) +FError FFreeRTOSPwmEnable(FFreeRTOSPwm *os_pwm_p, u8 channel, boolean state) { FASSERT(os_pwm_p); FASSERT(os_pwm_p->pwm_semaphore != NULL); @@ -274,11 +274,11 @@ FError FFreeRTOSPwmDbGet(FFreeRTOSPwm *os_pwm_p, FPwmDbVariableConfig *db_cfg_p) * @name: FFreeRTOSPwmPulseSet * @msg: set freeRTOS pwm channel pulse. * @param {FFreeRTOSPwm} *os_pwm_p, pointer to os pwm instance - * @param {FPwmChannel} channel, pwm channel + * @param {u8} channel, pwm channel * @param {u16} pulse, pwm pulse to set * @return err code information, FPWM_SUCCESS indicates success,others indicates failed */ -FError FFreeRTOSPwmPulseSet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, u16 pulse) +FError FFreeRTOSPwmPulseSet(FFreeRTOSPwm *os_pwm_p, u8 channel, u16 pulse) { FASSERT(os_pwm_p); FASSERT(os_pwm_p->pwm_semaphore != NULL); diff --git a/drivers/pwm/fpwm_os.h b/drivers/pwm/fpwm_os.h index 0344d17e9aeb1eeff754f58db41b7f021c7b6b95..45a96f399a7e9b7c13613468c65ae2f57207fd9b 100644 --- a/drivers/pwm/fpwm_os.h +++ b/drivers/pwm/fpwm_os.h @@ -71,13 +71,13 @@ FFreeRTOSPwm *FFreeRTOSPwmInit(u32 instance_id); FError FFreeRTOSPwmDeinit(FFreeRTOSPwm *os_pwm_p); /* pwm channel enable or disable */ -FError FFreeRTOSPwmEnable(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, boolean state); +FError FFreeRTOSPwmEnable(FFreeRTOSPwm *os_pwm_p, u8 channel, boolean state); /* set pwm channel config */ -FError FFreeRTOSPwmSet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariableConfig *pwm_cfg_p); +FError FFreeRTOSPwmSet(FFreeRTOSPwm *os_pwm_p, u8 channel, FPwmVariableConfig *pwm_cfg_p); /* get pwm channel config */ -FError FFreeRTOSPwmGet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, FPwmVariableConfig *pwm_cfg_p); +FError FFreeRTOSPwmGet(FFreeRTOSPwm *os_pwm_p, u8 channel, FPwmVariableConfig *pwm_cfg_p); /* set pwm db config */ FError FFreeRTOSPwmDbSet(FFreeRTOSPwm *os_pwm_p, FPwmDbVariableConfig *db_cfg_p); @@ -86,7 +86,7 @@ FError FFreeRTOSPwmDbSet(FFreeRTOSPwm *os_pwm_p, FPwmDbVariableConfig *db_cfg_p) FError FFreeRTOSPwmDbGet(FFreeRTOSPwm *os_pwm_p, FPwmDbVariableConfig *db_cfg_p); /* set pwm channel pulse */ -FError FFreeRTOSPwmPulseSet(FFreeRTOSPwm *os_pwm_p, FPwmChannel channel, u16 pulse); +FError FFreeRTOSPwmPulseSet(FFreeRTOSPwm *os_pwm_p, u8 channel, u16 pulse); #ifdef __cplusplus } diff --git a/drivers/wdt/fwdt_os.c b/drivers/wdt/fwdt_os.c index b17ac8ccbcb28eaa462f8c8b177463f217b13378..b05955b21354f4fe8986cbe1afb79e3a4247e1d1 100644 --- a/drivers/wdt/fwdt_os.c +++ b/drivers/wdt/fwdt_os.c @@ -127,10 +127,6 @@ FError FFreeRTOSWdtControl(FFreeRTOSWdt *os_wdt_p, int cmd, void *args) } break; - case FREERTOS_WDT_CTRL_GET_TIMELEFT: - *((u32 *)args) = FWdtGetTimeleft(pctrl); - break; - case FREERTOS_WDT_CTRL_KEEPALIVE: ret = FWdtRefresh(pctrl); if (FWDT_SUCCESS != ret) diff --git a/drivers/wdt/fwdt_os.h b/drivers/wdt/fwdt_os.h index dd281199342b2fd90f8e03e1aaec342f0dd7a419..be4cea01e47011632cc06da93e80611630386219 100644 --- a/drivers/wdt/fwdt_os.h +++ b/drivers/wdt/fwdt_os.h @@ -44,7 +44,7 @@ extern "C" #define FREERTOS_WDT_CTRL_GET_TIMEOUT (1) /* get timeout(in seconds) */ #define FREERTOS_WDT_CTRL_SET_TIMEOUT (2) /* set timeout(in seconds) */ -#define FREERTOS_WDT_CTRL_GET_TIMELEFT (3) /* get the left time before reboot(in seconds) */ + #define FREERTOS_WDT_CTRL_KEEPALIVE (4) /* refresh watchdog */ #define FREERTOS_WDT_CTRL_START (5) /* start watchdog */ #define FREERTOS_WDT_CTRL_STOP (6) /* stop watchdog */ diff --git a/example/network/lwip_startup/configs/d2000_aarch64_test_lwip_startup.config b/example/network/lwip_startup/configs/d2000_aarch64_test_lwip_startup.config index 1203c1f6e8e6b9700809ecc8474038e9660d6a5d..ad0ae4842c3c76a62e3ef36448aae9e5e44d42fc 100644 --- a/example/network/lwip_startup/configs/d2000_aarch64_test_lwip_startup.config +++ b/example/network/lwip_startup/configs/d2000_aarch64_test_lwip_startup.config @@ -28,13 +28,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -158,6 +152,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -197,7 +192,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -324,6 +320,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -561,7 +558,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -572,10 +568,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -595,4 +593,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/e2000d_aarch32_demo_lwip_startup.config b/example/network/lwip_startup/configs/e2000d_aarch32_demo_lwip_startup.config index 0a036ad4e30c8e47ffb8e4c7c4131c7e5f1610f8..9e246614866e8a3a6eeb1a6c1ebc4c1051ced9dd 100644 --- a/example/network/lwip_startup/configs/e2000d_aarch32_demo_lwip_startup.config +++ b/example/network/lwip_startup/configs/e2000d_aarch32_demo_lwip_startup.config @@ -32,13 +32,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -169,6 +171,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -208,7 +211,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -339,6 +343,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -576,7 +581,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -587,10 +591,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -610,4 +616,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/e2000d_aarch64_demo_lwip_startup.config b/example/network/lwip_startup/configs/e2000d_aarch64_demo_lwip_startup.config index 1fb92e0d773aace5d1cb9d89db0e380506d948b8..3dc11995f4bde085dd4ef0ce394420e2e27e76cc 100644 --- a/example/network/lwip_startup/configs/e2000d_aarch64_demo_lwip_startup.config +++ b/example/network/lwip_startup/configs/e2000d_aarch64_demo_lwip_startup.config @@ -28,13 +28,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -171,6 +165,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -210,7 +205,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -337,6 +333,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -574,7 +571,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -585,10 +581,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -608,4 +606,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/e2000q_aarch32_demo_lwip_startup.config b/example/network/lwip_startup/configs/e2000q_aarch32_demo_lwip_startup.config index b9366526682612134e6b1b6165f8d1383333a7e0..ea4a3e005caea343631697f1db3644b5195c5802 100644 --- a/example/network/lwip_startup/configs/e2000q_aarch32_demo_lwip_startup.config +++ b/example/network/lwip_startup/configs/e2000q_aarch32_demo_lwip_startup.config @@ -32,13 +32,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -168,6 +170,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -207,7 +210,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -338,6 +342,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -575,7 +580,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -586,10 +590,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -609,4 +615,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/e2000q_aarch64_demo_lwip_startup.config b/example/network/lwip_startup/configs/e2000q_aarch64_demo_lwip_startup.config index c52f20ccd46b41e082f010c535dbf094f5c7baf6..64485966b888c5de7695dfa2d6329b357acd5ac8 100644 --- a/example/network/lwip_startup/configs/e2000q_aarch64_demo_lwip_startup.config +++ b/example/network/lwip_startup/configs/e2000q_aarch64_demo_lwip_startup.config @@ -28,13 +28,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -170,6 +164,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -209,7 +204,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -336,6 +332,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -573,7 +570,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -584,10 +580,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -607,4 +605,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/ft2004_aarch32_dsk_lwip_startup.config b/example/network/lwip_startup/configs/ft2004_aarch32_dsk_lwip_startup.config index e2f9cab82878cca31ff0c04a244344129f217403..e8ce8d1994b40e65389f90b718a965ebc87e1994 100644 --- a/example/network/lwip_startup/configs/ft2004_aarch32_dsk_lwip_startup.config +++ b/example/network/lwip_startup/configs/ft2004_aarch32_dsk_lwip_startup.config @@ -32,13 +32,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -156,6 +158,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -195,7 +198,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -326,6 +330,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -563,7 +568,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -574,10 +578,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -597,4 +603,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/ft2004_aarch64_dsk_lwip_startup.config b/example/network/lwip_startup/configs/ft2004_aarch64_dsk_lwip_startup.config index 98904a8daf290dda70f2e85a2a5ff162fe678d68..adae2353e520d384f80e70ec57db2131a1206e4a 100644 --- a/example/network/lwip_startup/configs/ft2004_aarch64_dsk_lwip_startup.config +++ b/example/network/lwip_startup/configs/ft2004_aarch64_dsk_lwip_startup.config @@ -28,13 +28,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -158,6 +152,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -197,7 +192,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -324,6 +320,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -561,7 +558,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -572,10 +568,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -595,4 +593,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/phytiumpi_aarch32_firefly_lwip_startup.config b/example/network/lwip_startup/configs/phytiumpi_aarch32_firefly_lwip_startup.config index 549521908358e8b80c554fc690ef78d7666bf152..38493769632600e6adc7dc7f581505e9035275c7 100644 --- a/example/network/lwip_startup/configs/phytiumpi_aarch32_firefly_lwip_startup.config +++ b/example/network/lwip_startup/configs/phytiumpi_aarch32_firefly_lwip_startup.config @@ -32,13 +32,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -167,6 +169,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -206,7 +209,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -337,6 +341,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -574,7 +579,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -585,10 +589,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -608,4 +614,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/lwip_startup/configs/phytiumpi_aarch64_firefly_lwip_startup.config b/example/network/lwip_startup/configs/phytiumpi_aarch64_firefly_lwip_startup.config index c9c16e4691c9f0c560a858163bf3164f64b5e176..7d9dc680d06afcedc55351599c905ef1372f46f0 100644 --- a/example/network/lwip_startup/configs/phytiumpi_aarch64_firefly_lwip_startup.config +++ b/example/network/lwip_startup/configs/phytiumpi_aarch64_firefly_lwip_startup.config @@ -28,13 +28,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/network/lwip_startup/sdkconfig b/example/network/lwip_startup/sdkconfig index c8ff6e4b6dd32e5decb62c9bcb15743350f5321f..7d9dc680d06afcedc55351599c905ef1372f46f0 100644 --- a/example/network/lwip_startup/sdkconfig +++ b/example/network/lwip_startup/sdkconfig @@ -17,8 +17,8 @@ CONFIG_ARCH_NAME="armv8" # # Arm architecture configuration # -# CONFIG_ARCH_ARMV8_AARCH64 is not set -CONFIG_ARCH_ARMV8_AARCH32=y +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set # # Compiler configuration @@ -26,46 +26,40 @@ CONFIG_ARCH_ARMV8_AARCH32=y CONFIG_ARM_GCC_SELECT=y # CONFIG_ARM_CLANG_SELECT is not set CONFIG_TOOLCHAIN_NAME="gcc" -CONFIG_TARGET_ARMV8_AARCH32=y -CONFIG_ARCH_EXECUTION_STATE="aarch32" - -# -# Fpu configuration -# -CONFIG_CRYPTO_NEON_FP_ARMV8=y -# CONFIG_VFPV4 is not set -# CONFIG_VFPV4_D16 is not set -# CONFIG_VFPV3 is not set -# CONFIG_VFPV3_D16 is not set -CONFIG_ARM_MFPU="crypto-neon-fp-armv8" -CONFIG_MFLOAT_ABI_HARD=y -# CONFIG_MFLOAT_ABI_SOFTFP is not set -CONFIG_ARM_MFLOAT_ABI="hard" -# end of Fpu configuration +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set # end of Compiler configuration CONFIG_USE_CACHE=y -# CONFIG_USE_L3CACHE is not set CONFIG_USE_MMU=y -CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# CONFIG_BOOT_WITH_FLUSH_CACHE is not set +# CONFIG_MMU_DEBUG_PRINTS is not set # end of Arm architecture configuration # end of Arch configuration # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_PHYTIUMPI=y # CONFIG_TARGET_E2000Q is not set # CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set -CONFIG_TARGET_D2000=y -CONFIG_SOC_NAME="d2000" -CONFIG_SOC_CORE_NUM=8 +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y # CONFIG_USE_SPINLOCK is not set CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set @@ -75,12 +69,23 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_BOARD_NAME="test" -CONFIG_D2000_TEST_BOARD=y +CONFIG_BOARD_NAME="firefly" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y # # IO mux configuration when board start up # +# end of IO mux configuration when board start up + # CONFIG_CUS_DEMO_BOARD is not set # @@ -117,8 +122,8 @@ CONFIG_INTERRUPT_ROLE_MASTER=y # Drivers configuration # CONFIG_USE_IOMUX=y -CONFIG_ENABLE_IOCTRL=y -# CONFIG_ENABLE_IOPAD is not set +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y # CONFIG_USE_SPI is not set # CONFIG_USE_QSPI is not set CONFIG_USE_SERIAL=y @@ -135,10 +140,10 @@ CONFIG_USE_ETH=y # # Eth Configuration # -# CONFIG_ENABLE_FXMAC is not set -CONFIG_ENABLE_FGMAC=y -CONFIG_FGMAC_PHY_COMMON=y -# CONFIG_FGMAC_PHY_AR803X is not set +CONFIG_ENABLE_FXMAC=y +# CONFIG_ENABLE_FGMAC is not set +CONFIG_FXMAC_PHY_COMMON=y +# CONFIG_FXMAC_PHY_YT is not set # end of Eth Configuration # CONFIG_USE_CAN is not set @@ -212,12 +217,8 @@ CONFIG_DEFAULT_LINKER_SCRIPT=y CONFIG_IMAGE_LOAD_ADDRESS=0x80100000 CONFIG_IMAGE_MAX_LENGTH=0x1000000 CONFIG_HEAP_SIZE=1 -CONFIG_SVC_STACK_SIZE=0x1000 -CONFIG_SYS_STACK_SIZE=0x1000 -CONFIG_IRQ_STACK_SIZE=0x1000 -CONFIG_ABORT_STACK_SIZE=0x1000 -CONFIG_FIQ_STACK_SIZE=0x1000 -CONFIG_UNDEF_STACK_SIZE=0x1000 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 # end of Linker Options # end of Build setup @@ -252,8 +253,8 @@ CONFIG_FREERTOS_USE_UART=y # # Freertos Eth Drivers # -# CONFIG_FREERTOS_USE_XMAC is not set -CONFIG_FREERTOS_USE_GMAC=y +CONFIG_FREERTOS_USE_XMAC=y +# CONFIG_FREERTOS_USE_GMAC is not set # end of Freertos Eth Drivers # @@ -328,8 +329,8 @@ CONFIG_USE_LWIP=y # # LWIP Port Configuration # -# CONFIG_LWIP_FXMAC is not set -CONFIG_LWIP_FGMAC=y +CONFIG_LWIP_FXMAC=y +# CONFIG_LWIP_FGMAC is not set # CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration diff --git a/example/network/lwip_startup/sdkconfig.h b/example/network/lwip_startup/sdkconfig.h index 06bbc5663ccf86eafade36de3eb21810b3f0f3e1..031925cf4ecc05a7658bd8d88d8b7da641e10bd6 100644 --- a/example/network/lwip_startup/sdkconfig.h +++ b/example/network/lwip_startup/sdkconfig.h @@ -15,51 +15,46 @@ /* Arm architecture configuration */ -/* CONFIG_ARCH_ARMV8_AARCH64 is not set */ -#define CONFIG_ARCH_ARMV8_AARCH32 +#define CONFIG_ARCH_ARMV8_AARCH64 +/* CONFIG_ARCH_ARMV8_AARCH32 is not set */ /* Compiler configuration */ #define CONFIG_ARM_GCC_SELECT /* CONFIG_ARM_CLANG_SELECT is not set */ #define CONFIG_TOOLCHAIN_NAME "gcc" -#define CONFIG_TARGET_ARMV8_AARCH32 -#define CONFIG_ARCH_EXECUTION_STATE "aarch32" - -/* Fpu configuration */ - -#define CONFIG_CRYPTO_NEON_FP_ARMV8 -/* CONFIG_VFPV4 is not set */ -/* CONFIG_VFPV4_D16 is not set */ -/* CONFIG_VFPV3 is not set */ -/* CONFIG_VFPV3_D16 is not set */ -#define CONFIG_ARM_MFPU "crypto-neon-fp-armv8" -#define CONFIG_MFLOAT_ABI_HARD -/* CONFIG_MFLOAT_ABI_SOFTFP is not set */ -#define CONFIG_ARM_MFLOAT_ABI "hard" -/* end of Fpu configuration */ +#define CONFIG_TARGET_ARMV8_AARCH64 +#define CONFIG_ARCH_EXECUTION_STATE "aarch64" +#define CONFIG_ARM_NEON +#define CONFIG_ARM_CRC +#define CONFIG_ARM_CRYPTO +#define CONFIG_ARM_FLOAT_POINT +/* CONFIG_GCC_CODE_MODEL_TINY is not set */ +#define CONFIG_GCC_CODE_MODEL_SMALL +/* CONFIG_GCC_CODE_MODEL_LARGE is not set */ /* end of Compiler configuration */ #define CONFIG_USE_CACHE -/* CONFIG_USE_L3CACHE is not set */ #define CONFIG_USE_MMU -#define CONFIG_USE_AARCH64_L1_TO_AARCH32 +/* CONFIG_BOOT_WITH_FLUSH_CACHE is not set */ +/* CONFIG_MMU_DEBUG_PRINTS is not set */ /* end of Arm architecture configuration */ /* end of Arch configuration */ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ +#define CONFIG_TARGET_PHYTIUMPI /* CONFIG_TARGET_E2000Q is not set */ /* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ -#define CONFIG_TARGET_D2000 -#define CONFIG_SOC_NAME "d2000" -#define CONFIG_SOC_CORE_NUM 8 +/* CONFIG_TARGET_D2000 is not set */ +#define CONFIG_SOC_NAME "phytiumpi" +#define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 #define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 #define CONFIG_F64BIT_MEMORY_LENGTH 0x800000000 +#define CONFIG_TARGET_E2000 /* CONFIG_USE_SPINLOCK is not set */ #define CONFIG_DEFAULT_DEBUG_PRINT_UART1 /* CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set */ @@ -68,11 +63,21 @@ /* Board Configuration */ -#define CONFIG_BOARD_NAME "test" -#define CONFIG_D2000_TEST_BOARD +#define CONFIG_BOARD_NAME "firefly" +/* CONFIG_USE_SPI_IOPAD is not set */ +/* CONFIG_USE_GPIO_IOPAD is not set */ +/* CONFIG_USE_CAN_IOPAD is not set */ +/* CONFIG_USE_QSPI_IOPAD is not set */ +/* CONFIG_USE_PWM_IOPAD is not set */ +/* CONFIG_USE_MIO_IOPAD is not set */ +/* CONFIG_USE_TACHO_IOPAD is not set */ +/* CONFIG_USE_UART_IOPAD is not set */ +/* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ +#define CONFIG_FIREFLY_DEMO_BOARD /* IO mux configuration when board start up */ +/* end of IO mux configuration when board start up */ /* CONFIG_CUS_DEMO_BOARD is not set */ /* Build project name */ @@ -105,8 +110,8 @@ /* Drivers configuration */ #define CONFIG_USE_IOMUX -#define CONFIG_ENABLE_IOCTRL -/* CONFIG_ENABLE_IOPAD is not set */ +/* CONFIG_ENABLE_IOCTRL is not set */ +#define CONFIG_ENABLE_IOPAD /* CONFIG_USE_SPI is not set */ /* CONFIG_USE_QSPI is not set */ #define CONFIG_USE_SERIAL @@ -120,10 +125,10 @@ /* Eth Configuration */ -/* CONFIG_ENABLE_FXMAC is not set */ -#define CONFIG_ENABLE_FGMAC -#define CONFIG_FGMAC_PHY_COMMON -/* CONFIG_FGMAC_PHY_AR803X is not set */ +#define CONFIG_ENABLE_FXMAC +/* CONFIG_ENABLE_FGMAC is not set */ +#define CONFIG_FXMAC_PHY_COMMON +/* CONFIG_FXMAC_PHY_YT is not set */ /* end of Eth Configuration */ /* CONFIG_USE_CAN is not set */ /* CONFIG_USE_I2C is not set */ @@ -190,12 +195,8 @@ #define CONFIG_IMAGE_LOAD_ADDRESS 0x80100000 #define CONFIG_IMAGE_MAX_LENGTH 0x1000000 #define CONFIG_HEAP_SIZE 1 -#define CONFIG_SVC_STACK_SIZE 0x1000 -#define CONFIG_SYS_STACK_SIZE 0x1000 -#define CONFIG_IRQ_STACK_SIZE 0x1000 -#define CONFIG_ABORT_STACK_SIZE 0x1000 -#define CONFIG_FIQ_STACK_SIZE 0x1000 -#define CONFIG_UNDEF_STACK_SIZE 0x1000 +#define CONFIG_STACK_SIZE 0x400 +#define CONFIG_FPU_STACK_SIZE 0x1000 /* end of Linker Options */ /* end of Build setup */ @@ -223,8 +224,8 @@ /* Freertos Eth Drivers */ -/* CONFIG_FREERTOS_USE_XMAC is not set */ -#define CONFIG_FREERTOS_USE_GMAC +#define CONFIG_FREERTOS_USE_XMAC +/* CONFIG_FREERTOS_USE_GMAC is not set */ /* end of Freertos Eth Drivers */ /* Freertos Gpio Drivers */ @@ -284,8 +285,8 @@ /* LWIP Port Configuration */ -/* CONFIG_LWIP_FXMAC is not set */ -#define CONFIG_LWIP_FGMAC +#define CONFIG_LWIP_FXMAC +/* CONFIG_LWIP_FGMAC is not set */ /* CONFIG_LWIP_FSDIF is not set */ /* CONFIG_LWIP_RX_POLL is not set */ /* end of LWIP Port Configuration */ diff --git a/example/network/lwip_startup/src/lwip_test.c b/example/network/lwip_startup/src/lwip_test.c index 5fbfe50927d672047eb7fda3103771f6a208e1f0..4f6d1f3a20aeab6a55b5885449cd9d51e1ba77f0 100644 --- a/example/network/lwip_startup/src/lwip_test.c +++ b/example/network/lwip_startup/src/lwip_test.c @@ -157,7 +157,7 @@ void LwipTestCreate(void *args) /* Add network interface to the netif_list, and set it as default */ if (!LwipPortAdd(netif_p, &ipaddr, &netmask, &gw, mac_address, - (UserConfig *)args, 0)) + (UserConfig *)args)) { printf("Error adding N/W interface.\n\r"); goto failed; @@ -299,7 +299,7 @@ static int LwipDeviceSet(int argc, char *argv[]) /* close rx thread */ vPortEnterCritical(); - LwipPortStop(netif_p); + LwipPortStop(netif_p,input_config.dhcp_en); vPortFree(netif_p); vPortExitCritical(); } diff --git a/example/network/sockets/udp_multicast/configs/d2000_aarch32_test_udp_multicast.config b/example/network/sockets/udp_multicast/configs/d2000_aarch32_test_udp_multicast.config index f67fdd7272e50bb0c836e9817523f810c4301a0b..41513cccd9e62ab68b14bf3b992f7ed80dfadd25 100644 --- a/example/network/sockets/udp_multicast/configs/d2000_aarch32_test_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/d2000_aarch32_test_udp_multicast.config @@ -41,13 +41,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -165,6 +167,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -204,7 +207,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -335,6 +339,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -572,7 +577,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -583,10 +587,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -606,4 +612,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/d2000_aarch64_test_udp_multicast.config b/example/network/sockets/udp_multicast/configs/d2000_aarch64_test_udp_multicast.config index 2fd1ea2e79436a343327b0f15b611f91ce90f4fb..1a77a32c7958f497a2953bcec0c21322736212f4 100644 --- a/example/network/sockets/udp_multicast/configs/d2000_aarch64_test_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/d2000_aarch64_test_udp_multicast.config @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -167,6 +161,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -206,7 +201,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -333,6 +329,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -570,7 +567,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -581,10 +577,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -604,4 +602,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/e2000d_aarch32_demo_udp_multicast.config b/example/network/sockets/udp_multicast/configs/e2000d_aarch32_demo_udp_multicast.config index 2fcf21d07bd968c09fd19ec3c63045b1f88b5ce7..bc9a72dc8f1758d1735a05e32848c7e261d9eef4 100644 --- a/example/network/sockets/udp_multicast/configs/e2000d_aarch32_demo_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/e2000d_aarch32_demo_udp_multicast.config @@ -41,13 +41,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -178,6 +180,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -217,7 +220,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -348,6 +352,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -585,7 +590,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -596,10 +600,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -619,4 +625,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/e2000d_aarch64_demo_udp_multicast.config b/example/network/sockets/udp_multicast/configs/e2000d_aarch64_demo_udp_multicast.config index 3e41f1dfd8e63ce1019c88557000e166a0cd44a0..446adbf36a473612b6ffb10c539f6ec18b03d0c2 100644 --- a/example/network/sockets/udp_multicast/configs/e2000d_aarch64_demo_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/e2000d_aarch64_demo_udp_multicast.config @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -180,6 +174,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -219,7 +214,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -346,6 +342,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -583,7 +580,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -594,10 +590,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -617,4 +615,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/e2000q_aarch32_demo_udp_multicast.config b/example/network/sockets/udp_multicast/configs/e2000q_aarch32_demo_udp_multicast.config index 7ec0df2df547f2836e1cf139338bce7f17e8c4a2..2ac88c78c6bc36631d14a02c366fd8679d7e7c54 100644 --- a/example/network/sockets/udp_multicast/configs/e2000q_aarch32_demo_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/e2000q_aarch32_demo_udp_multicast.config @@ -41,13 +41,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -177,6 +179,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -216,7 +219,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -347,6 +351,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -584,7 +589,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -595,10 +599,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -618,4 +624,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/e2000q_aarch64_demo_udp_multicast.config b/example/network/sockets/udp_multicast/configs/e2000q_aarch64_demo_udp_multicast.config index 341fe08a05299e0f7e1cb6d6c0ca1bc844fd7329..44f9c854778ea2715460a06be3f6882e6dc863b9 100644 --- a/example/network/sockets/udp_multicast/configs/e2000q_aarch64_demo_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/e2000q_aarch64_demo_udp_multicast.config @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -179,6 +173,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -218,7 +213,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -345,6 +341,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -582,7 +579,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -593,10 +589,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -616,4 +614,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/ft2004_aarch32_dsk_udp_multicast.config b/example/network/sockets/udp_multicast/configs/ft2004_aarch32_dsk_udp_multicast.config index e2f49e3656d2468ed5d4a8ef5266cdcdd8cb7b0b..9a6268ab7b6b5bce60fa81b966677a28fdcf5f6d 100644 --- a/example/network/sockets/udp_multicast/configs/ft2004_aarch32_dsk_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/ft2004_aarch32_dsk_udp_multicast.config @@ -41,13 +41,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -165,6 +167,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -204,7 +207,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -335,6 +339,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -572,7 +577,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -583,10 +587,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -606,4 +612,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/ft2004_aarch64_dsk_udp_multicast.config b/example/network/sockets/udp_multicast/configs/ft2004_aarch64_dsk_udp_multicast.config index b31c8356a0bca30351da7a17b9e4d04bc74d63fd..26c8d65e67b3e9ef5e28d3017e8afd7efbd1840e 100644 --- a/example/network/sockets/udp_multicast/configs/ft2004_aarch64_dsk_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/ft2004_aarch64_dsk_udp_multicast.config @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -167,6 +161,7 @@ CONFIG_FGMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -206,7 +201,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -333,6 +329,7 @@ CONFIG_USE_LWIP=y # # CONFIG_LWIP_FXMAC is not set CONFIG_LWIP_FGMAC=y +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -570,7 +567,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -581,10 +577,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -604,4 +602,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/phytiumpi_aarch32_firefly_udp_multicast.config b/example/network/sockets/udp_multicast/configs/phytiumpi_aarch32_firefly_udp_multicast.config index 7de3e7295a1a021e84e673ecc552965a5838386b..0fb957c5b68c471ebb7c1f7c28f1ae23cdb56818 100644 --- a/example/network/sockets/udp_multicast/configs/phytiumpi_aarch32_firefly_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/phytiumpi_aarch32_firefly_udp_multicast.config @@ -41,13 +41,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" -CONFIG_ARM_NEON=y -CONFIG_ARCH_FPU=y +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -176,6 +178,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -215,7 +218,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -346,6 +350,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -583,7 +588,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -594,10 +598,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -617,4 +623,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/configs/phytiumpi_aarch64_firefly_udp_multicast.config b/example/network/sockets/udp_multicast/configs/phytiumpi_aarch64_firefly_udp_multicast.config index 6a9ab758da9d1c90af2f8543fb937e39de8bc84b..907c6e758aee0c83030ba7877a37859dc5637767 100644 --- a/example/network/sockets/udp_multicast/configs/phytiumpi_aarch64_firefly_udp_multicast.config +++ b/example/network/sockets/udp_multicast/configs/phytiumpi_aarch64_firefly_udp_multicast.config @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -178,6 +172,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -217,7 +212,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -344,6 +340,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -581,7 +578,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -592,10 +588,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -615,4 +613,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/sdkconfig b/example/network/sockets/udp_multicast/sdkconfig index 6a9ab758da9d1c90af2f8543fb937e39de8bc84b..907c6e758aee0c83030ba7877a37859dc5637767 100644 --- a/example/network/sockets/udp_multicast/sdkconfig +++ b/example/network/sockets/udp_multicast/sdkconfig @@ -37,13 +37,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -178,6 +172,7 @@ CONFIG_FXMAC_PHY_COMMON=y # CONFIG_USE_IPC is not set # CONFIG_USE_MEDIA is not set # CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set # end of Drivers configuration # @@ -217,7 +212,8 @@ CONFIG_DOWNGRADE_DIAG_WARNING=y # Lib # CONFIG_USE_COMPILE_CHAIN=y -# CONFIG_USB_USER_DEFINED is not set +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set # end of Lib # CONFIG_ENABLE_CXX is not set @@ -344,6 +340,7 @@ CONFIG_USE_LWIP=y # CONFIG_LWIP_FXMAC=y # CONFIG_LWIP_FGMAC is not set +# CONFIG_LWIP_FSDIF is not set # CONFIG_LWIP_RX_POLL is not set # end of LWIP Port Configuration @@ -581,7 +578,6 @@ CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y # end of Letter Shell Configuration # CONFIG_USE_AMP is not set -# CONFIG_USE_SDMMC_CMD is not set # CONFIG_USE_YMODEM is not set # CONFIG_USE_SFUD is not set CONFIG_USE_BACKTRACE=y @@ -592,10 +588,12 @@ CONFIG_USE_TLSF=y # CONFIG_USE_LVGL is not set # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # -# Kernel Configuration +# FreeRTOS Kernel Configuration # CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y CONFIG_FREERTOS_HZ=1000 @@ -615,4 +613,5 @@ CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y # CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 -# end of Kernel Configuration +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/network/sockets/udp_multicast/sdkconfig.h b/example/network/sockets/udp_multicast/sdkconfig.h index 3bf88374a501127bfb025f4bf6a432ac0f5ee75c..f74fcd8678e19c812fce3a0e1bc31eda93145c21 100644 --- a/example/network/sockets/udp_multicast/sdkconfig.h +++ b/example/network/sockets/udp_multicast/sdkconfig.h @@ -34,11 +34,7 @@ #define CONFIG_TOOLCHAIN_NAME "gcc" #define CONFIG_TARGET_ARMV8_AARCH64 #define CONFIG_ARCH_EXECUTION_STATE "aarch64" - -/* Fpu configuration */ - #define CONFIG_ARM_NEON -/* end of Fpu configuration */ #define CONFIG_ARM_CRC #define CONFIG_ARM_CRYPTO #define CONFIG_ARM_FLOAT_POINT @@ -160,6 +156,7 @@ /* CONFIG_USE_IPC is not set */ /* CONFIG_USE_MEDIA is not set */ /* CONFIG_USE_SCMI_MHU is not set */ +/* CONFIG_USE_I2S is not set */ /* end of Drivers configuration */ /* Build setup */ @@ -195,7 +192,8 @@ /* Lib */ #define CONFIG_USE_COMPILE_CHAIN -/* CONFIG_USB_USER_DEFINED is not set */ +/* CONFIG_USE_NEWLIB is not set */ +/* CONFIG_USE_USER_DEFINED is not set */ /* end of Lib */ /* CONFIG_ENABLE_CXX is not set */ @@ -298,6 +296,7 @@ #define CONFIG_LWIP_FXMAC /* CONFIG_LWIP_FGMAC is not set */ +/* CONFIG_LWIP_FSDIF is not set */ /* CONFIG_LWIP_RX_POLL is not set */ /* end of LWIP Port Configuration */ /* CONFIG_LWIP_NO_SYS is not set */ @@ -506,7 +505,6 @@ /* CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set */ /* end of Letter Shell Configuration */ /* CONFIG_USE_AMP is not set */ -/* CONFIG_USE_SDMMC_CMD is not set */ /* CONFIG_USE_YMODEM is not set */ /* CONFIG_USE_SFUD is not set */ #define CONFIG_USE_BACKTRACE @@ -517,9 +515,11 @@ /* CONFIG_USE_LVGL is not set */ /* CONFIG_USE_FREEMODBUS is not set */ /* CONFIG_USE_CHERRY_USB is not set */ +/* CONFIG_USE_FSL_SDMMC is not set */ +/* CONFIG_USE_FSL_WIFI is not set */ /* end of Third-party configuration */ -/* Kernel Configuration */ +/* FreeRTOS Kernel Configuration */ #define CONFIG_FREERTOS_OPTIMIZED_SCHEDULER #define CONFIG_FREERTOS_HZ 1000 @@ -539,6 +539,7 @@ /* CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set */ #define CONFIG_FREERTOS_TOTAL_HEAP_SIZE 10240 #define CONFIG_FREERTOS_TASK_FPU_SUPPORT 1 -/* end of Kernel Configuration */ +/* CONFIG_FREERTOS_USE_POSIX is not set */ +/* end of FreeRTOS Kernel Configuration */ #endif diff --git a/example/network/sockets/udp_multicast/src/lwip_test.c b/example/network/sockets/udp_multicast/src/lwip_test.c index 1798e76d340864be4f84248364316bf07dc8b024..a39810af7b1346df5e3db6ac20ec91a1f4b2ab5d 100644 --- a/example/network/sockets/udp_multicast/src/lwip_test.c +++ b/example/network/sockets/udp_multicast/src/lwip_test.c @@ -153,7 +153,7 @@ void LwipTestCreate(void *args) /* Add network interface to the netif_list, and set it as default */ if (!LwipPortAdd(netif_p, &ipaddr, &netmask, &gw, mac_address, - (UserConfig *)args, 0)) + (UserConfig *)args)) { printf("Error adding N/W interface.\r\n"); goto failed; @@ -295,7 +295,7 @@ static int LwipDeviceSet(int argc, char *argv[]) /* close rx thread */ vPortEnterCritical(); - LwipPortStop(netif_p); + LwipPortStop(netif_p,input_config.dhcp_en); vPortFree(netif_p); vPortExitCritical(); } diff --git a/example/peripheral/can/can/configs/d2000_aarch32_test_can.config b/example/peripheral/can/can/configs/d2000_aarch32_test_can.config index d1cc0b795435a09cd34ccb9fcbdff2aac5442c1b..290ba2ab689dd31b36e824ead2dd35d4ccd89853 100644 --- a/example/peripheral/can/can/configs/d2000_aarch32_test_can.config +++ b/example/peripheral/can/can/configs/d2000_aarch32_test_can.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -122,13 +124,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -326,6 +322,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/d2000_aarch64_test_can.config b/example/peripheral/can/can/configs/d2000_aarch64_test_can.config index fcb2c9661d7e0587149e6859acc2ca86ce3d0afc..4fd8aff9a8f88ce07833a92c57bb4c8d359e76d0 100644 --- a/example/peripheral/can/can/configs/d2000_aarch64_test_can.config +++ b/example/peripheral/can/can/configs/d2000_aarch64_test_can.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -124,13 +118,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -324,6 +312,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/e2000d_aarch32_demo_can.config b/example/peripheral/can/can/configs/e2000d_aarch32_demo_can.config index d72bd4ebe85c1d9639e76a9a50214d703e080110..9f2ba2f21d25b611b0bc7892fd17f10ec8c4d19b 100644 --- a/example/peripheral/can/can/configs/e2000d_aarch32_demo_can.config +++ b/example/peripheral/can/can/configs/e2000d_aarch32_demo_can.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -135,14 +137,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -CONFIG_FCAN_USE_CANFD=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -340,6 +335,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/e2000d_aarch64_demo_can.config b/example/peripheral/can/can/configs/e2000d_aarch64_demo_can.config index 54b2b6fe6cee70d609d01e1b69d9221de1b0b9aa..75ddcdac0cb9e34fde18c7d373d967046dae5498 100644 --- a/example/peripheral/can/can/configs/e2000d_aarch64_demo_can.config +++ b/example/peripheral/can/can/configs/e2000d_aarch64_demo_can.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -137,14 +131,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -CONFIG_FCAN_USE_CANFD=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -338,6 +325,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/e2000q_aarch32_demo_can.config b/example/peripheral/can/can/configs/e2000q_aarch32_demo_can.config index f850eba607947327e73f1589e6c53136d455fae3..a4d1de46a97e382f5d67a4fb15c3963bf152a316 100644 --- a/example/peripheral/can/can/configs/e2000q_aarch32_demo_can.config +++ b/example/peripheral/can/can/configs/e2000q_aarch32_demo_can.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -134,14 +136,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -CONFIG_FCAN_USE_CANFD=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -339,6 +334,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/e2000q_aarch64_demo_can.config b/example/peripheral/can/can/configs/e2000q_aarch64_demo_can.config index 40e601149cf36e6440e8f093df1f354105b79136..fdada5090ee33c6722b03af9e135c2a13b4fa43e 100644 --- a/example/peripheral/can/can/configs/e2000q_aarch64_demo_can.config +++ b/example/peripheral/can/can/configs/e2000q_aarch64_demo_can.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -136,14 +130,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -CONFIG_FCAN_USE_CANFD=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -337,6 +324,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/ft2004_aarch32_dsk_can.config b/example/peripheral/can/can/configs/ft2004_aarch32_dsk_can.config index 6e8aa9ed4fc76507309f6e41bd79a38f6b72ebf0..1a18a8d34d1cc5bd79abb0e6a8260a71c919e739 100644 --- a/example/peripheral/can/can/configs/ft2004_aarch32_dsk_can.config +++ b/example/peripheral/can/can/configs/ft2004_aarch32_dsk_can.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -122,13 +124,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -326,6 +322,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/configs/ft2004_aarch64_dsk_can.config b/example/peripheral/can/can/configs/ft2004_aarch64_dsk_can.config index d14f134be89c87af70666fb21aadca8e27348087..a6d219ace1a92b18fc41dbf2a2b70f3b40f9e491 100644 --- a/example/peripheral/can/can/configs/ft2004_aarch64_dsk_can.config +++ b/example/peripheral/can/can/configs/ft2004_aarch64_dsk_can.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -124,13 +118,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set @@ -324,6 +312,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/can/can/sdkconfig b/example/peripheral/can/can/sdkconfig index 75ddcdac0cb9e34fde18c7d373d967046dae5498..a6d219ace1a92b18fc41dbf2a2b70f3b40f9e491 100644 --- a/example/peripheral/can/can/sdkconfig +++ b/example/peripheral/can/can/sdkconfig @@ -30,6 +30,7 @@ CONFIG_GCC_CODE_MODEL_SMALL=y # end of Compiler configuration CONFIG_USE_CACHE=y +# CONFIG_USE_L3CACHE is not set CONFIG_USE_MMU=y # CONFIG_BOOT_WITH_FLUSH_CACHE is not set # CONFIG_MMU_DEBUG_PRINTS is not set @@ -41,18 +42,16 @@ CONFIG_USE_MMU=y # # CONFIG_TARGET_PHYTIUMPI is not set # CONFIG_TARGET_E2000Q is not set -CONFIG_TARGET_E2000D=y +# CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set -# CONFIG_TARGET_FT2004 is not set +CONFIG_TARGET_FT2004=y # CONFIG_TARGET_D2000 is not set -CONFIG_SOC_NAME="e2000" -CONFIG_TARGET_TYPE_NAME="d" -CONFIG_SOC_CORE_NUM=2 +CONFIG_SOC_NAME="ft2004" +CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 -CONFIG_TARGET_E2000=y # CONFIG_USE_SPINLOCK is not set CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set @@ -62,24 +61,12 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_E2000D_DEMO_BOARD=y -CONFIG_BOARD_NAME="demo" +CONFIG_BOARD_NAME="dsk" +CONFIG_FT2004_DSK_BOARD=y # # IO mux configuration when board start up # -# CONFIG_USE_SPI_IOPAD is not set -# CONFIG_USE_GPIO_IOPAD is not set -# CONFIG_USE_CAN_IOPAD is not set -# CONFIG_USE_QSPI_IOPAD is not set -# CONFIG_USE_PWM_IOPAD is not set -# CONFIG_USE_ADC_IOPAD is not set -# CONFIG_USE_MIO_IOPAD is not set -# CONFIG_USE_TACHO_IOPAD is not set -# CONFIG_USE_UART_IOPAD is not set -# CONFIG_USE_THIRD_PARTY_IOPAD is not set -# end of IO mux configuration when board start up - # CONFIG_CUS_DEMO_BOARD is not set # @@ -116,8 +103,8 @@ CONFIG_INTERRUPT_ROLE_MASTER=y # Drivers configuration # CONFIG_USE_IOMUX=y -# CONFIG_ENABLE_IOCTRL is not set -CONFIG_ENABLE_IOPAD=y +CONFIG_ENABLE_IOCTRL=y +# CONFIG_ENABLE_IOPAD is not set # CONFIG_USE_SPI is not set # CONFIG_USE_QSPI is not set CONFIG_USE_SERIAL=y diff --git a/example/peripheral/can/can/sdkconfig.h b/example/peripheral/can/can/sdkconfig.h index de14fca19bcb32fbfefbd191fb7e25f7cc3b71c4..90e76eed8d790dfb34c301f92864ce009c5f7d5c 100644 --- a/example/peripheral/can/can/sdkconfig.h +++ b/example/peripheral/can/can/sdkconfig.h @@ -29,6 +29,7 @@ /* CONFIG_GCC_CODE_MODEL_LARGE is not set */ /* end of Compiler configuration */ #define CONFIG_USE_CACHE +/* CONFIG_USE_L3CACHE is not set */ #define CONFIG_USE_MMU /* CONFIG_BOOT_WITH_FLUSH_CACHE is not set */ /* CONFIG_MMU_DEBUG_PRINTS is not set */ @@ -39,18 +40,16 @@ /* CONFIG_TARGET_PHYTIUMPI is not set */ /* CONFIG_TARGET_E2000Q is not set */ -#define CONFIG_TARGET_E2000D +/* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ -/* CONFIG_TARGET_FT2004 is not set */ +#define CONFIG_TARGET_FT2004 /* CONFIG_TARGET_D2000 is not set */ -#define CONFIG_SOC_NAME "e2000" -#define CONFIG_TARGET_TYPE_NAME "d" -#define CONFIG_SOC_CORE_NUM 2 +#define CONFIG_SOC_NAME "ft2004" +#define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 #define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 #define CONFIG_F64BIT_MEMORY_LENGTH 0x800000000 -#define CONFIG_TARGET_E2000 /* CONFIG_USE_SPINLOCK is not set */ #define CONFIG_DEFAULT_DEBUG_PRINT_UART1 /* CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set */ @@ -59,22 +58,11 @@ /* Board Configuration */ -#define CONFIG_E2000D_DEMO_BOARD -#define CONFIG_BOARD_NAME "demo" +#define CONFIG_BOARD_NAME "dsk" +#define CONFIG_FT2004_DSK_BOARD /* IO mux configuration when board start up */ -/* CONFIG_USE_SPI_IOPAD is not set */ -/* CONFIG_USE_GPIO_IOPAD is not set */ -/* CONFIG_USE_CAN_IOPAD is not set */ -/* CONFIG_USE_QSPI_IOPAD is not set */ -/* CONFIG_USE_PWM_IOPAD is not set */ -/* CONFIG_USE_ADC_IOPAD is not set */ -/* CONFIG_USE_MIO_IOPAD is not set */ -/* CONFIG_USE_TACHO_IOPAD is not set */ -/* CONFIG_USE_UART_IOPAD is not set */ -/* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ -/* end of IO mux configuration when board start up */ /* CONFIG_CUS_DEMO_BOARD is not set */ /* Build project name */ @@ -107,8 +95,8 @@ /* Drivers configuration */ #define CONFIG_USE_IOMUX -/* CONFIG_ENABLE_IOCTRL is not set */ -#define CONFIG_ENABLE_IOPAD +#define CONFIG_ENABLE_IOCTRL +/* CONFIG_ENABLE_IOPAD is not set */ /* CONFIG_USE_SPI is not set */ /* CONFIG_USE_QSPI is not set */ #define CONFIG_USE_SERIAL diff --git a/example/peripheral/can/canfd/configs/e2000d_aarch32_demo_canfd.config b/example/peripheral/can/canfd/configs/e2000d_aarch32_demo_canfd.config index 14563e5862590f20a5a6e715fc97dc6212faefd5..0ab65d89657de5b7f846c6a5634ccad11a7f5a82 100644 --- a/example/peripheral/can/canfd/configs/e2000d_aarch32_demo_canfd.config +++ b/example/peripheral/can/canfd/configs/e2000d_aarch32_demo_canfd.config @@ -91,7 +91,7 @@ CONFIG_BOARD_NAME="demo" # # Build project name # -CONFIG_TARGET_NAME="can" +CONFIG_TARGET_NAME="canfd" # end of Build project name # end of Board Configuration diff --git a/example/peripheral/can/canfd/configs/e2000d_aarch64_demo_canfd.config b/example/peripheral/can/canfd/configs/e2000d_aarch64_demo_canfd.config index 81ee6ad089882a01caab0d083746f0a71a390368..9169e33165e600e373f7572faab2231d4463bee7 100644 --- a/example/peripheral/can/canfd/configs/e2000d_aarch64_demo_canfd.config +++ b/example/peripheral/can/canfd/configs/e2000d_aarch64_demo_canfd.config @@ -85,7 +85,7 @@ CONFIG_BOARD_NAME="demo" # # Build project name # -CONFIG_TARGET_NAME="can" +CONFIG_TARGET_NAME="canfd" # end of Build project name # end of Board Configuration diff --git a/example/peripheral/can/canfd/configs/e2000q_aarch32_demo_canfd.config b/example/peripheral/can/canfd/configs/e2000q_aarch32_demo_canfd.config index bb07832fa149c4ef90500c71cb1f88f5d8d0722a..f971754aa4d7cb6a232bd06420e9dec0213ea546 100644 --- a/example/peripheral/can/canfd/configs/e2000q_aarch32_demo_canfd.config +++ b/example/peripheral/can/canfd/configs/e2000q_aarch32_demo_canfd.config @@ -90,7 +90,7 @@ CONFIG_E2000Q_DEMO_BOARD=y # # Build project name # -CONFIG_TARGET_NAME="can" +CONFIG_TARGET_NAME="canfd" # end of Build project name # end of Board Configuration diff --git a/example/peripheral/can/canfd/configs/e2000q_aarch64_demo_canfd.config b/example/peripheral/can/canfd/configs/e2000q_aarch64_demo_canfd.config index 611989b3a8c7b94e4315ec5218f34fbbf8f92087..498fa08f146f26e1e866a5d283b8d8de9aa65c42 100644 --- a/example/peripheral/can/canfd/configs/e2000q_aarch64_demo_canfd.config +++ b/example/peripheral/can/canfd/configs/e2000q_aarch64_demo_canfd.config @@ -84,7 +84,7 @@ CONFIG_E2000Q_DEMO_BOARD=y # # Build project name # -CONFIG_TARGET_NAME="can" +CONFIG_TARGET_NAME="canfd" # end of Build project name # end of Board Configuration diff --git a/example/peripheral/can/canfd/sdkconfig b/example/peripheral/can/canfd/sdkconfig index 611989b3a8c7b94e4315ec5218f34fbbf8f92087..fdada5090ee33c6722b03af9e135c2a13b4fa43e 100644 --- a/example/peripheral/can/canfd/sdkconfig +++ b/example/peripheral/can/canfd/sdkconfig @@ -130,14 +130,7 @@ CONFIG_ENABLE_Pl011_UART=y # CONFIG_USE_GPIO is not set # CONFIG_USE_ETH is not set CONFIG_USE_CAN=y - -# -# CAN Configuration -# CONFIG_USE_FCAN=y -CONFIG_FCAN_USE_CANFD=y -# end of CAN Configuration - # CONFIG_USE_I2C is not set # CONFIG_USE_TIMER is not set # CONFIG_USE_MIO is not set diff --git a/example/peripheral/can/canfd/sdkconfig.h b/example/peripheral/can/canfd/sdkconfig.h index 82730984ad7235e383bc9d413d6c50bb55ad2321..b13bd08901f1dbdf44b66fdf7b06eb2fed56bb51 100644 --- a/example/peripheral/can/canfd/sdkconfig.h +++ b/example/peripheral/can/canfd/sdkconfig.h @@ -119,12 +119,7 @@ /* CONFIG_USE_GPIO is not set */ /* CONFIG_USE_ETH is not set */ #define CONFIG_USE_CAN - -/* CAN Configuration */ - #define CONFIG_USE_FCAN -#define CONFIG_FCAN_USE_CANFD -/* end of CAN Configuration */ /* CONFIG_USE_I2C is not set */ /* CONFIG_USE_TIMER is not set */ /* CONFIG_USE_MIO is not set */ diff --git a/example/peripheral/dma/gdma/README.md b/example/peripheral/dma/gdma/README.md index e15fb48c0824a241f4d02a2e0871113667a4e2a6..8774ef63a1582c9f4ebc93f251fd47d277cd3112 100644 --- a/example/peripheral/dma/gdma/README.md +++ b/example/peripheral/dma/gdma/README.md @@ -101,7 +101,7 @@ bootelf -p 0xa0100000 gdma memcpy ``` -![memcpy](./figs/memcpy.png) +![memcpy_result](./figs/memcpy_result.png) ## 3. 如何解决问题 diff --git a/example/peripheral/dma/gdma/figs/memcpy.png b/example/peripheral/dma/gdma/figs/memcpy.png deleted file mode 100644 index f58a7a0e55d2eff7e6164c4aa8067075fc4ab4fc..0000000000000000000000000000000000000000 Binary files a/example/peripheral/dma/gdma/figs/memcpy.png and /dev/null differ diff --git a/example/peripheral/dma/gdma/figs/memcpy_result.png b/example/peripheral/dma/gdma/figs/memcpy_result.png new file mode 100644 index 0000000000000000000000000000000000000000..0b7acb7842d131e2b7ab91c728266f257f6144b5 Binary files /dev/null and b/example/peripheral/dma/gdma/figs/memcpy_result.png differ diff --git a/example/peripheral/dma/gdma/src/gdma_memcpy.c b/example/peripheral/dma/gdma/src/gdma_memcpy.c index ba9e0331bc0dca7d4a55f4a691d62c513ed99cf8..487e65d36b825138b419aa6ce5a48495bb9aa718 100644 --- a/example/peripheral/dma/gdma/src/gdma_memcpy.c +++ b/example/peripheral/dma/gdma/src/gdma_memcpy.c @@ -17,12 +17,14 @@ * Description:  This files is for GDMA task implementations * * Modify History: - * Ver   Who        Date         Changes - * ----- ------     --------    -------------------------------------- - * 1.0 zhugengyu 2022/08/26 first commit + * Ver    Who         Date         Changes + * -----  ------      --------     -------------------------------------- + * 1.0 zhugengyu 2022/7/27 init commit + * 2.0 liqiaozhong 2023/11/10 synchronous update with standalone sdk */ /***************************** Include Files *********************************/ #include +#include #include "FreeRTOSConfig.h" #include "FreeRTOS.h" @@ -37,38 +39,40 @@ #include "fgdma_os.h" /************************** Constant Definitions *****************************/ +#define FGDMA_CONTROLLER_ID FGDMA0_ID #define GDMA_CHAN_TRANS_END(chan) (0x1U << (chan)) -#define GDMA_BUF_A_LEN 200U -#define GDMA_BUF_B_LEN 1024U +#define GDMA_TASKA_CHANNEL_ID 0U +#define GDMA_TASKB_CHANNEL_ID 1U +#define GDMA_TASKA_TRANS_LEN 256U +#define GDMA_TASKB_TRANS_LEN 1024U #define GDMA_WORK_TASK_NUM 2U +#define GDMA_TRANS_TIMES 3U /**************************** Type Definitions *******************************/ /************************** Variable Definitions *****************************/ -static FFreeRTOSGdma *gdma = NULL; +static FFreeRTOSGdma *gdma_instance_p = NULL; +static FFreeRTOSGdmaChanCfg os_channel_config_taska; +static FFreeRTOSGdmaChanCfg os_channel_config_taskb; static TaskHandle_t task_a = NULL; static TaskHandle_t task_b = NULL; static TimerHandle_t exit_timer = NULL; static EventGroupHandle_t chan_evt = NULL; -static xSemaphoreHandle init_locker = NULL; -static u8 src_a[GDMA_BUF_A_LEN] __attribute__((aligned(4))) = {0U}; -static u8 dst_a[GDMA_BUF_A_LEN] __attribute__((aligned(4))) = {0U}; -static u8 src_b[GDMA_BUF_B_LEN] __attribute__((aligned(4))) = {0U}; -static u8 dst_b[GDMA_BUF_B_LEN] __attribute__((aligned(4))) = {0U}; -static u32 chan_evt_bits = 0U; /* bits by GDMA_CHAN_TRANS_END */ -static u32 memcpy_times = 3U; -static boolean is_running = FALSE; - +static xSemaphoreHandle gdma_task_counter = NULL; +static uint8_t src_a[GDMA_TASKA_TRANS_LEN] __attribute__((aligned(16))) = {0U}; /* should be aligned with both read and write burst size, defalut: 16-byte */ +static uint8_t dst_a[GDMA_TASKA_TRANS_LEN] __attribute__((aligned(16))) = {0U}; +static uint8_t src_b[GDMA_TASKB_TRANS_LEN] __attribute__((aligned(16))) = {0U}; +static uint8_t dst_b[GDMA_TASKB_TRANS_LEN] __attribute__((aligned(16))) = {0U}; +static uint32_t chan_evt_bits = 0U; /* bits that indicate GDMA_CHAN_TRANS_END */ +static bool is_running = FALSE; /***************** Macros (Inline Functions) Definitions *********************/ #define FGDMA_DEBUG_TAG "GDMA-MEM" #define FGDMA_ERROR(format, ...) FT_DEBUG_PRINT_E(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_WARN(format, ...) FT_DEBUG_PRINT_W(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_INFO(format, ...) FT_DEBUG_PRINT_I(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) #define FGDMA_DEBUG(format, ...) FT_DEBUG_PRINT_D(FGDMA_DEBUG_TAG, format, ##__VA_ARGS__) - /************************** Function Prototypes ******************************/ /*****************************************************************************/ - static void GdmaMemcpyExitCallback(TimerHandle_t timer) { printf("exiting...\r\n"); @@ -92,26 +96,26 @@ static void GdmaMemcpyExitCallback(TimerHandle_t timer) chan_evt_bits = 0U; } - if (init_locker) + if (gdma_task_counter) { - vSemaphoreDelete(init_locker); - init_locker = NULL; + vSemaphoreDelete(gdma_task_counter); + gdma_task_counter = NULL; } - if (gdma) + if (gdma_instance_p) { - if (FT_SUCCESS != FFreeRTOSGdmaDeInit(gdma)) + if (FFREERTOS_GDMA_OK != FFreeRTOSGdmaDeInit(gdma_instance_p)) { - FGDMA_ERROR("delete gdma failed !!!"); + FGDMA_ERROR("Deinit GDMA instance failed."); } - gdma = NULL; + gdma_instance_p = NULL; } if (exit_timer) { if (pdPASS != xTimerDelete(exit_timer, 0)) { - FGDMA_ERROR("delete exit timer failed !!!"); + FGDMA_ERROR("Delete exit timer failed."); } exit_timer = NULL; } @@ -119,78 +123,58 @@ static void GdmaMemcpyExitCallback(TimerHandle_t timer) is_running = FALSE; } -static FFreeRTOSGdmaRequest *GdmaPrepareRequest(u8 *src, u8 *dst, fsize_t buf_len, fsize_t trans_num) -{ - FASSERT_MSG(buf_len % trans_num == 0, "invalid transaction num"); - FFreeRTOSGdmaRequest *req = pvPortMalloc(sizeof(FFreeRTOSGdmaRequest)); - fsize_t loop; - fsize_t pre_buf_len = buf_len / trans_num; - - req->trans = pvPortMalloc(sizeof(FFreeRTOSGdmaTranscation) * trans_num); - req->valid_trans_num = 0U; - req->total_trans_num = trans_num; - for (loop = 0; loop < trans_num; loop++) - { - req->trans[loop].src_buf = src + pre_buf_len * loop; - req->trans[loop].dst_buf = dst + pre_buf_len * loop; - req->trans[loop].data_len = pre_buf_len; - FGDMA_INFO("src: %p, dst: %p, len: %d.", req->trans[loop].src_buf, req->trans[loop].dst_buf, - req->trans[loop].data_len); - req->valid_trans_num++; - } - - return req; -} - -static void GdmaMemcpyAckChanXEnd(FGdmaChan *const chan, void *args) +static void GdmaMemcpyAckChanXEnd(uint32_t channel_id, void *args) { - FASSERT(chan); - FGdmaChanIndex chan_id = chan->config.chan_id; + FASSERT(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN); BaseType_t xhigher_priority_task_woken = pdFALSE; BaseType_t x_result = pdFALSE; - FGDMA_INFO("ack gdma chan %d.", chan_id); - x_result = xEventGroupSetBitsFromISR(chan_evt, GDMA_CHAN_TRANS_END(chan_id), - &xhigher_priority_task_woken); + FGDMA_INFO("FreeRTOS ack: GDMA chan-%d transfer end.", channel_id); + x_result = xEventGroupSetBitsFromISR(chan_evt, GDMA_CHAN_TRANS_END(channel_id), &xhigher_priority_task_woken); + + if (x_result == pdFALSE) + { + FGDMA_ERROR("xEventGroupSetBitsFromISR() fail."); + } + portYIELD_FROM_ISR(xhigher_priority_task_woken); + return; } -static boolean GdmaMemcpyWaitChanXEnd(u32 chan_id) +static unsigned long GdmaMemcpyWaitChanXEnd(uint32_t channel_id) { - const TickType_t wait_delay = pdMS_TO_TICKS(5000UL); /* wait for 5 seconds */ - EventBits_t ev; - boolean ok = FALSE; + FASSERT(channel_id < FFREERTOS_GDMA_NUM_OF_CHAN); + + EventBits_t evt_result; /* block task to wait memcpy finish signal */ - ev = xEventGroupWaitBits(chan_evt, GDMA_CHAN_TRANS_END(chan_id), - pdTRUE, pdTRUE, wait_delay); /* wait for all bits */ - if ((ev & GDMA_CHAN_TRANS_END(chan_id))) /* wait until channel finished memcpy */ + evt_result = xEventGroupWaitBits(chan_evt, GDMA_CHAN_TRANS_END(channel_id), + pdTRUE, pdTRUE, pdMS_TO_TICKS(5000UL)); /* wait for channel end event bit(5s) */ + if ((evt_result & GDMA_CHAN_TRANS_END(channel_id))) /* wait until channel finished memcpy */ { - FGDMA_INFO("memcpy finished !! chan bits: 0x%x.", chan_evt_bits); - ok = TRUE; + FGDMA_INFO("GDMA memcpy finished. Channel bits: 0x%x.", chan_evt_bits); + return TRUE; } else { - FGDMA_ERROR("wait memcpy timeout !!! 0x%x != 0x%x.", ev, chan_evt_bits); - ok = FALSE; + FGDMA_ERROR("Wait GDMA memcpy timeout. Channel bits: 0x%x, correct value: 0x%x.", evt_result, chan_evt_bits); + return FALSE; } - return ok; + return TRUE; } static void GdmaInitTask(void *args) { - u32 gdma_id = FGDMA0_ID; - - gdma = FFreeRTOSGdmaInit(gdma_id); - FASSERT_MSG(gdma, "init gdma failed"); + gdma_instance_p = FFreeRTOSGdmaInit(FGDMA_CONTROLLER_ID); + FASSERT_MSG(gdma_instance_p, "Init gdma controller failed."); - FASSERT_MSG(init_locker, "init locker NULL"); - for (u32 loop = 0U; loop < GDMA_WORK_TASK_NUM; loop++) + FASSERT_MSG(gdma_task_counter, "GDMA task counter does not exist."); + for (size_t loop = 0; loop < GDMA_WORK_TASK_NUM; loop++) { - xSemaphoreGive(init_locker); + xSemaphoreGive(gdma_task_counter); } vTaskDelete(NULL); @@ -198,158 +182,195 @@ static void GdmaInitTask(void *args) static void GdmaMemcpyTaskA(void *args) { - FASSERT(init_locker); - xSemaphoreTake(init_locker, portMAX_DELAY); + FASSERT_MSG(gdma_task_counter, "GDMA task counter does not exist."); + + xSemaphoreTake(gdma_task_counter, portMAX_DELAY); char ch = 'A'; - u32 chan_id = 0U; - u8 times = 0U; - FError err = FT_SUCCESS; - const TickType_t wait_delay = pdMS_TO_TICKS(2000UL); /* wait for 2 seconds */ - FFreeRTOSGdmaRequest *req_a = GdmaPrepareRequest(src_a, dst_a, GDMA_BUF_A_LEN, 5); - - req_a->req_done_handler = GdmaMemcpyAckChanXEnd; - req_a->req_done_args = NULL; - - err = FFreeRTOSGdmaSetupChannel(gdma, chan_id, req_a); - if (FT_SUCCESS != err) - { - FGDMA_ERROR("setup chan-%d failed.", chan_id); - goto task_err; - } + uint8_t times = 0U; + FError err = FFREERTOS_GDMA_OK; for (;;) { - FGDMA_INFO("[A]start memcpy data ..."); + /* os channel config set */ + os_channel_config_taska.trans_mode = FFREERTOS_GDMA_OPER_DIRECT; + os_channel_config_taska.src_addr = (uintptr_t)src_a; + os_channel_config_taska.dst_addr = (uintptr_t)dst_a; + os_channel_config_taska.trans_length = GDMA_TASKA_TRANS_LEN; + + err = FFreeRTOSGdmaChanConfigure(gdma_instance_p, GDMA_TASKA_CHANNEL_ID, &os_channel_config_taska); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanConfigure in channel-%d failed.", GDMA_TASKA_CHANNEL_ID); + goto task_err; + } + + FFreeRTOSGdmaChanRegisterEvtHandler(gdma_instance_p, + GDMA_TASKA_CHANNEL_ID, + FFREERTOS_GDMA_CHAN_EVT_TRANS_END, + GdmaMemcpyAckChanXEnd, + NULL); - /* recv task has high priority, send task will not run before recv task blocked */ ch = (char)('A' + (times) % 10); /* send different content each time */ - memset(src_a, ch, GDMA_BUF_A_LEN); - memset(dst_a, 0, GDMA_BUF_A_LEN); + memset((void *)src_a, ch, GDMA_TASKA_TRANS_LEN); + memset((void *)dst_a, 0, GDMA_TASKA_TRANS_LEN); - FCacheDCacheInvalidateRange((uintptr)src_a, GDMA_BUF_A_LEN); - FCacheDCacheInvalidateRange((uintptr)dst_a, GDMA_BUF_A_LEN); + /* Memory barrier operation */ + FCacheDCacheInvalidateRange((uintptr_t)src_a, GDMA_TASKA_TRANS_LEN); + FCacheDCacheInvalidateRange((uintptr_t)dst_a, GDMA_TASKA_TRANS_LEN); - if (FT_SUCCESS != FFreeRTOSGdmaStart(gdma, chan_id)) - { - FGDMA_ERROR("[A]start failed !!!"); - goto task_err; - } + FGDMA_INFO("[Task-A]start GDMA memcpy data ..."); + FFreeRTOSGdmaChanStart(gdma_instance_p, GDMA_TASKA_CHANNEL_ID); - if (!GdmaMemcpyWaitChanXEnd(chan_id)) + /* recv task has high priority, send task will not run before recv task blocked */ + if (!GdmaMemcpyWaitChanXEnd(GDMA_TASKA_CHANNEL_ID)) { goto task_err; } - FCacheDCacheInvalidateRange((uintptr)src_a, GDMA_BUF_A_LEN); - FCacheDCacheInvalidateRange((uintptr)dst_a, GDMA_BUF_A_LEN); + FCacheDCacheInvalidateRange((uintptr)src_a, GDMA_TASKA_TRANS_LEN); + FCacheDCacheInvalidateRange((uintptr)dst_a, GDMA_TASKA_TRANS_LEN); /* compare if memcpy success */ - if (0 == memcmp(src_a, dst_a, GDMA_BUF_A_LEN)) + if (0 == memcmp(src_a, dst_a, GDMA_TASKA_TRANS_LEN)) { taskENTER_CRITICAL(); - printf("[A]memcpy success !!!\r\n"); - printf("[A]src buf...\r\n"); - FtDumpHexByte((const u8 *)src_a, min((fsize_t)GDMA_BUF_A_LEN, (fsize_t)64U)); - printf("[A]dst buf...\r\n"); - FtDumpHexByte((const u8 *)dst_a, min((fsize_t)GDMA_BUF_A_LEN, (fsize_t)64U)); + printf("\r\n[Task-A]GDMA memcpy success.\r\n"); + printf("[Task-A]src buf...\r\n"); + FtDumpHexByte((const uint8_t *)src_a, min((size_t)GDMA_TASKA_TRANS_LEN, (size_t)64U)); + printf("[Task-A]dst buf...\r\n"); + FtDumpHexByte((const uint8_t *)dst_a, min((size_t)GDMA_TASKA_TRANS_LEN, (size_t)64U)); taskEXIT_CRITICAL(); } else { - FGDMA_ERROR("[A]src != dst, memcpy failed !!!"); + FGDMA_ERROR("[Task-A]src != dst, GDMA memcpy failed."); + goto task_err; + } + + err = FFreeRTOSGdmaChanStop(gdma_instance_p, GDMA_TASKA_CHANNEL_ID); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanStop in channel-%d failed.", GDMA_TASKA_CHANNEL_ID); + goto task_err; + } + + err = FFreeRTOSGdmaChanDeconfigure(gdma_instance_p, GDMA_TASKA_CHANNEL_ID); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanDeconfigure in channel-%d failed.", GDMA_TASKA_CHANNEL_ID); goto task_err; } - if (times++ > memcpy_times) + if (times++ > GDMA_TRANS_TIMES) { break; } - vTaskDelay(wait_delay); + vTaskDelay(pdMS_TO_TICKS(2000U)); /* wait for 2 seconds */ } task_err: - (void)FFreeRTOSGdmaRevokeChannel(gdma, chan_id); - printf("[A]exit from memcpy task !!!\r\n"); + (void)FFreeRTOSGdmaChanDeconfigure(gdma_instance_p, GDMA_TASKA_CHANNEL_ID); + printf("[Task-A]exit from GDMA memcpy task.\r\n"); vTaskSuspend(NULL); /* failed, not able to run, suspend task itself */ } static void GdmaMemcpyTaskB(void *args) { - FASSERT(init_locker); - xSemaphoreTake(init_locker, portMAX_DELAY); + FASSERT_MSG(gdma_task_counter, "GDMA task counter does not exist."); + + xSemaphoreTake(gdma_task_counter, portMAX_DELAY); char ch = '0'; - u8 times = 0U; - u32 chan_id = 1U; - FError err = FT_SUCCESS; - const TickType_t wait_delay = pdMS_TO_TICKS(2000UL); /* wait for 2 seconds */ - FFreeRTOSGdmaRequest *req_b = GdmaPrepareRequest(src_b, dst_b, GDMA_BUF_B_LEN, chan_id); - - req_b->req_done_handler = GdmaMemcpyAckChanXEnd; - req_b->req_done_args = NULL; - - err = FFreeRTOSGdmaSetupChannel(gdma, chan_id, req_b); - if (FT_SUCCESS != err) - { - FGDMA_ERROR("setup chan-%d failed.", chan_id); - goto task_err; - } + uint8_t times = 0U; + FError err = FFREERTOS_GDMA_OK; for (;;) { - FGDMA_INFO("[B]start memcpy ..."); + /* os channel config set */ + os_channel_config_taskb.trans_mode = FFREERTOS_GDMA_OPER_BDL; + os_channel_config_taskb.src_addr = (uintptr_t)src_b; + os_channel_config_taskb.dst_addr = (uintptr_t)dst_b; + os_channel_config_taskb.trans_length = GDMA_TASKB_TRANS_LEN; + + err = FFreeRTOSGdmaChanConfigure(gdma_instance_p, GDMA_TASKB_CHANNEL_ID, &os_channel_config_taskb); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanConfigure in channel-%d failed.", GDMA_TASKB_CHANNEL_ID); + goto task_err; + } + + FFreeRTOSGdmaChanRegisterEvtHandler(gdma_instance_p, + GDMA_TASKB_CHANNEL_ID, + FFREERTOS_GDMA_CHAN_EVT_TRANS_END, + GdmaMemcpyAckChanXEnd, + NULL); - /* recv task has high priority, send task will not run before recv task blocked */ ch = (char)('0' + (times) % 10); /* send different content each time */ - memset(src_b, ch, GDMA_BUF_B_LEN); - memset(dst_b, 0, GDMA_BUF_B_LEN); + memset((void *)src_b, ch, GDMA_TASKB_TRANS_LEN); + memset((void *)dst_b, 0, GDMA_TASKB_TRANS_LEN); - FCacheDCacheInvalidateRange((uintptr)src_b, GDMA_BUF_B_LEN); - FCacheDCacheInvalidateRange((uintptr)dst_b, GDMA_BUF_B_LEN); + /* Memory barrier operation */ + FCacheDCacheInvalidateRange((uintptr_t)src_b, GDMA_TASKB_TRANS_LEN); + FCacheDCacheInvalidateRange((uintptr_t)dst_b, GDMA_TASKB_TRANS_LEN); - if (FT_SUCCESS != FFreeRTOSGdmaStart(gdma, chan_id)) - { - FGDMA_ERROR("[B]start failed !!!"); - goto task_err; - } + FGDMA_INFO("[Task-B]start GDMA memcpy data ..."); + FFreeRTOSGdmaChanStart(gdma_instance_p, GDMA_TASKB_CHANNEL_ID); - if (!GdmaMemcpyWaitChanXEnd(chan_id)) + /* recv task has high priority, send task will not run before recv task blocked */ + if (!GdmaMemcpyWaitChanXEnd(GDMA_TASKB_CHANNEL_ID)) { goto task_err; } + FCacheDCacheInvalidateRange((uintptr)src_b, GDMA_TASKB_TRANS_LEN); + FCacheDCacheInvalidateRange((uintptr)dst_b, GDMA_TASKB_TRANS_LEN); + /* compare if memcpy success */ - if (0 == memcmp(src_b, dst_b, GDMA_BUF_B_LEN)) + if (0 == memcmp(src_a, dst_a, GDMA_TASKB_TRANS_LEN)) { taskENTER_CRITICAL(); - printf("[B]memcpy success !!!\r\n"); - printf("[B]src buf...\r\n"); - FtDumpHexByte((const u8 *)src_b, min((fsize_t)GDMA_BUF_B_LEN, (fsize_t)64U)); - printf("[B]dst buf...\r\n"); - FtDumpHexByte((const u8 *)dst_b, min((fsize_t)GDMA_BUF_B_LEN, (fsize_t)64U)); + printf("\r\n[Task-B]GDMA memcpy success.\r\n"); + printf("[Task-B]src buf...\r\n"); + FtDumpHexByte((const uint8_t *)src_b, min((size_t)GDMA_TASKB_TRANS_LEN, (size_t)64U)); + printf("[Task-B]dst buf...\r\n"); + FtDumpHexByte((const uint8_t *)dst_b, min((size_t)GDMA_TASKB_TRANS_LEN, (size_t)64U)); taskEXIT_CRITICAL(); } else { - FGDMA_ERROR("[B]src != dst, memcpy failed !!!"); + FGDMA_ERROR("[TaskB]src != dst, GDMA memcpy failed."); + goto task_err; + } + + err = FFreeRTOSGdmaChanStop(gdma_instance_p, GDMA_TASKB_CHANNEL_ID); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanStop in channel-%d failed.", GDMA_TASKB_CHANNEL_ID); + goto task_err; + } + + err = FFreeRTOSGdmaChanDeconfigure(gdma_instance_p, GDMA_TASKB_CHANNEL_ID); + if (FFREERTOS_GDMA_OK != err) + { + FGDMA_ERROR("FFreeRTOSGdmaChanDeconfigure in channel-%d failed.", GDMA_TASKB_CHANNEL_ID); goto task_err; } - if (times++ > memcpy_times) + if (times++ > GDMA_TRANS_TIMES) { break; } - vTaskDelay(wait_delay); + vTaskDelay(pdMS_TO_TICKS(2000U)); /* wait for 2 seconds */ } task_err: - (void)FFreeRTOSGdmaRevokeChannel(gdma, chan_id); - printf("[B]exit from memcpy task !!!\r\n"); + (void)FFreeRTOSGdmaChanDeconfigure(gdma_instance_p, GDMA_TASKB_CHANNEL_ID); + printf("[Task-B]exit from GDMA memcpy task.\r\n"); vTaskSuspend(NULL); /* failed, not able to run, suspend task itself */ } @@ -360,17 +381,17 @@ BaseType_t FFreeRTOSRunGdmaMemcpy(void) if (is_running) { - FGDMA_ERROR("task is running !!!!"); + FGDMA_ERROR("task is running, please wait for the program to complete."); return pdPASS; } is_running = TRUE; - FASSERT_MSG(NULL == chan_evt, "event group exists !!!"); - FASSERT_MSG((chan_evt = xEventGroupCreate()) != NULL, "create event group failed !!!"); + FASSERT_MSG(NULL == chan_evt, "Event group has been created aready."); + FASSERT_MSG((chan_evt = xEventGroupCreate()) != NULL, "Create event group failed."); - FASSERT_MSG(NULL == init_locker, "init locker exists !!!"); - FASSERT_MSG((init_locker = xSemaphoreCreateCounting(GDMA_WORK_TASK_NUM, 0U)) != NULL, "create event group failed !!!"); + FASSERT_MSG(NULL == gdma_task_counter, "GDMA task counter has been created aready."); + FASSERT_MSG((gdma_task_counter = xSemaphoreCreateCounting(GDMA_WORK_TASK_NUM, 0U)) != NULL, "create event group failed !!!"); taskENTER_CRITICAL(); /* no schedule when create task */ diff --git a/example/peripheral/media/lvgl_demo/configs/e2000d_aarch32_demo_media.config b/example/peripheral/media/lvgl_demo/configs/e2000d_aarch32_demo_media.config index bdd5920704040427f876c56ad37c7f1adf526762..66a03b92f74d88501b25fd26122aba7bef9d7f8a 100644 --- a/example/peripheral/media/lvgl_demo/configs/e2000d_aarch32_demo_media.config +++ b/example/peripheral/media/lvgl_demo/configs/e2000d_aarch32_demo_media.config @@ -156,8 +156,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration diff --git a/example/peripheral/media/lvgl_demo/configs/e2000d_aarch64_demo_media.config b/example/peripheral/media/lvgl_demo/configs/e2000d_aarch64_demo_media.config index 2164bbf824f097b6256684450e7de2a17c659170..8370b47924100bfe0f3f25539036b9101961790e 100644 --- a/example/peripheral/media/lvgl_demo/configs/e2000d_aarch64_demo_media.config +++ b/example/peripheral/media/lvgl_demo/configs/e2000d_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -156,8 +150,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -336,308 +328,10 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -# CONFIG_LV_CONF_SKIP is not set -CONFIG_LV_CONF_MINIMAL=y - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=128 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -CONFIG_LV_USE_DEMO_BENCHMARK=y -# CONFIG_LV_DEMO_BENCHMARK_RGB565A8 is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_demo/configs/e2000q_aarch32_demo_media.config b/example/peripheral/media/lvgl_demo/configs/e2000q_aarch32_demo_media.config index ab4b7ad2d57fa0045eef1ea8b24415b1fe82dc45..2440a792a829f4d6b372a93e2a78326534e4025a 100644 --- a/example/peripheral/media/lvgl_demo/configs/e2000q_aarch32_demo_media.config +++ b/example/peripheral/media/lvgl_demo/configs/e2000q_aarch32_demo_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -153,8 +155,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -337,308 +337,10 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -# CONFIG_LV_CONF_SKIP is not set -CONFIG_LV_CONF_MINIMAL=y - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=128 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -CONFIG_LV_USE_DEMO_BENCHMARK=y -# CONFIG_LV_DEMO_BENCHMARK_RGB565A8 is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_demo/configs/e2000q_aarch64_demo_media.config b/example/peripheral/media/lvgl_demo/configs/e2000q_aarch64_demo_media.config index 2a52772c1a8ea14bf08e3d8ccf3f8b565682d65c..0f7309a1667d6f4b20d8d7b6f660643e77d94ea6 100644 --- a/example/peripheral/media/lvgl_demo/configs/e2000q_aarch64_demo_media.config +++ b/example/peripheral/media/lvgl_demo/configs/e2000q_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -155,8 +149,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -335,308 +327,10 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -# CONFIG_LV_CONF_SKIP is not set -CONFIG_LV_CONF_MINIMAL=y - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=128 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -CONFIG_LV_USE_DEMO_BENCHMARK=y -# CONFIG_LV_DEMO_BENCHMARK_RGB565A8 is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch32_firefly_media.config b/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch32_firefly_media.config index 60493b9bee05b40ccf23c543c5ca0a79e28d79e2..628ef712343de3852a7a5cad0773a729e03183d2 100644 --- a/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch32_firefly_media.config +++ b/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch32_firefly_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -152,8 +154,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -336,308 +336,10 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -# CONFIG_LV_CONF_SKIP is not set -CONFIG_LV_CONF_MINIMAL=y - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=128 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -CONFIG_LV_USE_DEMO_BENCHMARK=y -# CONFIG_LV_DEMO_BENCHMARK_RGB565A8 is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch64_firefly_media.config b/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch64_firefly_media.config index 8cd482f47c5f40dca7aa4f26e51e20127dd4a2aa..4b1748b466f80849bd06103ba8d261f5a14d0ff4 100644 --- a/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch64_firefly_media.config +++ b/example/peripheral/media/lvgl_demo/configs/phytiumpi_aarch64_firefly_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -154,8 +148,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -334,305 +326,6 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -# CONFIG_LV_CONF_SKIP is not set -CONFIG_LV_CONF_MINIMAL=y - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=128 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -CONFIG_LV_USE_DEMO_BENCHMARK=y -# CONFIG_LV_DEMO_BENCHMARK_RGB565A8 is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set diff --git a/example/peripheral/media/lvgl_demo/sdkconfig b/example/peripheral/media/lvgl_demo/sdkconfig index bdd5920704040427f876c56ad37c7f1adf526762..4b1748b466f80849bd06103ba8d261f5a14d0ff4 100644 --- a/example/peripheral/media/lvgl_demo/sdkconfig +++ b/example/peripheral/media/lvgl_demo/sdkconfig @@ -9,8 +9,8 @@ CONFIG_ARCH_NAME="armv8" # # Arm architecture configuration # -# CONFIG_ARCH_ARMV8_AARCH64 is not set -CONFIG_ARCH_ARMV8_AARCH32=y +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set # # Compiler configuration @@ -18,42 +18,35 @@ CONFIG_ARCH_ARMV8_AARCH32=y CONFIG_ARM_GCC_SELECT=y # CONFIG_ARM_CLANG_SELECT is not set CONFIG_TOOLCHAIN_NAME="gcc" -CONFIG_TARGET_ARMV8_AARCH32=y -CONFIG_ARCH_EXECUTION_STATE="aarch32" - -# -# Fpu configuration -# -CONFIG_CRYPTO_NEON_FP_ARMV8=y -# CONFIG_VFPV4 is not set -# CONFIG_VFPV4_D16 is not set -# CONFIG_VFPV3 is not set -# CONFIG_VFPV3_D16 is not set -CONFIG_ARM_MFPU="crypto-neon-fp-armv8" -CONFIG_MFLOAT_ABI_HARD=y -# CONFIG_MFLOAT_ABI_SOFTFP is not set -CONFIG_ARM_MFLOAT_ABI="hard" -# end of Fpu configuration +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set # end of Compiler configuration CONFIG_USE_CACHE=y CONFIG_USE_MMU=y -CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# CONFIG_BOOT_WITH_FLUSH_CACHE is not set +# CONFIG_MMU_DEBUG_PRINTS is not set # end of Arm architecture configuration # end of Arch configuration # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_PHYTIUMPI=y # CONFIG_TARGET_E2000Q is not set -CONFIG_TARGET_E2000D=y +# CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set # CONFIG_TARGET_D2000 is not set -CONFIG_SOC_NAME="e2000" -CONFIG_TARGET_TYPE_NAME="d" -CONFIG_SOC_CORE_NUM=2 +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 @@ -68,22 +61,21 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_E2000D_DEMO_BOARD=y -CONFIG_BOARD_NAME="demo" - -# -# IO mux configuration when board start up -# +CONFIG_BOARD_NAME="firefly" # CONFIG_USE_SPI_IOPAD is not set # CONFIG_USE_GPIO_IOPAD is not set # CONFIG_USE_CAN_IOPAD is not set # CONFIG_USE_QSPI_IOPAD is not set # CONFIG_USE_PWM_IOPAD is not set -# CONFIG_USE_ADC_IOPAD is not set # CONFIG_USE_MIO_IOPAD is not set # CONFIG_USE_TACHO_IOPAD is not set # CONFIG_USE_UART_IOPAD is not set # CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# # end of IO mux configuration when board start up # CONFIG_CUS_DEMO_BOARD is not set @@ -156,8 +148,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -216,12 +206,8 @@ CONFIG_DEFAULT_LINKER_SCRIPT=y CONFIG_IMAGE_LOAD_ADDRESS=0x80100000 CONFIG_IMAGE_MAX_LENGTH=0x100000000 CONFIG_HEAP_SIZE=1 -CONFIG_SVC_STACK_SIZE=0x1000 -CONFIG_SYS_STACK_SIZE=0x1000 -CONFIG_IRQ_STACK_SIZE=0x1000 -CONFIG_ABORT_STACK_SIZE=0x1000 -CONFIG_FIQ_STACK_SIZE=0x1000 -CONFIG_UNDEF_STACK_SIZE=0x1000 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 # end of Linker Options # end of Build setup diff --git a/example/peripheral/media/lvgl_demo/sdkconfig.h b/example/peripheral/media/lvgl_demo/sdkconfig.h index 404dfdd005c1bbc4761cd2a4babbca9eda1369cf..85b2c95c99bbc9c7596d59788818c4d767cad9ee 100644 --- a/example/peripheral/media/lvgl_demo/sdkconfig.h +++ b/example/peripheral/media/lvgl_demo/sdkconfig.h @@ -10,47 +10,41 @@ /* Arm architecture configuration */ -/* CONFIG_ARCH_ARMV8_AARCH64 is not set */ -#define CONFIG_ARCH_ARMV8_AARCH32 +#define CONFIG_ARCH_ARMV8_AARCH64 +/* CONFIG_ARCH_ARMV8_AARCH32 is not set */ /* Compiler configuration */ #define CONFIG_ARM_GCC_SELECT /* CONFIG_ARM_CLANG_SELECT is not set */ #define CONFIG_TOOLCHAIN_NAME "gcc" -#define CONFIG_TARGET_ARMV8_AARCH32 -#define CONFIG_ARCH_EXECUTION_STATE "aarch32" - -/* Fpu configuration */ - -#define CONFIG_CRYPTO_NEON_FP_ARMV8 -/* CONFIG_VFPV4 is not set */ -/* CONFIG_VFPV4_D16 is not set */ -/* CONFIG_VFPV3 is not set */ -/* CONFIG_VFPV3_D16 is not set */ -#define CONFIG_ARM_MFPU "crypto-neon-fp-armv8" -#define CONFIG_MFLOAT_ABI_HARD -/* CONFIG_MFLOAT_ABI_SOFTFP is not set */ -#define CONFIG_ARM_MFLOAT_ABI "hard" -/* end of Fpu configuration */ +#define CONFIG_TARGET_ARMV8_AARCH64 +#define CONFIG_ARCH_EXECUTION_STATE "aarch64" +#define CONFIG_ARM_NEON +#define CONFIG_ARM_CRC +#define CONFIG_ARM_CRYPTO +#define CONFIG_ARM_FLOAT_POINT +/* CONFIG_GCC_CODE_MODEL_TINY is not set */ +#define CONFIG_GCC_CODE_MODEL_SMALL +/* CONFIG_GCC_CODE_MODEL_LARGE is not set */ /* end of Compiler configuration */ #define CONFIG_USE_CACHE #define CONFIG_USE_MMU -#define CONFIG_USE_AARCH64_L1_TO_AARCH32 +/* CONFIG_BOOT_WITH_FLUSH_CACHE is not set */ +/* CONFIG_MMU_DEBUG_PRINTS is not set */ /* end of Arm architecture configuration */ /* end of Arch configuration */ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ +#define CONFIG_TARGET_PHYTIUMPI /* CONFIG_TARGET_E2000Q is not set */ -#define CONFIG_TARGET_E2000D +/* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ /* CONFIG_TARGET_D2000 is not set */ -#define CONFIG_SOC_NAME "e2000" -#define CONFIG_TARGET_TYPE_NAME "d" -#define CONFIG_SOC_CORE_NUM 2 +#define CONFIG_SOC_NAME "phytiumpi" +#define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 #define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 @@ -64,21 +58,20 @@ /* Board Configuration */ -#define CONFIG_E2000D_DEMO_BOARD -#define CONFIG_BOARD_NAME "demo" - -/* IO mux configuration when board start up */ - +#define CONFIG_BOARD_NAME "firefly" /* CONFIG_USE_SPI_IOPAD is not set */ /* CONFIG_USE_GPIO_IOPAD is not set */ /* CONFIG_USE_CAN_IOPAD is not set */ /* CONFIG_USE_QSPI_IOPAD is not set */ /* CONFIG_USE_PWM_IOPAD is not set */ -/* CONFIG_USE_ADC_IOPAD is not set */ /* CONFIG_USE_MIO_IOPAD is not set */ /* CONFIG_USE_TACHO_IOPAD is not set */ /* CONFIG_USE_UART_IOPAD is not set */ /* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ +#define CONFIG_FIREFLY_DEMO_BOARD + +/* IO mux configuration when board start up */ + /* end of IO mux configuration when board start up */ /* CONFIG_CUS_DEMO_BOARD is not set */ @@ -143,8 +136,6 @@ /* Media Configuration */ -#define CONFIG_ENABLE_FMEDIA -/* CONFIG_ENABLE_FDC_DP is not set */ #define CONFIG_ENABLE_FDC_DP_USE_LIB /* end of Media Configuration */ /* CONFIG_USE_SCMI_MHU is not set */ @@ -196,12 +187,8 @@ #define CONFIG_IMAGE_LOAD_ADDRESS 0x80100000 #define CONFIG_IMAGE_MAX_LENGTH 0x100000000 #define CONFIG_HEAP_SIZE 1 -#define CONFIG_SVC_STACK_SIZE 0x1000 -#define CONFIG_SYS_STACK_SIZE 0x1000 -#define CONFIG_IRQ_STACK_SIZE 0x1000 -#define CONFIG_ABORT_STACK_SIZE 0x1000 -#define CONFIG_FIQ_STACK_SIZE 0x1000 -#define CONFIG_UNDEF_STACK_SIZE 0x1000 +#define CONFIG_STACK_SIZE 0x400 +#define CONFIG_FPU_STACK_SIZE 0x1000 /* end of Linker Options */ /* end of Build setup */ diff --git a/example/peripheral/media/lvgl_indev/configs/e2000d_aarch32_demo_media.config b/example/peripheral/media/lvgl_indev/configs/e2000d_aarch32_demo_media.config index ff8d0991e80d87c95b91a60bed2e8d49d87930e4..fda27c68e433387e30d0273afe543d96e901fbb8 100644 --- a/example/peripheral/media/lvgl_indev/configs/e2000d_aarch32_demo_media.config +++ b/example/peripheral/media/lvgl_indev/configs/e2000d_aarch32_demo_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -155,8 +157,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -339,304 +339,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -656,6 +358,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/configs/e2000d_aarch64_demo_media.config b/example/peripheral/media/lvgl_indev/configs/e2000d_aarch64_demo_media.config index 6f32eaae6e8c6a471a1eb546f401de49653ad4d0..8bab2feccbe2a906f5633434c2daf63f881c1e07 100644 --- a/example/peripheral/media/lvgl_indev/configs/e2000d_aarch64_demo_media.config +++ b/example/peripheral/media/lvgl_indev/configs/e2000d_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -157,8 +151,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -337,304 +329,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -654,6 +348,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/configs/e2000q_aarch32_demo_media.config b/example/peripheral/media/lvgl_indev/configs/e2000q_aarch32_demo_media.config index 3aa4b0ae071855feaddc146d2a614f77ecd77743..6d6b187bc9580c7526db92270b4596883218c3bc 100644 --- a/example/peripheral/media/lvgl_indev/configs/e2000q_aarch32_demo_media.config +++ b/example/peripheral/media/lvgl_indev/configs/e2000q_aarch32_demo_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -154,8 +156,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -338,304 +338,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -655,6 +357,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/configs/e2000q_aarch64_demo_media.config b/example/peripheral/media/lvgl_indev/configs/e2000q_aarch64_demo_media.config index e7baacaec85bf2c5d776ce8e941a71fce21dc066..e5ba37fbe2479128b64e03c37cb1fafb5c33ea90 100644 --- a/example/peripheral/media/lvgl_indev/configs/e2000q_aarch64_demo_media.config +++ b/example/peripheral/media/lvgl_indev/configs/e2000q_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -156,8 +150,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -336,304 +328,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -653,6 +347,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch32_firefly_media.config b/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch32_firefly_media.config index 6aa7630d12bc14da2bcb9d6242b05725ef02fa1e..b5d64e0baf3074be9ee313192203f5414502925a 100644 --- a/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch32_firefly_media.config +++ b/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch32_firefly_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -153,8 +155,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -337,304 +337,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -654,6 +356,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch64_firefly_media.config b/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch64_firefly_media.config index ed230736e8cb352b6215d2d20aefb972663b1a19..333161a7e30f38b6f5a8e0e1d304d4c60606fdc2 100644 --- a/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch64_firefly_media.config +++ b/example/peripheral/media/lvgl_indev/configs/phytiumpi_aarch64_firefly_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -155,8 +149,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -335,304 +327,6 @@ CONFIG_USE_TLSF=y # CONFIG_USE_SPIFFS is not set # CONFIG_USE_LITTLE_FS is not set CONFIG_USE_LVGL=y - -# -# Lvgl configuration -# -CONFIG_LV_CONF_SKIP=y -# CONFIG_LV_CONF_MINIMAL is not set - -# -# Color settings -# -CONFIG_LV_COLOR_DEPTH_32=y -# CONFIG_LV_COLOR_DEPTH_16 is not set -# CONFIG_LV_COLOR_DEPTH_8 is not set -# CONFIG_LV_COLOR_DEPTH_1 is not set -CONFIG_LV_COLOR_DEPTH=32 -CONFIG_LV_COLOR_MIX_ROUND_OFS=0 -CONFIG_LV_COLOR_CHROMA_KEY_HEX=0x00FF00 -# end of Color settings - -# -# Memory settings -# -# CONFIG_LV_MEM_CUSTOM is not set -CONFIG_LV_MEM_SIZE_KILOBYTES=32 -CONFIG_LV_MEM_ADDR=0x0 -CONFIG_LV_MEM_BUF_MAX_NUM=16 -# CONFIG_LV_MEMCPY_MEMSET_STD is not set -# end of Memory settings - -# -# Hal settings -# -# CONFIG_LV_TICK_CUSTOM is not set -CONFIG_LV_DPI_DEF=130 -# end of Hal settings - -# -# Feature configuration -# - -# -# Drawing -# -CONFIG_LV_DRAW_COMPLEX=y -CONFIG_LV_SHADOW_CACHE_SIZE=0 -CONFIG_LV_CIRCLE_CACHE_SIZE=4 -CONFIG_LV_LAYER_SIMPLE_BUF_SIZE=24576 -CONFIG_LV_IMG_CACHE_DEF_SIZE=0 -CONFIG_LV_GRADIENT_MAX_STOPS=2 -CONFIG_LV_GRAD_CACHE_DEF_SIZE=0 -# CONFIG_LV_DITHER_GRADIENT is not set -CONFIG_LV_DISP_ROT_MAX_BUF=10240 -# end of Drawing - -# -# Gpu -# -# CONFIG_LV_USE_GPU_ARM2D is not set -# CONFIG_LV_USE_GPU_STM32_DMA2D is not set -# CONFIG_LV_USE_GPU_SWM341_DMA2D is not set -# CONFIG_LV_USE_GPU_NXP_PXP is not set -# CONFIG_LV_USE_GPU_NXP_VG_LITE is not set -# CONFIG_LV_USE_GPU_SDL is not set -# end of Gpu - -# -# Logging -# -# CONFIG_LV_USE_LOG is not set -# end of Logging - -# -# Asserts -# -CONFIG_LV_USE_ASSERT_NULL=y -CONFIG_LV_USE_ASSERT_MALLOC=y -# CONFIG_LV_USE_ASSERT_STYLE is not set -# CONFIG_LV_USE_ASSERT_MEM_INTEGRITY is not set -# CONFIG_LV_USE_ASSERT_OBJ is not set -CONFIG_LV_ASSERT_HANDLER_INCLUDE="assert.h" -# end of Asserts - -# -# Others -# -# CONFIG_LV_USE_PERF_MONITOR is not set -# CONFIG_LV_USE_MEM_MONITOR is not set -# CONFIG_LV_USE_REFR_DEBUG is not set -# CONFIG_LV_SPRINTF_CUSTOM is not set -# CONFIG_LV_SPRINTF_USE_FLOAT is not set -CONFIG_LV_USE_USER_DATA=y -# CONFIG_LV_ENABLE_GC is not set -# end of Others - -# -# Compiler settings -# -# CONFIG_LV_BIG_ENDIAN_SYSTEM is not set -CONFIG_LV_ATTRIBUTE_MEM_ALIGN_SIZE=1 -# CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM is not set -# CONFIG_LV_USE_LARGE_COORD is not set -# end of Compiler settings -# end of Feature configuration - -# -# Font usage -# - -# -# Enable built-in fonts -# -# CONFIG_LV_FONT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_MONTSERRAT_10 is not set -# CONFIG_LV_FONT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_MONTSERRAT_14=y -# CONFIG_LV_FONT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_UNSCII_8 is not set -# CONFIG_LV_FONT_UNSCII_16 is not set -# end of Enable built-in fonts - -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_8 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12 is not set -CONFIG_LV_FONT_DEFAULT_MONTSERRAT_14=y -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_16 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_18 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_20 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_22 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_24 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_30 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_32 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_34 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_36 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_38 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_40 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_42 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_44 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_46 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_48 is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_12_SUBPX is not set -# CONFIG_LV_FONT_DEFAULT_MONTSERRAT_28_COMPRESSED is not set -# CONFIG_LV_FONT_DEFAULT_DEJAVU_16_PERSIAN_HEBREW is not set -# CONFIG_LV_FONT_DEFAULT_SIMSUN_16_CJK is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_8 is not set -# CONFIG_LV_FONT_DEFAULT_UNSCII_16 is not set -# CONFIG_LV_FONT_FMT_TXT_LARGE is not set -# CONFIG_LV_USE_FONT_COMPRESSED is not set -# CONFIG_LV_USE_FONT_SUBPX is not set -CONFIG_LV_USE_FONT_PLACEHOLDER=y -# end of Font usage - -# -# Text settings -# -CONFIG_LV_TXT_ENC_UTF8=y -# CONFIG_LV_TXT_ENC_ASCII is not set -CONFIG_LV_TXT_BREAK_CHARS=" ,.;:-_" -CONFIG_LV_TXT_LINE_BREAK_LONG_LEN=0 -CONFIG_LV_TXT_COLOR_CMD="#" -# CONFIG_LV_USE_BIDI is not set -# CONFIG_LV_USE_ARABIC_PERSIAN_CHARS is not set -# end of Text settings - -# -# Widget usage -# -CONFIG_LV_USE_ARC=y -CONFIG_LV_USE_BAR=y -CONFIG_LV_USE_BTN=y -CONFIG_LV_USE_BTNMATRIX=y -CONFIG_LV_USE_CANVAS=y -CONFIG_LV_USE_CHECKBOX=y -CONFIG_LV_USE_DROPDOWN=y -CONFIG_LV_USE_IMG=y -CONFIG_LV_USE_LABEL=y -CONFIG_LV_LABEL_TEXT_SELECTION=y -CONFIG_LV_LABEL_LONG_TXT_HINT=y -CONFIG_LV_USE_LINE=y -CONFIG_LV_USE_ROLLER=y -CONFIG_LV_ROLLER_INF_PAGES=7 -CONFIG_LV_USE_SLIDER=y -CONFIG_LV_USE_SWITCH=y -CONFIG_LV_USE_TEXTAREA=y -CONFIG_LV_TEXTAREA_DEF_PWD_SHOW_TIME=1500 -CONFIG_LV_USE_TABLE=y -# end of Widget usage - -# -# Extra widgets -# -CONFIG_LV_USE_ANIMIMG=y -CONFIG_LV_USE_CALENDAR=y -# CONFIG_LV_CALENDAR_WEEK_STARTS_MONDAY is not set -CONFIG_LV_USE_CALENDAR_HEADER_ARROW=y -CONFIG_LV_USE_CALENDAR_HEADER_DROPDOWN=y -CONFIG_LV_USE_CHART=y -CONFIG_LV_USE_COLORWHEEL=y -CONFIG_LV_USE_IMGBTN=y -CONFIG_LV_USE_KEYBOARD=y -CONFIG_LV_USE_LED=y -CONFIG_LV_USE_LIST=y -CONFIG_LV_USE_MENU=y -CONFIG_LV_USE_METER=y -CONFIG_LV_USE_MSGBOX=y -CONFIG_LV_USE_SPAN=y -CONFIG_LV_SPAN_SNIPPET_STACK_SIZE=64 -CONFIG_LV_USE_SPINBOX=y -CONFIG_LV_USE_SPINNER=y -CONFIG_LV_USE_TABVIEW=y -CONFIG_LV_USE_TILEVIEW=y -CONFIG_LV_USE_WIN=y -# end of Extra widgets - -# -# Themes -# -CONFIG_LV_USE_THEME_DEFAULT=y -# CONFIG_LV_THEME_DEFAULT_DARK is not set -CONFIG_LV_THEME_DEFAULT_GROW=y -CONFIG_LV_THEME_DEFAULT_TRANSITION_TIME=80 -CONFIG_LV_USE_THEME_BASIC=y -# CONFIG_LV_USE_THEME_MONO is not set -# end of Themes - -# -# Layouts -# -CONFIG_LV_USE_FLEX=y -CONFIG_LV_USE_GRID=y -# end of Layouts - -# -# 3rd party libraries -# -# CONFIG_LV_USE_FS_STDIO is not set -# CONFIG_LV_USE_FS_POSIX is not set -# CONFIG_LV_USE_FS_WIN32 is not set -# CONFIG_LV_USE_FS_FATFS is not set -# CONFIG_LV_USE_PNG is not set -# CONFIG_LV_USE_BMP is not set -# CONFIG_LV_USE_SJPG is not set -# CONFIG_LV_USE_GIF is not set -# CONFIG_LV_USE_QRCODE is not set -# CONFIG_LV_USE_FREETYPE is not set -# CONFIG_LV_USE_RLOTTIE is not set -# CONFIG_LV_USE_FFMPEG is not set -# end of 3rd party libraries - -# -# Others -# -CONFIG_LV_USE_SNAPSHOT=y -# CONFIG_LV_USE_MONKEY is not set -# CONFIG_LV_USE_GRIDNAV is not set -# CONFIG_LV_USE_FRAGMENT is not set -# CONFIG_LV_USE_IMGFONT is not set -# CONFIG_LV_USE_MSG is not set -# CONFIG_LV_USE_IME_PINYIN is not set -# end of Others - -# -# Examples -# -CONFIG_LV_BUILD_EXAMPLES=y -# end of Examples - -# -# Demos -# -# CONFIG_LV_USE_DEMO_WIDGETS is not set -# CONFIG_LV_USE_DEMO_KEYPAD_AND_ENCODER is not set -# CONFIG_LV_USE_DEMO_BENCHMARK is not set -# CONFIG_LV_USE_DEMO_STRESS is not set -# CONFIG_LV_USE_DEMO_MUSIC is not set -# end of Demos -# end of Lvgl configuration - # CONFIG_USE_FREEMODBUS is not set CONFIG_USE_CHERRY_USB=y @@ -652,6 +346,7 @@ CONFIG_CHERRY_USB_HOST_HID=y # end of CherryUSB Configuration # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/lvgl_indev/sdkconfig b/example/peripheral/media/lvgl_indev/sdkconfig index 88bcbd2bb4317fff563897bf159bd6b2a41b3fa8..333161a7e30f38b6f5a8e0e1d304d4c60606fdc2 100644 --- a/example/peripheral/media/lvgl_indev/sdkconfig +++ b/example/peripheral/media/lvgl_indev/sdkconfig @@ -39,14 +39,13 @@ CONFIG_USE_MMU=y # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set -CONFIG_TARGET_E2000Q=y +CONFIG_TARGET_PHYTIUMPI=y +# CONFIG_TARGET_E2000Q is not set # CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set # CONFIG_TARGET_D2000 is not set -CONFIG_SOC_NAME="e2000" -CONFIG_TARGET_TYPE_NAME="q" +CONFIG_SOC_NAME="phytiumpi" CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 @@ -62,7 +61,7 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_BOARD_NAME="demo" +CONFIG_BOARD_NAME="firefly" # CONFIG_USE_SPI_IOPAD is not set # CONFIG_USE_GPIO_IOPAD is not set # CONFIG_USE_CAN_IOPAD is not set @@ -72,7 +71,7 @@ CONFIG_BOARD_NAME="demo" # CONFIG_USE_TACHO_IOPAD is not set # CONFIG_USE_UART_IOPAD is not set # CONFIG_USE_THIRD_PARTY_IOPAD is not set -CONFIG_E2000Q_DEMO_BOARD=y +CONFIG_FIREFLY_DEMO_BOARD=y # # IO mux configuration when board start up diff --git a/example/peripheral/media/lvgl_indev/sdkconfig.h b/example/peripheral/media/lvgl_indev/sdkconfig.h index 075236bf42a42cfe4b964a04bfd3909fcd144884..f28ec678baa8006fd33c0c2a3f307c1d983a9e28 100644 --- a/example/peripheral/media/lvgl_indev/sdkconfig.h +++ b/example/peripheral/media/lvgl_indev/sdkconfig.h @@ -37,14 +37,13 @@ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ -#define CONFIG_TARGET_E2000Q +#define CONFIG_TARGET_PHYTIUMPI +/* CONFIG_TARGET_E2000Q is not set */ /* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ /* CONFIG_TARGET_D2000 is not set */ -#define CONFIG_SOC_NAME "e2000" -#define CONFIG_TARGET_TYPE_NAME "q" +#define CONFIG_SOC_NAME "phytiumpi" #define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 @@ -59,7 +58,7 @@ /* Board Configuration */ -#define CONFIG_BOARD_NAME "demo" +#define CONFIG_BOARD_NAME "firefly" /* CONFIG_USE_SPI_IOPAD is not set */ /* CONFIG_USE_GPIO_IOPAD is not set */ /* CONFIG_USE_CAN_IOPAD is not set */ @@ -69,7 +68,7 @@ /* CONFIG_USE_TACHO_IOPAD is not set */ /* CONFIG_USE_UART_IOPAD is not set */ /* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ -#define CONFIG_E2000Q_DEMO_BOARD +#define CONFIG_FIREFLY_DEMO_BOARD /* IO mux configuration when board start up */ diff --git a/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_freertos.config b/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_freertos.config index 1463af4cc5f5898cecf0eaba215c66fddf3cbd54..33704b070010dda2ae4dcd0a4a11a6ba5805b605 100644 --- a/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_freertos.config +++ b/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_freertos.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -153,8 +155,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -340,6 +340,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_media.config b/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_media.config index f4aca2005fbc84e7db1a722ae9e173ce59b816cc..f178db96b93178a96c34827e7dbb6c339f21fb47 100644 --- a/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_media.config +++ b/example/peripheral/media/media_test/configs/e2000d_aarch32_demo_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -153,8 +155,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -340,6 +340,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_freertos.config b/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_freertos.config index 0c52330ee675a96a2139af59fd69ff1e97e3296a..5006cffac52b26dbd899ecb67364e988ddded2e0 100644 --- a/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_freertos.config +++ b/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_freertos.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -155,8 +149,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -338,6 +330,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_media.config b/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_media.config index 21c7270ac3e9b372b238005d28e6e93d975eabb9..a2410b773b6513bc208fd2eb30c4a27225fabe4b 100644 --- a/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_media.config +++ b/example/peripheral/media/media_test/configs/e2000d_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -155,8 +149,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -338,6 +330,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_freertos.config b/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_freertos.config index 7cd3ffa4e6805deec780070d059bc8bde5257d11..619e9fb7988846d016db582723f2af5b68e9d830 100644 --- a/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_freertos.config +++ b/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_freertos.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -152,8 +154,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -339,6 +339,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_media.config b/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_media.config index aff13aa8d20c8ffcb14fcb37d529836df99755b8..dd9642819e83e09e8807afc6c696c4847791e34f 100644 --- a/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_media.config +++ b/example/peripheral/media/media_test/configs/e2000q_aarch32_demo_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -152,8 +154,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -339,6 +339,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_freertos.config b/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_freertos.config index e5f0ef040176209cdd07187c8ac07b620fed0741..5646528510bed4f6aaa203709d042fdc3ef5a1a2 100644 --- a/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_freertos.config +++ b/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_freertos.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -154,8 +148,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -337,6 +329,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_media.config b/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_media.config index 6df1225ef09696059e6e47e02e7222dfb18a77d8..87f20cd80f2c33005371f808b6b53ad63e78de5c 100644 --- a/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_media.config +++ b/example/peripheral/media/media_test/configs/e2000q_aarch64_demo_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -154,8 +148,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -337,6 +329,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_freertos.config b/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_freertos.config index e22af0450a02c52e14a3717d304617b6ecb569ae..e359266af44d59bd080d92ece16e944a0a4da629 100644 --- a/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_freertos.config +++ b/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_freertos.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -151,8 +153,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -338,6 +338,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_media.config b/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_media.config index 280393201ae8ecd851cb1bb6cbf248dbe86ec519..f1b5e3ef765f27bc1dcc02537b91d90f5d9e40a4 100644 --- a/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_media.config +++ b/example/peripheral/media/media_test/configs/phytiumpi_aarch32_firefly_media.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -CONFIG_ARM_FPU_ABI_SOFT=y -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration @@ -151,8 +153,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -338,6 +338,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_freertos.config b/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_freertos.config index 61a1e94e56aa7e9667d6588ff40f1bbe63ddcb88..6c0887177749b3d4fb7dbcf7e029ef3c474449b1 100644 --- a/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_freertos.config +++ b/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_freertos.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -153,8 +147,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -336,6 +328,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_media.config b/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_media.config index 8bde9a8e708c7cea026df220bfdf286eef62dfde..8132553f625730145254543a5f0078ae0499a170 100644 --- a/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_media.config +++ b/example/peripheral/media/media_test/configs/phytiumpi_aarch64_firefly_media.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y @@ -153,8 +147,6 @@ CONFIG_USE_MEDIA=y # # Media Configuration # -CONFIG_ENABLE_FMEDIA=y -# CONFIG_ENABLE_FDC_DP is not set CONFIG_ENABLE_FDC_DP_USE_LIB=y # end of Media Configuration @@ -336,6 +328,7 @@ CONFIG_USE_BACKTRACE=y # CONFIG_USE_FREEMODBUS is not set # CONFIG_USE_CHERRY_USB is not set # CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set # end of Third-party configuration # diff --git a/example/peripheral/media/media_test/sdkconfig b/example/peripheral/media/media_test/sdkconfig index 87f20cd80f2c33005371f808b6b53ad63e78de5c..8132553f625730145254543a5f0078ae0499a170 100644 --- a/example/peripheral/media/media_test/sdkconfig +++ b/example/peripheral/media/media_test/sdkconfig @@ -38,14 +38,13 @@ CONFIG_GCC_CODE_MODEL_SMALL=y # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set -CONFIG_TARGET_E2000Q=y +CONFIG_TARGET_PHYTIUMPI=y +# CONFIG_TARGET_E2000Q is not set # CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set # CONFIG_TARGET_D2000 is not set -CONFIG_SOC_NAME="e2000" -CONFIG_TARGET_TYPE_NAME="q" +CONFIG_SOC_NAME="phytiumpi" CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 @@ -61,7 +60,7 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_BOARD_NAME="demo" +CONFIG_BOARD_NAME="firefly" # CONFIG_USE_SPI_IOPAD is not set # CONFIG_USE_GPIO_IOPAD is not set # CONFIG_USE_CAN_IOPAD is not set @@ -71,7 +70,7 @@ CONFIG_BOARD_NAME="demo" # CONFIG_USE_TACHO_IOPAD is not set # CONFIG_USE_UART_IOPAD is not set # CONFIG_USE_THIRD_PARTY_IOPAD is not set -CONFIG_E2000Q_DEMO_BOARD=y +CONFIG_FIREFLY_DEMO_BOARD=y # # IO mux configuration when board start up diff --git a/example/peripheral/media/media_test/sdkconfig.h b/example/peripheral/media/media_test/sdkconfig.h index 5d3ef050613530551692a20356834aa4d4e4d80c..0570d6c44b79e9de11bdcfb15171f46d07264dc0 100644 --- a/example/peripheral/media/media_test/sdkconfig.h +++ b/example/peripheral/media/media_test/sdkconfig.h @@ -36,14 +36,13 @@ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ -#define CONFIG_TARGET_E2000Q +#define CONFIG_TARGET_PHYTIUMPI +/* CONFIG_TARGET_E2000Q is not set */ /* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ /* CONFIG_TARGET_D2000 is not set */ -#define CONFIG_SOC_NAME "e2000" -#define CONFIG_TARGET_TYPE_NAME "q" +#define CONFIG_SOC_NAME "phytiumpi" #define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 @@ -58,7 +57,7 @@ /* Board Configuration */ -#define CONFIG_BOARD_NAME "demo" +#define CONFIG_BOARD_NAME "firefly" /* CONFIG_USE_SPI_IOPAD is not set */ /* CONFIG_USE_GPIO_IOPAD is not set */ /* CONFIG_USE_CAN_IOPAD is not set */ @@ -68,7 +67,7 @@ /* CONFIG_USE_TACHO_IOPAD is not set */ /* CONFIG_USE_UART_IOPAD is not set */ /* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ -#define CONFIG_E2000Q_DEMO_BOARD +#define CONFIG_FIREFLY_DEMO_BOARD /* IO mux configuration when board start up */ diff --git a/example/peripheral/pwm/configs/e2000d_aarch64_demo_pwm.config b/example/peripheral/pwm/configs/e2000d_aarch64_demo_pwm.config index 276f9aec99b69f4b6b0ba7389e7ca49287fc89f3..9c0e0a81099b27547896be0e57fef2b175ad4184 100644 --- a/example/peripheral/pwm/configs/e2000d_aarch64_demo_pwm.config +++ b/example/peripheral/pwm/configs/e2000d_aarch64_demo_pwm.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/pwm/configs/e2000q_aarch32_demo_pwm.config b/example/peripheral/pwm/configs/e2000q_aarch32_demo_pwm.config index 32dc16742b4cafaa3d3a17c3b1b6b7624b0bd42e..7be8d03549e7377a3a9447e3b42c8e5f0ff123bd 100644 --- a/example/peripheral/pwm/configs/e2000q_aarch32_demo_pwm.config +++ b/example/peripheral/pwm/configs/e2000q_aarch32_demo_pwm.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/pwm/configs/e2000q_aarch64_demo_pwm.config b/example/peripheral/pwm/configs/e2000q_aarch64_demo_pwm.config index e9c68b9284a0a8824953d7f82fae162ec158bdf8..64385bbbdd77814a84779199ac098bb2f0d460c2 100644 --- a/example/peripheral/pwm/configs/e2000q_aarch64_demo_pwm.config +++ b/example/peripheral/pwm/configs/e2000q_aarch64_demo_pwm.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/pwm/configs/phytiumpi_aarch32_firefly_pwm.config b/example/peripheral/pwm/configs/phytiumpi_aarch32_firefly_pwm.config index bf349c4a9840b680c4b363c9c54916838c366ebc..731e1af667ea014c20b37b366272cbc1a37ad772 100644 --- a/example/peripheral/pwm/configs/phytiumpi_aarch32_firefly_pwm.config +++ b/example/peripheral/pwm/configs/phytiumpi_aarch32_firefly_pwm.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/pwm/configs/phytiumpi_aarch64_firefly_pwm.config b/example/peripheral/pwm/configs/phytiumpi_aarch64_firefly_pwm.config index 6843c207cc451ddc9659a1d84ad2cbcc40590194..7b352d6415ea8b235f56732437d9cf77e0b69016 100644 --- a/example/peripheral/pwm/configs/phytiumpi_aarch64_firefly_pwm.config +++ b/example/peripheral/pwm/configs/phytiumpi_aarch64_firefly_pwm.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/pwm/sdkconfig b/example/peripheral/pwm/sdkconfig index 43e74e50583a8148d5644f9f3c3f9183f7c37e31..7b352d6415ea8b235f56732437d9cf77e0b69016 100644 --- a/example/peripheral/pwm/sdkconfig +++ b/example/peripheral/pwm/sdkconfig @@ -9,8 +9,8 @@ CONFIG_ARCH_NAME="armv8" # # Arm architecture configuration # -# CONFIG_ARCH_ARMV8_AARCH64 is not set -CONFIG_ARCH_ARMV8_AARCH32=y +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set # # Compiler configuration @@ -18,42 +18,35 @@ CONFIG_ARCH_ARMV8_AARCH32=y CONFIG_ARM_GCC_SELECT=y # CONFIG_ARM_CLANG_SELECT is not set CONFIG_TOOLCHAIN_NAME="gcc" -CONFIG_TARGET_ARMV8_AARCH32=y -CONFIG_ARCH_EXECUTION_STATE="aarch32" - -# -# Fpu configuration -# -CONFIG_CRYPTO_NEON_FP_ARMV8=y -# CONFIG_VFPV4 is not set -# CONFIG_VFPV4_D16 is not set -# CONFIG_VFPV3 is not set -# CONFIG_VFPV3_D16 is not set -CONFIG_ARM_MFPU="crypto-neon-fp-armv8" -CONFIG_MFLOAT_ABI_HARD=y -# CONFIG_MFLOAT_ABI_SOFTFP is not set -CONFIG_ARM_MFLOAT_ABI="hard" -# end of Fpu configuration +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set # end of Compiler configuration CONFIG_USE_CACHE=y CONFIG_USE_MMU=y -CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# CONFIG_BOOT_WITH_FLUSH_CACHE is not set +# CONFIG_MMU_DEBUG_PRINTS is not set # end of Arm architecture configuration # end of Arch configuration # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_PHYTIUMPI=y # CONFIG_TARGET_E2000Q is not set -CONFIG_TARGET_E2000D=y +# CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set # CONFIG_TARGET_D2000 is not set -CONFIG_SOC_NAME="e2000" -CONFIG_TARGET_TYPE_NAME="d" -CONFIG_SOC_CORE_NUM=2 +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 @@ -68,22 +61,21 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_E2000D_DEMO_BOARD=y -CONFIG_BOARD_NAME="demo" - -# -# IO mux configuration when board start up -# +CONFIG_BOARD_NAME="firefly" # CONFIG_USE_SPI_IOPAD is not set # CONFIG_USE_GPIO_IOPAD is not set # CONFIG_USE_CAN_IOPAD is not set # CONFIG_USE_QSPI_IOPAD is not set # CONFIG_USE_PWM_IOPAD is not set -# CONFIG_USE_ADC_IOPAD is not set # CONFIG_USE_MIO_IOPAD is not set # CONFIG_USE_TACHO_IOPAD is not set # CONFIG_USE_UART_IOPAD is not set # CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# # end of IO mux configuration when board start up # CONFIG_CUS_DEMO_BOARD is not set @@ -214,12 +206,8 @@ CONFIG_DEFAULT_LINKER_SCRIPT=y CONFIG_IMAGE_LOAD_ADDRESS=0x80100000 CONFIG_IMAGE_MAX_LENGTH=0x1000000 CONFIG_HEAP_SIZE=1 -CONFIG_SVC_STACK_SIZE=0x1000 -CONFIG_SYS_STACK_SIZE=0x1000 -CONFIG_IRQ_STACK_SIZE=0x1000 -CONFIG_ABORT_STACK_SIZE=0x1000 -CONFIG_FIQ_STACK_SIZE=0x1000 -CONFIG_UNDEF_STACK_SIZE=0x1000 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 # end of Linker Options # end of Build setup diff --git a/example/peripheral/pwm/sdkconfig.h b/example/peripheral/pwm/sdkconfig.h index a46a7518196bfce9be06e7441b648a56f475705c..ef336697f7e0867b461df56555566e3d96f96ece 100644 --- a/example/peripheral/pwm/sdkconfig.h +++ b/example/peripheral/pwm/sdkconfig.h @@ -10,47 +10,41 @@ /* Arm architecture configuration */ -/* CONFIG_ARCH_ARMV8_AARCH64 is not set */ -#define CONFIG_ARCH_ARMV8_AARCH32 +#define CONFIG_ARCH_ARMV8_AARCH64 +/* CONFIG_ARCH_ARMV8_AARCH32 is not set */ /* Compiler configuration */ #define CONFIG_ARM_GCC_SELECT /* CONFIG_ARM_CLANG_SELECT is not set */ #define CONFIG_TOOLCHAIN_NAME "gcc" -#define CONFIG_TARGET_ARMV8_AARCH32 -#define CONFIG_ARCH_EXECUTION_STATE "aarch32" - -/* Fpu configuration */ - -#define CONFIG_CRYPTO_NEON_FP_ARMV8 -/* CONFIG_VFPV4 is not set */ -/* CONFIG_VFPV4_D16 is not set */ -/* CONFIG_VFPV3 is not set */ -/* CONFIG_VFPV3_D16 is not set */ -#define CONFIG_ARM_MFPU "crypto-neon-fp-armv8" -#define CONFIG_MFLOAT_ABI_HARD -/* CONFIG_MFLOAT_ABI_SOFTFP is not set */ -#define CONFIG_ARM_MFLOAT_ABI "hard" -/* end of Fpu configuration */ +#define CONFIG_TARGET_ARMV8_AARCH64 +#define CONFIG_ARCH_EXECUTION_STATE "aarch64" +#define CONFIG_ARM_NEON +#define CONFIG_ARM_CRC +#define CONFIG_ARM_CRYPTO +#define CONFIG_ARM_FLOAT_POINT +/* CONFIG_GCC_CODE_MODEL_TINY is not set */ +#define CONFIG_GCC_CODE_MODEL_SMALL +/* CONFIG_GCC_CODE_MODEL_LARGE is not set */ /* end of Compiler configuration */ #define CONFIG_USE_CACHE #define CONFIG_USE_MMU -#define CONFIG_USE_AARCH64_L1_TO_AARCH32 +/* CONFIG_BOOT_WITH_FLUSH_CACHE is not set */ +/* CONFIG_MMU_DEBUG_PRINTS is not set */ /* end of Arm architecture configuration */ /* end of Arch configuration */ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ +#define CONFIG_TARGET_PHYTIUMPI /* CONFIG_TARGET_E2000Q is not set */ -#define CONFIG_TARGET_E2000D +/* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ /* CONFIG_TARGET_D2000 is not set */ -#define CONFIG_SOC_NAME "e2000" -#define CONFIG_TARGET_TYPE_NAME "d" -#define CONFIG_SOC_CORE_NUM 2 +#define CONFIG_SOC_NAME "phytiumpi" +#define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 #define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 @@ -64,21 +58,20 @@ /* Board Configuration */ -#define CONFIG_E2000D_DEMO_BOARD -#define CONFIG_BOARD_NAME "demo" - -/* IO mux configuration when board start up */ - +#define CONFIG_BOARD_NAME "firefly" /* CONFIG_USE_SPI_IOPAD is not set */ /* CONFIG_USE_GPIO_IOPAD is not set */ /* CONFIG_USE_CAN_IOPAD is not set */ /* CONFIG_USE_QSPI_IOPAD is not set */ /* CONFIG_USE_PWM_IOPAD is not set */ -/* CONFIG_USE_ADC_IOPAD is not set */ /* CONFIG_USE_MIO_IOPAD is not set */ /* CONFIG_USE_TACHO_IOPAD is not set */ /* CONFIG_USE_UART_IOPAD is not set */ /* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ +#define CONFIG_FIREFLY_DEMO_BOARD + +/* IO mux configuration when board start up */ + /* end of IO mux configuration when board start up */ /* CONFIG_CUS_DEMO_BOARD is not set */ @@ -194,12 +187,8 @@ #define CONFIG_IMAGE_LOAD_ADDRESS 0x80100000 #define CONFIG_IMAGE_MAX_LENGTH 0x1000000 #define CONFIG_HEAP_SIZE 1 -#define CONFIG_SVC_STACK_SIZE 0x1000 -#define CONFIG_SYS_STACK_SIZE 0x1000 -#define CONFIG_IRQ_STACK_SIZE 0x1000 -#define CONFIG_ABORT_STACK_SIZE 0x1000 -#define CONFIG_FIQ_STACK_SIZE 0x1000 -#define CONFIG_UNDEF_STACK_SIZE 0x1000 +#define CONFIG_STACK_SIZE 0x400 +#define CONFIG_FPU_STACK_SIZE 0x1000 /* end of Linker Options */ /* end of Build setup */ diff --git a/example/peripheral/wdt/configs/d2000_aarch64_test_wdt.config b/example/peripheral/wdt/configs/d2000_aarch64_test_wdt.config index 39f6187da3e3f13e80879033361c93b8e13e7cf2..ee1a7a8d47f90a8ec2bda39bcf5e80e0846ff570 100644 --- a/example/peripheral/wdt/configs/d2000_aarch64_test_wdt.config +++ b/example/peripheral/wdt/configs/d2000_aarch64_test_wdt.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/wdt/configs/e2000d_aarch32_demo_wdt.config b/example/peripheral/wdt/configs/e2000d_aarch32_demo_wdt.config index 45ebf6c1431cc3a15db31cfdc4e1089184ebbacf..712ea265eb587d604569800663529cbef34cccab 100644 --- a/example/peripheral/wdt/configs/e2000d_aarch32_demo_wdt.config +++ b/example/peripheral/wdt/configs/e2000d_aarch32_demo_wdt.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/wdt/configs/e2000d_aarch64_demo_wdt.config b/example/peripheral/wdt/configs/e2000d_aarch64_demo_wdt.config index f922d896e947cae56108f753e9ebf7c75ed815c9..57afa948ba258dacf7b86e298801193d28d7a397 100644 --- a/example/peripheral/wdt/configs/e2000d_aarch64_demo_wdt.config +++ b/example/peripheral/wdt/configs/e2000d_aarch64_demo_wdt.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/wdt/configs/e2000q_aarch32_demo_wdt.config b/example/peripheral/wdt/configs/e2000q_aarch32_demo_wdt.config index b65ac0e8abf861770443de5100d8cc3e447222d6..9e241619d30e1d164d1443b27248fdcc78430b51 100644 --- a/example/peripheral/wdt/configs/e2000q_aarch32_demo_wdt.config +++ b/example/peripheral/wdt/configs/e2000q_aarch32_demo_wdt.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/wdt/configs/e2000q_aarch64_demo_wdt.config b/example/peripheral/wdt/configs/e2000q_aarch64_demo_wdt.config index 0122c557582d189a1b4e779773b52c9fd1eef4b8..ba080751e0a2aa49f112f71bcce7c5c219eaf6fb 100644 --- a/example/peripheral/wdt/configs/e2000q_aarch64_demo_wdt.config +++ b/example/peripheral/wdt/configs/e2000q_aarch64_demo_wdt.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/wdt/configs/ft2004_aarch32_dsk_wdt.config b/example/peripheral/wdt/configs/ft2004_aarch32_dsk_wdt.config index 630966840d83ee10d42947c6975bac9048ad0651..aa85f90016ee62753aad281a62c874715bd0c1f6 100644 --- a/example/peripheral/wdt/configs/ft2004_aarch32_dsk_wdt.config +++ b/example/peripheral/wdt/configs/ft2004_aarch32_dsk_wdt.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/wdt/configs/ft2004_aarch64_dsk_wdt.config b/example/peripheral/wdt/configs/ft2004_aarch64_dsk_wdt.config index 70e96196feaf232f3f3dae8d23812b4b59410fac..ddc857b379fd88d36ff96d38be9acaf8c0890ed3 100644 --- a/example/peripheral/wdt/configs/ft2004_aarch64_dsk_wdt.config +++ b/example/peripheral/wdt/configs/ft2004_aarch64_dsk_wdt.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/wdt/configs/phytiumpi_aarch32_firefly_wdt.config b/example/peripheral/wdt/configs/phytiumpi_aarch32_firefly_wdt.config index 87a06fb9d77fb7aab13bfd1e2a5a83edb182a5d6..83000fb68eb16c4001bba94963c9ad98e8c4f9fd 100644 --- a/example/peripheral/wdt/configs/phytiumpi_aarch32_firefly_wdt.config +++ b/example/peripheral/wdt/configs/phytiumpi_aarch32_firefly_wdt.config @@ -24,13 +24,15 @@ CONFIG_ARCH_EXECUTION_STATE="aarch32" # # Fpu configuration # -CONFIG_ARCH_FPU=y -# CONFIG_ARCH_FPU_VFP_V3 is not set -CONFIG_ARCH_FPU_VFP_V4=y -CONFIG_ARM_DPFPU32=y -# CONFIG_ARM_FPU_ABI_SOFT is not set -CONFIG_ARM_NEON=y -CONFIG_ARM_FPU_SYMBOL="crypto-neon-fp-armv8" +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" # end of Fpu configuration # end of Compiler configuration diff --git a/example/peripheral/wdt/configs/phytiumpi_aarch64_firefly_wdt.config b/example/peripheral/wdt/configs/phytiumpi_aarch64_firefly_wdt.config index e119961660411fdd802b4da7a2ec7a46997cdbc1..c278a5316f7ad65f60faecba058a730341b44aa7 100644 --- a/example/peripheral/wdt/configs/phytiumpi_aarch64_firefly_wdt.config +++ b/example/peripheral/wdt/configs/phytiumpi_aarch64_firefly_wdt.config @@ -20,13 +20,7 @@ CONFIG_ARM_GCC_SELECT=y CONFIG_TOOLCHAIN_NAME="gcc" CONFIG_TARGET_ARMV8_AARCH64=y CONFIG_ARCH_EXECUTION_STATE="aarch64" - -# -# Fpu configuration -# CONFIG_ARM_NEON=y -# end of Fpu configuration - CONFIG_ARM_CRC=y CONFIG_ARM_CRYPTO=y CONFIG_ARM_FLOAT_POINT=y diff --git a/example/peripheral/wdt/sdkconfig b/example/peripheral/wdt/sdkconfig index 35637bf1b541be275c0cc309122c38852200bbe5..c278a5316f7ad65f60faecba058a730341b44aa7 100644 --- a/example/peripheral/wdt/sdkconfig +++ b/example/peripheral/wdt/sdkconfig @@ -9,8 +9,8 @@ CONFIG_ARCH_NAME="armv8" # # Arm architecture configuration # -# CONFIG_ARCH_ARMV8_AARCH64 is not set -CONFIG_ARCH_ARMV8_AARCH32=y +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set # # Compiler configuration @@ -18,46 +18,40 @@ CONFIG_ARCH_ARMV8_AARCH32=y CONFIG_ARM_GCC_SELECT=y # CONFIG_ARM_CLANG_SELECT is not set CONFIG_TOOLCHAIN_NAME="gcc" -CONFIG_TARGET_ARMV8_AARCH32=y -CONFIG_ARCH_EXECUTION_STATE="aarch32" - -# -# Fpu configuration -# -CONFIG_CRYPTO_NEON_FP_ARMV8=y -# CONFIG_VFPV4 is not set -# CONFIG_VFPV4_D16 is not set -# CONFIG_VFPV3 is not set -# CONFIG_VFPV3_D16 is not set -CONFIG_ARM_MFPU="crypto-neon-fp-armv8" -CONFIG_MFLOAT_ABI_HARD=y -# CONFIG_MFLOAT_ABI_SOFTFP is not set -CONFIG_ARM_MFLOAT_ABI="hard" -# end of Fpu configuration +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set # end of Compiler configuration CONFIG_USE_CACHE=y -# CONFIG_USE_L3CACHE is not set CONFIG_USE_MMU=y -CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# CONFIG_BOOT_WITH_FLUSH_CACHE is not set +# CONFIG_MMU_DEBUG_PRINTS is not set # end of Arm architecture configuration # end of Arch configuration # # Soc configuration # -# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_PHYTIUMPI=y # CONFIG_TARGET_E2000Q is not set # CONFIG_TARGET_E2000D is not set # CONFIG_TARGET_E2000S is not set # CONFIG_TARGET_FT2004 is not set -CONFIG_TARGET_D2000=y -CONFIG_SOC_NAME="d2000" -CONFIG_SOC_CORE_NUM=8 +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y # CONFIG_USE_SPINLOCK is not set CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set @@ -67,12 +61,23 @@ CONFIG_DEFAULT_DEBUG_PRINT_UART1=y # # Board Configuration # -CONFIG_BOARD_NAME="test" -CONFIG_D2000_TEST_BOARD=y +CONFIG_BOARD_NAME="firefly" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y # # IO mux configuration when board start up # +# end of IO mux configuration when board start up + # CONFIG_CUS_DEMO_BOARD is not set # @@ -109,8 +114,8 @@ CONFIG_INTERRUPT_ROLE_MASTER=y # Drivers configuration # CONFIG_USE_IOMUX=y -CONFIG_ENABLE_IOCTRL=y -# CONFIG_ENABLE_IOPAD is not set +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y # CONFIG_USE_SPI is not set # CONFIG_USE_QSPI is not set CONFIG_USE_SERIAL=y @@ -201,12 +206,8 @@ CONFIG_DEFAULT_LINKER_SCRIPT=y CONFIG_IMAGE_LOAD_ADDRESS=0x80100000 CONFIG_IMAGE_MAX_LENGTH=0x1000000 CONFIG_HEAP_SIZE=1 -CONFIG_SVC_STACK_SIZE=0x1000 -CONFIG_SYS_STACK_SIZE=0x1000 -CONFIG_IRQ_STACK_SIZE=0x1000 -CONFIG_ABORT_STACK_SIZE=0x1000 -CONFIG_FIQ_STACK_SIZE=0x1000 -CONFIG_UNDEF_STACK_SIZE=0x1000 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 # end of Linker Options # end of Build setup diff --git a/example/peripheral/wdt/sdkconfig.h b/example/peripheral/wdt/sdkconfig.h index 0279ed1f6037fa2c383ba721e435dede600e384c..5c06ff2b38357e5d421ef25ecdff6f64286ec1d2 100644 --- a/example/peripheral/wdt/sdkconfig.h +++ b/example/peripheral/wdt/sdkconfig.h @@ -10,51 +10,46 @@ /* Arm architecture configuration */ -/* CONFIG_ARCH_ARMV8_AARCH64 is not set */ -#define CONFIG_ARCH_ARMV8_AARCH32 +#define CONFIG_ARCH_ARMV8_AARCH64 +/* CONFIG_ARCH_ARMV8_AARCH32 is not set */ /* Compiler configuration */ #define CONFIG_ARM_GCC_SELECT /* CONFIG_ARM_CLANG_SELECT is not set */ #define CONFIG_TOOLCHAIN_NAME "gcc" -#define CONFIG_TARGET_ARMV8_AARCH32 -#define CONFIG_ARCH_EXECUTION_STATE "aarch32" - -/* Fpu configuration */ - -#define CONFIG_CRYPTO_NEON_FP_ARMV8 -/* CONFIG_VFPV4 is not set */ -/* CONFIG_VFPV4_D16 is not set */ -/* CONFIG_VFPV3 is not set */ -/* CONFIG_VFPV3_D16 is not set */ -#define CONFIG_ARM_MFPU "crypto-neon-fp-armv8" -#define CONFIG_MFLOAT_ABI_HARD -/* CONFIG_MFLOAT_ABI_SOFTFP is not set */ -#define CONFIG_ARM_MFLOAT_ABI "hard" -/* end of Fpu configuration */ +#define CONFIG_TARGET_ARMV8_AARCH64 +#define CONFIG_ARCH_EXECUTION_STATE "aarch64" +#define CONFIG_ARM_NEON +#define CONFIG_ARM_CRC +#define CONFIG_ARM_CRYPTO +#define CONFIG_ARM_FLOAT_POINT +/* CONFIG_GCC_CODE_MODEL_TINY is not set */ +#define CONFIG_GCC_CODE_MODEL_SMALL +/* CONFIG_GCC_CODE_MODEL_LARGE is not set */ /* end of Compiler configuration */ #define CONFIG_USE_CACHE -/* CONFIG_USE_L3CACHE is not set */ #define CONFIG_USE_MMU -#define CONFIG_USE_AARCH64_L1_TO_AARCH32 +/* CONFIG_BOOT_WITH_FLUSH_CACHE is not set */ +/* CONFIG_MMU_DEBUG_PRINTS is not set */ /* end of Arm architecture configuration */ /* end of Arch configuration */ /* Soc configuration */ -/* CONFIG_TARGET_PHYTIUMPI is not set */ +#define CONFIG_TARGET_PHYTIUMPI /* CONFIG_TARGET_E2000Q is not set */ /* CONFIG_TARGET_E2000D is not set */ /* CONFIG_TARGET_E2000S is not set */ /* CONFIG_TARGET_FT2004 is not set */ -#define CONFIG_TARGET_D2000 -#define CONFIG_SOC_NAME "d2000" -#define CONFIG_SOC_CORE_NUM 8 +/* CONFIG_TARGET_D2000 is not set */ +#define CONFIG_SOC_NAME "phytiumpi" +#define CONFIG_SOC_CORE_NUM 4 #define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 #define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 #define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 #define CONFIG_F64BIT_MEMORY_LENGTH 0x800000000 +#define CONFIG_TARGET_E2000 /* CONFIG_USE_SPINLOCK is not set */ #define CONFIG_DEFAULT_DEBUG_PRINT_UART1 /* CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set */ @@ -63,11 +58,21 @@ /* Board Configuration */ -#define CONFIG_BOARD_NAME "test" -#define CONFIG_D2000_TEST_BOARD +#define CONFIG_BOARD_NAME "firefly" +/* CONFIG_USE_SPI_IOPAD is not set */ +/* CONFIG_USE_GPIO_IOPAD is not set */ +/* CONFIG_USE_CAN_IOPAD is not set */ +/* CONFIG_USE_QSPI_IOPAD is not set */ +/* CONFIG_USE_PWM_IOPAD is not set */ +/* CONFIG_USE_MIO_IOPAD is not set */ +/* CONFIG_USE_TACHO_IOPAD is not set */ +/* CONFIG_USE_UART_IOPAD is not set */ +/* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ +#define CONFIG_FIREFLY_DEMO_BOARD /* IO mux configuration when board start up */ +/* end of IO mux configuration when board start up */ /* CONFIG_CUS_DEMO_BOARD is not set */ /* Build project name */ @@ -100,8 +105,8 @@ /* Drivers configuration */ #define CONFIG_USE_IOMUX -#define CONFIG_ENABLE_IOCTRL -/* CONFIG_ENABLE_IOPAD is not set */ +/* CONFIG_ENABLE_IOCTRL is not set */ +#define CONFIG_ENABLE_IOPAD /* CONFIG_USE_SPI is not set */ /* CONFIG_USE_QSPI is not set */ #define CONFIG_USE_SERIAL @@ -182,12 +187,8 @@ #define CONFIG_IMAGE_LOAD_ADDRESS 0x80100000 #define CONFIG_IMAGE_MAX_LENGTH 0x1000000 #define CONFIG_HEAP_SIZE 1 -#define CONFIG_SVC_STACK_SIZE 0x1000 -#define CONFIG_SYS_STACK_SIZE 0x1000 -#define CONFIG_IRQ_STACK_SIZE 0x1000 -#define CONFIG_ABORT_STACK_SIZE 0x1000 -#define CONFIG_FIQ_STACK_SIZE 0x1000 -#define CONFIG_UNDEF_STACK_SIZE 0x1000 +#define CONFIG_STACK_SIZE 0x400 +#define CONFIG_FPU_STACK_SIZE 0x1000 /* end of Linker Options */ /* end of Build setup */ diff --git a/example/peripheral/wdt/src/wdt_example.c b/example/peripheral/wdt/src/wdt_example.c index 95373e8c2958a3d14523b68103b32af96eb0ddd2..0293d8ac544d97f6a76fb412bccdfe4a248faa65 100644 --- a/example/peripheral/wdt/src/wdt_example.c +++ b/example/peripheral/wdt/src/wdt_example.c @@ -192,12 +192,6 @@ static void prvAutoReloadTimerCallback(TimerHandle_t xTimer) vPrintf("Auto-reload callback executing, Delete FFreeRTOSWdtQueueReceiveTask and software timer.\r\n"); FFreeRTOSWdtDelete(os_wdt_ctrl_p); } - else - { - FFreeRTOSWdtControl(os_wdt_ctrl_p, FREERTOS_WDT_CTRL_GET_TIMELEFT, &time_left); - vPrintf("Auto-reload callback executing, wdt timeleft=%d\n", time_left); - } - } BaseType_t FFreeRTOSWdtCreate(u32 id) diff --git a/example/system/amp/openamp/README.md b/example/system/amp/openamp/README.md index 8396f7599fb0cedf3befebf7a2c002c952f4a3fd..6a3ca450c54fc71416afa01f965b50ec7fc810f1 100644 --- a/example/system/amp/openamp/README.md +++ b/example/system/amp/openamp/README.md @@ -98,7 +98,7 @@ ![](./figs/E2000D_aarch32_openamp_startup.png) - 2.4 输入 'openamp_echo auto' 运行openamp 测试程序 -- 2.5 结果显示为 +- 2.5 结果显示为(openamp和libmetal版本号可能存在区别) ![aarch32运行结果](figs/aarch32_runtime.png) ![aarch32运行结果](figs/aarch32_runtime1.png) @@ -127,7 +127,7 @@ ![](./figs/E2000D_aarch64_openamp_startup.png) - 2.4 输入 'openamp_echo auto' 运行openamp 测试程序 -- 2.5 结果显示为 +- 2.5 结果显示为(openamp和libmetal版本号可能存在区别) ![aarch64_runtime](figs/aarch64_runtime.png) ![aarch64_runtime](figs/aarch64_runtime1.png) diff --git a/example/system/amp/openamp/core0/src/rpmsg-demo-manager_cmd.c b/example/system/amp/openamp/core0/src/rpmsg-demo-manager_cmd.c index eb90080dbd47a9c11611cc43e0b3255233afeabb..25548d70780bfe9d72cb5012154de081d15e444e 100644 --- a/example/system/amp/openamp/core0/src/rpmsg-demo-manager_cmd.c +++ b/example/system/amp/openamp/core0/src/rpmsg-demo-manager_cmd.c @@ -299,7 +299,7 @@ int FRunningApp(struct rpmsg_device *rdev, void *priv) static int FRpmsgDemoManager(void *platform) { int ret = 0; - rpdev = platform_create_rpmsg_vdev(platform, 0, VIRTIO_DEV_DRIVER, NULL, rpmsg_name_service_bind_cb); + rpdev = platform_create_rpmsg_vdev(platform, 0, VIRTIO_DEV_MASTER, NULL, rpmsg_name_service_bind_cb); if (!rpdev) { DEMO_MANG_MASTER_DEBUG_E("Failed to create rpmsg virtio device.\r\n"); diff --git a/example/system/amp/openamp/core1/src/rpmsg-demo-listening.c b/example/system/amp/openamp/core1/src/rpmsg-demo-listening.c index 85c64e1719aa2ea73b463011ba722a39fc3b9560..bfd7febdb54c67101b1cc409a0304456eb6220b9 100644 --- a/example/system/amp/openamp/core1/src/rpmsg-demo-listening.c +++ b/example/system/amp/openamp/core1/src/rpmsg-demo-listening.c @@ -210,7 +210,7 @@ void rpmsg_listening_task(void *args) } else { - rpdev = platform_create_rpmsg_vdev(platform, 0, VIRTIO_DEV_DEVICE, NULL,NULL); + rpdev = platform_create_rpmsg_vdev(platform, 0, VIRTIO_DEV_SLAVE, NULL,NULL); if (!rpdev) { DEMO_LIST_SLAVE_DEBUG_E("Failed to create rpmsg virtio device.\r\n"); diff --git a/example/system/amp/openamp_for_linux/Kconfig b/example/system/amp/openamp_for_linux/Kconfig new file mode 100644 index 0000000000000000000000000000000000000000..2a352a7b65f99f9bfef2788e6613bdfd10e94c7f --- /dev/null +++ b/example/system/amp/openamp_for_linux/Kconfig @@ -0,0 +1,42 @@ +# +# For a description of the syntax of this configuration file, +# see tools/kconfiglib/kconfig-language.txt. +# + + +mainmenu "Phytium Freertos Configuration" + + menu "Project Configuration" + + menu " Freertos Configuration" + config TARGET_NAME + string "Build Target Name" + default "openamp_for_linux" + help + Build Target name for the demo + + endmenu + + + menu "AMP Config" + + config IPI_IRQ_NUM + int "Communication interruption number between multiple cores" + default 0 + + config IPI_IRQ_NUM_PRIORITY + int "Priority of internuclear communication interruption" + default 16 + + config IPI_CHN_BITMASK + int "Destination IPI mask" + default 255 + help + Each bit represents a CPU, for example, 0x3 represents CPU 0 and CPU 3 in the code. + + endmenu + +endmenu + +source "$(SDK_DIR)/../freertos.kconfig" + diff --git a/example/system/amp/openamp_for_linux/README.md b/example/system/amp/openamp_for_linux/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e0ec806a3a55c2b47959240c8e744ffff03e2d79 --- /dev/null +++ b/example/system/amp/openamp_for_linux/README.md @@ -0,0 +1,108 @@ +# OPENAMP 测试 + +## 1. 例程介绍 + +> 介绍例程的用途,使用场景,相关基本概念,描述用户可以使用例程完成哪些工作
+ +- OpenAMP(Open Asymmetric Multi-processing) 是一个软件架构,为多核之间非对称运行提供软件支持 。 +- OpenAMP 提供了以下关键特性: + +1. 提供生命周期管理 +2. 兼容裸跑、RTOS等不同的软件环境 +3. 兼容linux系统中的 remoteproc, rpmsg and VirtIO 模块 + +- 本例程基于开源openamp项目 + [OpenAMP](https://github.com/OpenAMP/open-amp.git) +- 本例程主要提供了D2000/FT2004/E2000D/E2000Q/PHYTIUMPI Linux与RTOS之间的测试例程 +- 本例程演示rpmsg用法的示例演示应用程序。此应用core0 中的程序为从机程序,core1 中的程序为主机linux程序,其目标是从核程序工作在echo 模式下,主核主动发送数据之后,从机程序会将收到的数据重新回复发送回去 + +- 参阅《飞腾嵌入式OpenAMP技术解决方案与用户操作手册v1.0》配置好linux环境,本例程只提供编译镜像 + [手册链接](https://gitee.com/phytium_embedded/phytium-embedded-docs/tree/master/open-amp) +- 注意linux4.19内核只支持aarch32编译的镜像 *.elf 文件,linux5.1内核支持aarch64和32位编译的镜像。 + +## 2. 如何使用例程 + +> 描述开发平台准备,使用例程配置,构建和下载镜像的过程
+ +### 2.1 硬件配置方法 + +> 哪些硬件平台是支持的,需要哪些外设,例程与开发板哪些IO口相关等(建议附录开发板照片,展示哪些IO口被引出)
+ +1. 准备一块 D2000 、FT2004 、 E2000Q/D 、firefly开发板中任意一款 +2. 将串口连接好电脑,波特率设为 115200-8-1-N + +### 2.2 SDK配置方法 + +> 依赖哪些驱动、库和第三方组件,如何完成配置(列出需要使能的关键配置项)
+ +本例子已经提供好具体的编译指令,以下进行介绍: +- make 将目录下的工程进行编译 +- make clean 将目录下的工程进行清理 +- make image 将目录下的工程进行编译,并将生成的elf 复制到目标地址 +- make list_kconfig 当前工程支持哪些配置文件 +- make load_kconfig LOAD_CONFIG_NAME= 将预设配置加载至工程中 +- make menuconfig 配置目录下的参数变量 +- make backup_kconfig 将目录下的sdkconfig 备份到./configs下 + +具体使用方法为: +- 在当前目录下 +- 执行以上指令 + +### 2.3 构建和下载 + +> 描述构建、烧录下载镜像的过程,列出相关的命令
+ +#### OpenAMP 配置 + +- 以E2000D为例,加载E2000D aarch32位,输入 ` make config_e2000d_aarch32 ` + +![OpenAMP配置](./figs/OpenAmpConfig.png) + +- Destination IPI mask : ipi 中断中,用于唤醒其他核心的掩码 + +![Core0构建](figs/Core0_BUILD_.png) + +- Baremetal config -> Select mem default attribute : 提供内存属性选择 +- Remoteproc use ipi : 使用ipi 中断模式进行提醒 +- Openamp resource address : OpenAMP 中共享资源表中地址 +- Vring tx address : 共享发送缓冲区的起始地址,同时也是共享buffer 区域的起始地址 +- Vring rx address : 共享接收缓冲区的起始地址 +- table of base physical address of each of the pages in the I/O region : 用于核心间提醒机制的共享内存初始点 + +### 2.4 输出与实验现象 + +> 描述输入输出情况,列出存在哪些输入,对应的输出是什么(建议附录相关现象图片)
+ +#### E2000 aarch32 freertos程序测试 (与linux) + +以E2000为例 + +1. 进入amp/openamp_for_linux 目录 +2. 输入 ` make config_e2000d_aarch32 ` 加载E2000D默认配置项目,其他配置项可以输入 ` make config_ ` 后按tab键查看支持哪些默认配置项目 +3. 在 Sdk common configuration → Use default interrupt configuration → Interrupt role select 选项中选择 use slave role + + ![interrupt_set](./figs/interrupt_set.png) + +4. 目录下输入 "make clean" "make image" ,生成openamp_core0.elf 文件之后,将其拷贝至linux 指定目录下(注意linux加载的镜像名称必须是openamp_core0.elf,否则无法识别到) + +#### E2000 aarch64 freertos程序测试 (仅适用于linux 5.10) + +以E2000为例 + +1. 进入amp/openamp_for_linux 目录 +2. 输入 ` make config_e2000d_aarch64 ` 加载E2000D默认配置项目,其他配置项可以输入 ` make config_ ` 后按tab键查看支持哪些默认配置项目 +3. 在 Sdk common configuration → Use default interrupt configuration → Interrupt role select 选项中选择 use slave role + + ![interrupt_set](./figs/interrupt_set.png) + +4. 目录下输入 "make clean" "make image" ,生成openamp_core0.elf 文件之后,将其拷贝至linux 指定目录下(注意linux加载的镜像名称必须是openamp_core0.elf,否则无法识别到) + +## 3. 如何解决问题 (Q&A) +> 主要记录使用例程中可能会遇到的问题,给出相应的解决方案 + +## 4. 修改历史记录 +> 记录例程的重大修改记录,标明修改发生的版本号 + +- 2021-03-21 :v0.1.0 初始化项目 +- 2023-03-09 : v0.2.0 增加对e2000 的支持 +- 2023-11-14 :v0.3.0 重新适配 \ No newline at end of file diff --git a/example/system/amp/openamp_for_linux/configs/d2000_aarch32_test_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/d2000_aarch32_test_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..a959a25f8be38cfecb784b7d72b7084fba5059a9 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/d2000_aarch32_test_openamp_for_linux.config @@ -0,0 +1,393 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +# CONFIG_ARCH_ARMV8_AARCH64 is not set +CONFIG_ARCH_ARMV8_AARCH32=y + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH32=y +CONFIG_ARCH_EXECUTION_STATE="aarch32" + +# +# Fpu configuration +# +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" +# end of Fpu configuration +# end of Compiler configuration + +CONFIG_USE_CACHE=y +# CONFIG_USE_L3CACHE is not set +CONFIG_USE_MMU=y +CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +CONFIG_TARGET_D2000=y +CONFIG_SOC_NAME="d2000" +CONFIG_SOC_CORE_NUM=8 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="test" +CONFIG_D2000_TEST_BOARD=y + +# +# IO mux configuration when board start up +# +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +CONFIG_ENABLE_IOCTRL=y +# CONFIG_ENABLE_IOPAD is not set +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +CONFIG_DEBUG_NOOPT=y +# CONFIG_DEBUG_CUSTOMOPT is not set +# CONFIG_DEBUG_FULLOPT is not set +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_SVC_STACK_SIZE=0x1000 +CONFIG_SYS_STACK_SIZE=0x1000 +CONFIG_IRQ_STACK_SIZE=0x1000 +CONFIG_ABORT_STACK_SIZE=0x1000 +CONFIG_FIQ_STACK_SIZE=0x1000 +CONFIG_UNDEF_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/d2000_aarch64_test_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/d2000_aarch64_test_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..ef6c10e18553579370e48ae81eedf703c79cff10 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/d2000_aarch64_test_openamp_for_linux.config @@ -0,0 +1,383 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +# CONFIG_USE_L3CACHE is not set +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +CONFIG_TARGET_D2000=y +CONFIG_SOC_NAME="d2000" +CONFIG_SOC_CORE_NUM=8 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="test" +CONFIG_D2000_TEST_BOARD=y + +# +# IO mux configuration when board start up +# +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +CONFIG_ENABLE_IOCTRL=y +# CONFIG_ENABLE_IOPAD is not set +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/e2000d_aarch32_demo_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/e2000d_aarch32_demo_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..5e24e1d85eeab7f0b45bc95483d3f800caca5fcf --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/e2000d_aarch32_demo_openamp_for_linux.config @@ -0,0 +1,406 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +# CONFIG_ARCH_ARMV8_AARCH64 is not set +CONFIG_ARCH_ARMV8_AARCH32=y + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH32=y +CONFIG_ARCH_EXECUTION_STATE="aarch32" + +# +# Fpu configuration +# +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" +# end of Fpu configuration +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +CONFIG_TARGET_E2000D=y +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="e2000" +CONFIG_TARGET_TYPE_NAME="d" +CONFIG_SOC_CORE_NUM=2 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_E2000D_DEMO_BOARD=y +CONFIG_BOARD_NAME="demo" + +# +# IO mux configuration when board start up +# +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_ADC_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +CONFIG_DEBUG_NOOPT=y +# CONFIG_DEBUG_CUSTOMOPT is not set +# CONFIG_DEBUG_FULLOPT is not set +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_SVC_STACK_SIZE=0x1000 +CONFIG_SYS_STACK_SIZE=0x1000 +CONFIG_IRQ_STACK_SIZE=0x1000 +CONFIG_ABORT_STACK_SIZE=0x1000 +CONFIG_FIQ_STACK_SIZE=0x1000 +CONFIG_UNDEF_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/e2000d_aarch64_demo_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/e2000d_aarch64_demo_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..d2f328812af15e013cdb274eace191b6bc8a8d2e --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/e2000d_aarch64_demo_openamp_for_linux.config @@ -0,0 +1,396 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +CONFIG_TARGET_E2000D=y +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="e2000" +CONFIG_TARGET_TYPE_NAME="d" +CONFIG_SOC_CORE_NUM=2 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_E2000D_DEMO_BOARD=y +CONFIG_BOARD_NAME="demo" + +# +# IO mux configuration when board start up +# +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_ADC_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/e2000q_aarch32_demo_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/e2000q_aarch32_demo_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..cf9ef606fbeadc7ab683b513fea6efacd3ccbadf --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/e2000q_aarch32_demo_openamp_for_linux.config @@ -0,0 +1,405 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +# CONFIG_ARCH_ARMV8_AARCH64 is not set +CONFIG_ARCH_ARMV8_AARCH32=y + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH32=y +CONFIG_ARCH_EXECUTION_STATE="aarch32" + +# +# Fpu configuration +# +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" +# end of Fpu configuration +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_E2000Q=y +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="e2000" +CONFIG_TARGET_TYPE_NAME="q" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="demo" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_E2000Q_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +CONFIG_DEBUG_NOOPT=y +# CONFIG_DEBUG_CUSTOMOPT is not set +# CONFIG_DEBUG_FULLOPT is not set +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_SVC_STACK_SIZE=0x1000 +CONFIG_SYS_STACK_SIZE=0x1000 +CONFIG_IRQ_STACK_SIZE=0x1000 +CONFIG_ABORT_STACK_SIZE=0x1000 +CONFIG_FIQ_STACK_SIZE=0x1000 +CONFIG_UNDEF_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/e2000q_aarch64_demo_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/e2000q_aarch64_demo_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..f42dfc81571cc3d5147d4bfcae9e2c9482ceecbb --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/e2000q_aarch64_demo_openamp_for_linux.config @@ -0,0 +1,395 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +CONFIG_TARGET_E2000Q=y +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="e2000" +CONFIG_TARGET_TYPE_NAME="q" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="demo" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_E2000Q_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/ft2004_aarch32_dsk_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/ft2004_aarch32_dsk_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..d063c2df5651da461da3fd7031faab735d7abed4 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/ft2004_aarch32_dsk_openamp_for_linux.config @@ -0,0 +1,393 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +# CONFIG_ARCH_ARMV8_AARCH64 is not set +CONFIG_ARCH_ARMV8_AARCH32=y + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH32=y +CONFIG_ARCH_EXECUTION_STATE="aarch32" + +# +# Fpu configuration +# +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" +# end of Fpu configuration +# end of Compiler configuration + +CONFIG_USE_CACHE=y +# CONFIG_USE_L3CACHE is not set +CONFIG_USE_MMU=y +CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +CONFIG_TARGET_FT2004=y +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="ft2004" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="dsk" +CONFIG_FT2004_DSK_BOARD=y + +# +# IO mux configuration when board start up +# +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +CONFIG_ENABLE_IOCTRL=y +# CONFIG_ENABLE_IOPAD is not set +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +CONFIG_DEBUG_NOOPT=y +# CONFIG_DEBUG_CUSTOMOPT is not set +# CONFIG_DEBUG_FULLOPT is not set +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_SVC_STACK_SIZE=0x1000 +CONFIG_SYS_STACK_SIZE=0x1000 +CONFIG_IRQ_STACK_SIZE=0x1000 +CONFIG_ABORT_STACK_SIZE=0x1000 +CONFIG_FIQ_STACK_SIZE=0x1000 +CONFIG_UNDEF_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/ft2004_aarch64_dsk_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/ft2004_aarch64_dsk_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..613fa5cee506f30a68207d2c4d2359ab36f338b0 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/ft2004_aarch64_dsk_openamp_for_linux.config @@ -0,0 +1,383 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +# CONFIG_USE_L3CACHE is not set +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +# CONFIG_TARGET_PHYTIUMPI is not set +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +CONFIG_TARGET_FT2004=y +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="ft2004" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="dsk" +CONFIG_FT2004_DSK_BOARD=y + +# +# IO mux configuration when board start up +# +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +CONFIG_ENABLE_IOCTRL=y +# CONFIG_ENABLE_IOPAD is not set +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch32_firefly_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch32_firefly_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..5551fc10ccd2a65136201d53834cafa7354b61a8 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch32_firefly_openamp_for_linux.config @@ -0,0 +1,404 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +# CONFIG_ARCH_ARMV8_AARCH64 is not set +CONFIG_ARCH_ARMV8_AARCH32=y + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH32=y +CONFIG_ARCH_EXECUTION_STATE="aarch32" + +# +# Fpu configuration +# +CONFIG_CRYPTO_NEON_FP_ARMV8=y +# CONFIG_VFPV4 is not set +# CONFIG_VFPV4_D16 is not set +# CONFIG_VFPV3 is not set +# CONFIG_VFPV3_D16 is not set +CONFIG_ARM_MFPU="crypto-neon-fp-armv8" +CONFIG_MFLOAT_ABI_HARD=y +# CONFIG_MFLOAT_ABI_SOFTFP is not set +CONFIG_ARM_MFLOAT_ABI="hard" +# end of Fpu configuration +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_USE_AARCH64_L1_TO_AARCH32=y +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +CONFIG_TARGET_PHYTIUMPI=y +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="firefly" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +CONFIG_DEBUG_NOOPT=y +# CONFIG_DEBUG_CUSTOMOPT is not set +# CONFIG_DEBUG_FULLOPT is not set +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_SVC_STACK_SIZE=0x1000 +CONFIG_SYS_STACK_SIZE=0x1000 +CONFIG_IRQ_STACK_SIZE=0x1000 +CONFIG_ABORT_STACK_SIZE=0x1000 +CONFIG_FIQ_STACK_SIZE=0x1000 +CONFIG_UNDEF_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch64_firefly_openamp_for_linux.config b/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch64_firefly_openamp_for_linux.config new file mode 100644 index 0000000000000000000000000000000000000000..ff08d6cd941f24e2a3ec29afa0b2177011479277 --- /dev/null +++ b/example/system/amp/openamp_for_linux/configs/phytiumpi_aarch64_firefly_openamp_for_linux.config @@ -0,0 +1,394 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +CONFIG_TARGET_PHYTIUMPI=y +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="firefly" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/figs/Core0_BUILD_.png b/example/system/amp/openamp_for_linux/figs/Core0_BUILD_.png new file mode 100644 index 0000000000000000000000000000000000000000..9ff221c0e15f5ed626bf38eea5e9cce6c2787528 Binary files /dev/null and b/example/system/amp/openamp_for_linux/figs/Core0_BUILD_.png differ diff --git a/example/system/amp/openamp_for_linux/figs/OpenAmpConfig.png b/example/system/amp/openamp_for_linux/figs/OpenAmpConfig.png new file mode 100644 index 0000000000000000000000000000000000000000..3d3da38d9715b322ba4f7d3aef81f62b1e5804c8 Binary files /dev/null and b/example/system/amp/openamp_for_linux/figs/OpenAmpConfig.png differ diff --git a/example/system/amp/openamp_for_linux/figs/interrupt_set.png b/example/system/amp/openamp_for_linux/figs/interrupt_set.png new file mode 100644 index 0000000000000000000000000000000000000000..ba3a68d2444ddda8838abc31790cbb8cf47fe372 Binary files /dev/null and b/example/system/amp/openamp_for_linux/figs/interrupt_set.png differ diff --git a/example/system/amp/openamp_for_linux/main.c b/example/system/amp/openamp_for_linux/main.c new file mode 100644 index 0000000000000000000000000000000000000000..f7fdadad98b38ac9bf1e44f5c51177de37792e56 --- /dev/null +++ b/example/system/amp/openamp_for_linux/main.c @@ -0,0 +1,50 @@ +/* + * Copyright : (C) 2022 Phytium Information Technology, Inc. + * All Rights Reserved. + * + * This program is OPEN SOURCE software: you can redistribute it and/or modify it + * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd, + * either version 1.0 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the Phytium Public License for more details. + * + * + * FilePath: main.c + * Date: 2022-02-24 16:56:46 + * LastEditTime: 2022-03-21 17:00:56 + * Description:  This file is for AMP example that running rpmsg_echo_task and open scheduler + * + * Modify History: + * Ver   Who        Date         Changes + * ----- ------     --------    -------------------------------------- + * 1.0 huanghe 2022/03/25 first commit + * 1.1 huanghe 2023/03/09 Adapt OpenAMP routines based on e2000D/Q + * 1.2 liusm 2023/11/20 Update example + */ + + +#include "ftypes.h" +#include "fpsci.h" +#include "shell.h" +#include "fsleep.h" +#include "fprintk.h" +#include "fdebug.h" +#include "shell_port.h" + +extern int rpmsg_echo_task(void); + +int main(void) +{ + BaseType_t ret; + f_printk("freertos %s ,%s \r\n",__DATE__, __TIME__) ; + rpmsg_echo_task(); + vTaskStartScheduler(); /* 启动任务,开启调度 */ + while (1); /* 正常不会执行到这里 */ + +FAIL_EXIT: + printf("failed 0x%x \r\n", ret); + return 0; +} + diff --git a/example/system/amp/openamp_for_linux/makefile b/example/system/amp/openamp_for_linux/makefile new file mode 100644 index 0000000000000000000000000000000000000000..eb659b8893628197b201bab009422b10a42e714d --- /dev/null +++ b/example/system/amp/openamp_for_linux/makefile @@ -0,0 +1,62 @@ +PROJECT_DIR = $(CURDIR) +FREERTOS_SDK_DIR = $(CURDIR)/../../../.. + +USER_CSRC := main.c +USER_CSRC += $(wildcard src/*.c) + +USER_INCLUDE := $(PROJECT_DIR) + +include $(FREERTOS_SDK_DIR)/tools/makeall.mk + +# 用户定义的编译目标文件上传路径 +ifeq ($(OS),Windows_NT) + USR_BOOT_DIR ?= $(subst \,/, $(PHYTIUM_DEV_PATH))/tftp +else + USR_BOOT_DIR ?= /mnt/d/tftboot +endif + +# 设置启动镜像名 +USER_BOOT_IMAGE ?= openamp_core0 + +# 完成编译 +image: + $(MAKE) clean + $(MAKE) all -j + @cp ./$(IMAGE_OUT_NAME).elf $(USR_BOOT_DIR)/$(USER_BOOT_IMAGE).elf +ifdef CONFIG_OUTPUT_BINARY + @cp ./$(IMAGE_OUT_NAME).bin $(USR_BOOT_DIR)/$(USER_BOOT_IMAGE).bin +endif + @ls $(USR_BOOT_DIR)/$(USER_BOOT_IMAGE).* -l + +config_d2000_aarch64: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=d2000_aarch64_test_openamp_for_linux + +config_d2000_aarch32: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=d2000_aarch32_test_openamp_for_linux + +config_ft2004_aarch64: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=ft2004_aarch64_dsk_openamp_for_linux + +config_ft2004_aarch32: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=ft2004_aarch32_dsk_openamp_for_linux + +config_e2000d_aarch64: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=e2000d_aarch64_demo_openamp_for_linux + +config_e2000d_aarch32: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=e2000d_aarch32_demo_openamp_for_linux + +config_e2000q_aarch64: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=e2000q_aarch64_demo_openamp_for_linux + +config_e2000q_aarch32: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=e2000q_aarch32_demo_openamp_for_linux + +config_phytiumpi_aarch64: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=phytiumpi_aarch64_firefly_openamp_for_linux + +config_phytiumpi_aarch32: + $(MAKE) load_kconfig LOAD_CONFIG_NAME=phytiumpi_aarch32_firefly_openamp_for_linux + +menuconfig_core0: + $(MAKE) menuconfig diff --git a/example/system/amp/openamp_for_linux/sdkconfig b/example/system/amp/openamp_for_linux/sdkconfig new file mode 100644 index 0000000000000000000000000000000000000000..ff08d6cd941f24e2a3ec29afa0b2177011479277 --- /dev/null +++ b/example/system/amp/openamp_for_linux/sdkconfig @@ -0,0 +1,394 @@ + +# +# Project Configuration +# + +# +# Freertos Configuration +# +CONFIG_TARGET_NAME="openamp_for_linux" +# end of Freertos Configuration + +# +# AMP Config +# +CONFIG_IPI_IRQ_NUM=9 +CONFIG_IPI_IRQ_NUM_PRIORITY=1 +CONFIG_IPI_CHN_BITMASK=255 +# end of AMP Config +# end of Project Configuration + +CONFIG_USE_FREERTOS=y + +# +# Arch configuration +# +CONFIG_TARGET_ARMv8=y +CONFIG_ARCH_NAME="armv8" + +# +# Arm architecture configuration +# +CONFIG_ARCH_ARMV8_AARCH64=y +# CONFIG_ARCH_ARMV8_AARCH32 is not set + +# +# Compiler configuration +# +CONFIG_ARM_GCC_SELECT=y +# CONFIG_ARM_CLANG_SELECT is not set +CONFIG_TOOLCHAIN_NAME="gcc" +CONFIG_TARGET_ARMV8_AARCH64=y +CONFIG_ARCH_EXECUTION_STATE="aarch64" +CONFIG_ARM_NEON=y +CONFIG_ARM_CRC=y +CONFIG_ARM_CRYPTO=y +CONFIG_ARM_FLOAT_POINT=y +# CONFIG_GCC_CODE_MODEL_TINY is not set +CONFIG_GCC_CODE_MODEL_SMALL=y +# CONFIG_GCC_CODE_MODEL_LARGE is not set +# end of Compiler configuration + +CONFIG_USE_CACHE=y +CONFIG_USE_MMU=y +CONFIG_BOOT_WITH_FLUSH_CACHE=y +# CONFIG_MMU_DEBUG_PRINTS is not set +# end of Arm architecture configuration +# end of Arch configuration + +# +# Soc configuration +# +CONFIG_TARGET_PHYTIUMPI=y +# CONFIG_TARGET_E2000Q is not set +# CONFIG_TARGET_E2000D is not set +# CONFIG_TARGET_E2000S is not set +# CONFIG_TARGET_FT2004 is not set +# CONFIG_TARGET_D2000 is not set +CONFIG_SOC_NAME="phytiumpi" +CONFIG_SOC_CORE_NUM=4 +CONFIG_F32BIT_MEMORY_ADDRESS=0x80000000 +CONFIG_F32BIT_MEMORY_LENGTH=0x80000000 +CONFIG_F64BIT_MEMORY_ADDRESS=0x2000000000 +CONFIG_F64BIT_MEMORY_LENGTH=0x800000000 +CONFIG_TARGET_E2000=y +CONFIG_USE_SPINLOCK=y +CONFIG_DEFAULT_DEBUG_PRINT_UART1=y +# CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set +# CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set +CONFIG_SPIN_MEM=0x80000000 +# end of Soc configuration + +# +# Board Configuration +# +CONFIG_BOARD_NAME="firefly" +# CONFIG_USE_SPI_IOPAD is not set +# CONFIG_USE_GPIO_IOPAD is not set +# CONFIG_USE_CAN_IOPAD is not set +# CONFIG_USE_QSPI_IOPAD is not set +# CONFIG_USE_PWM_IOPAD is not set +# CONFIG_USE_MIO_IOPAD is not set +# CONFIG_USE_TACHO_IOPAD is not set +# CONFIG_USE_UART_IOPAD is not set +# CONFIG_USE_THIRD_PARTY_IOPAD is not set +CONFIG_FIREFLY_DEMO_BOARD=y + +# +# IO mux configuration when board start up +# +# end of IO mux configuration when board start up + +# CONFIG_CUS_DEMO_BOARD is not set + +# +# Build project name +# +# end of Build project name +# end of Board Configuration + +# +# Sdk common configuration +# +CONFIG_LOG_VERBOS=y +# CONFIG_LOG_DEBUG is not set +# CONFIG_LOG_INFO is not set +# CONFIG_LOG_WARN is not set +# CONFIG_LOG_ERROR is not set +# CONFIG_LOG_NONE is not set +# CONFIG_LOG_EXTRA_INFO is not set +CONFIG_LOG_DISPALY_CORE_NUM=y +# CONFIG_BOOTUP_DEBUG_PRINTS is not set +CONFIG_USE_DEFAULT_INTERRUPT_CONFIG=y +# CONFIG_INTERRUPT_ROLE_MASTER is not set +CONFIG_INTERRUPT_ROLE_SLAVE=y +# end of Sdk common configuration + +# +# Image information configuration +# +# CONFIG_IMAGE_INFO is not set +# end of Image information configuration + +# +# Drivers configuration +# +CONFIG_USE_IOMUX=y +# CONFIG_ENABLE_IOCTRL is not set +CONFIG_ENABLE_IOPAD=y +# CONFIG_USE_SPI is not set +# CONFIG_USE_QSPI is not set +CONFIG_USE_SERIAL=y + +# +# Usart Configuration +# +CONFIG_ENABLE_Pl011_UART=y +# end of Usart Configuration + +# CONFIG_USE_GPIO is not set +# CONFIG_USE_ETH is not set +# CONFIG_USE_CAN is not set +# CONFIG_USE_I2C is not set +# CONFIG_USE_TIMER is not set +# CONFIG_USE_MIO is not set +# CONFIG_USE_SDMMC is not set +# CONFIG_USE_PCIE is not set +# CONFIG_USE_WDT is not set +# CONFIG_USE_DMA is not set +# CONFIG_USE_NAND is not set +# CONFIG_USE_RTC is not set +# CONFIG_USE_SATA is not set +# CONFIG_USE_USB is not set +# CONFIG_USE_ADC is not set +# CONFIG_USE_PWM is not set +# CONFIG_USE_IPC is not set +# CONFIG_USE_MEDIA is not set +# CONFIG_USE_SCMI_MHU is not set +# CONFIG_USE_I2S is not set +# end of Drivers configuration + +# +# Build setup +# +CONFIG_CHECK_DEPS=y +# CONFIG_OUTPUT_BINARY is not set + +# +# Optimization options +# +# CONFIG_DEBUG_NOOPT is not set +# CONFIG_DEBUG_CUSTOMOPT is not set +CONFIG_DEBUG_FULLOPT=y +# CONFIG_DEBUG_ENABLE_ALL_WARNING is not set +CONFIG_DEBUG_OPT_UNUSED_SECTIONS=y +CONFIG_DEBUG_LINK_MAP=y +# CONFIG_CCACHE is not set +# CONFIG_ARCH_COVERAGE is not set +# CONFIG_LTO_FULL is not set +# end of Optimization options + +# +# Debug options +# +# CONFIG_WALL_WARNING_ERROR is not set +# CONFIG_STRICT_PROTOTYPES is not set +# CONFIG_DEBUG_SYMBOLS is not set +# CONFIG_FRAME_POINTER is not set +# CONFIG_OUTPUT_ASM_DIS is not set +# CONFIG_ENABLE_WSHADOW is not set +# CONFIG_ENABLE_WUNDEF is not set +CONFIG_DOWNGRADE_DIAG_WARNING=y +# end of Debug options + +# +# Lib +# +CONFIG_USE_COMPILE_CHAIN=y +# CONFIG_USE_NEWLIB is not set +# CONFIG_USE_USER_DEFINED is not set +# end of Lib + +# CONFIG_ENABLE_CXX is not set + +# +# Linker Options +# +CONFIG_DEFAULT_LINKER_SCRIPT=y +# CONFIG_USER_DEFINED_LD is not set +CONFIG_IMAGE_LOAD_ADDRESS=0xb0100000 +CONFIG_IMAGE_MAX_LENGTH=0x1000000 +CONFIG_HEAP_SIZE=1 +CONFIG_STACK_SIZE=0x400 +CONFIG_FPU_STACK_SIZE=0x1000 +# end of Linker Options +# end of Build setup + +# +# Component Configuration +# + +# +# Freertos Uart Drivers +# +CONFIG_FREERTOS_USE_UART=y +# end of Freertos Uart Drivers + +# +# Freertos Pwm Drivers +# +# CONFIG_FREERTOS_USE_PWM is not set +# end of Freertos Pwm Drivers + +# +# Freertos Qspi Drivers +# +# CONFIG_FREERTOS_USE_QSPI is not set +# end of Freertos Qspi Drivers + +# +# Freertos Wdt Drivers +# +# CONFIG_FREERTOS_USE_WDT is not set +# end of Freertos Wdt Drivers + +# +# Freertos Eth Drivers +# +# CONFIG_FREERTOS_USE_XMAC is not set +# CONFIG_FREERTOS_USE_GMAC is not set +# end of Freertos Eth Drivers + +# +# Freertos Gpio Drivers +# +# CONFIG_FREERTOS_USE_GPIO is not set +# end of Freertos Gpio Drivers + +# +# Freertos Spim Drivers +# +# CONFIG_FREERTOS_USE_FSPIM is not set +# end of Freertos Spim Drivers + +# +# Freertos DMA Drivers +# +# CONFIG_FREERTOS_USE_FDDMA is not set +# CONFIG_FREERTOS_USE_FGDMA is not set +# end of Freertos DMA Drivers + +# +# Freertos Adc Drivers +# +# CONFIG_FREERTOS_USE_ADC is not set +# end of Freertos Adc Drivers + +# +# Freertos Can Drivers +# +# CONFIG_FREERTOS_USE_CAN is not set +# end of Freertos Can Drivers + +# +# Freertos I2c Drivers +# +# CONFIG_FREERTOS_USE_I2C is not set +# end of Freertos I2c Drivers + +# +# Freertos Mio Drivers +# +# CONFIG_FREERTOS_USE_MIO is not set +# end of Freertos Mio Drivers + +# +# Freertos Timer Drivers +# +# CONFIG_FREERTOS_USE_TIMER is not set +# end of Freertos Timer Drivers + +# +# Freertos Media Drivers +# +# CONFIG_FREERTOS_USE_MEDIA is not set +# end of Freertos Media Drivers +# end of Component Configuration + +# +# Third-party configuration +# +# CONFIG_USE_LWIP is not set +CONFIG_USE_LETTER_SHELL=y + +# +# Letter Shell Configuration +# +CONFIG_LS_PL011_UART=y +CONFIG_DEFAULT_LETTER_SHELL_USE_UART1=y +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set +# CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set +# end of Letter Shell Configuration + +CONFIG_USE_AMP=y +CONFIG_USE_LIBMETAL=y + +# +# OpenAmp +# +CONFIG_USE_OPENAMP=y +CONFIG_USE_OPENAMP_IPI=y +CONFIG_OPENAMP_RESOURCES_ADDR=0xc0000000 +CONFIG_VRING_TX_ADDR=0xffffffff +CONFIG_VRING_RX_ADDR=0xffffffff +CONFIG_VRING_SIZE=0x100 +CONFIG_POLL_BASE_ADDR=0xc0224000 +CONFIG_SKIP_SHBUF_IO_WRITE=y +CONFIG_USE_MASTER_VRING_DEFINE=y + +# +# Baremetal config +# +# CONFIG_MEM_NO_CACHE is not set +# CONFIG_MEM_WRITE_THROUGH is not set +CONFIG_MEM_NORMAL=y +# end of Baremetal config +# end of OpenAmp + +# CONFIG_USE_YMODEM is not set +# CONFIG_USE_SFUD is not set +CONFIG_USE_BACKTRACE=y +# CONFIG_USE_FATFS_0_1_4 is not set +CONFIG_USE_TLSF=y +# CONFIG_USE_SPIFFS is not set +# CONFIG_USE_LITTLE_FS is not set +# CONFIG_USE_LVGL is not set +# CONFIG_USE_FREEMODBUS is not set +# CONFIG_USE_CHERRY_USB is not set +# CONFIG_USE_FSL_SDMMC is not set +# CONFIG_USE_FSL_WIFI is not set +# end of Third-party configuration + +# +# FreeRTOS Kernel Configuration +# +CONFIG_FREERTOS_OPTIMIZED_SCHEDULER=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_MAX_PRIORITIES=32 +CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES=13 +CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES=11 +CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1 +CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE=1024 +CONFIG_FREERTOS_MAX_TASK_NAME_LEN=32 +CONFIG_FREERTOS_TIMER_TASK_PRIORITY=1 +CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH=2048 +CONFIG_FREERTOS_TIMER_QUEUE_LENGTH=10 +CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0 +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_USE_TRACE_FACILITY=y +CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS=y +# CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set +CONFIG_FREERTOS_TOTAL_HEAP_SIZE=10240 +CONFIG_FREERTOS_TASK_FPU_SUPPORT=1 +# CONFIG_FREERTOS_USE_POSIX is not set +# end of FreeRTOS Kernel Configuration diff --git a/example/system/amp/openamp_for_linux/sdkconfig.h b/example/system/amp/openamp_for_linux/sdkconfig.h new file mode 100644 index 0000000000000000000000000000000000000000..a4116f85a7bf8daa521d363760599903626e94fd --- /dev/null +++ b/example/system/amp/openamp_for_linux/sdkconfig.h @@ -0,0 +1,350 @@ +#ifndef SDK_CONFIG_H__ +#define SDK_CONFIG_H__ + +/* Project Configuration */ + +/* Freertos Configuration */ + +#define CONFIG_TARGET_NAME "openamp_for_linux" +/* end of Freertos Configuration */ + +/* AMP Config */ + +#define CONFIG_IPI_IRQ_NUM 9 +#define CONFIG_IPI_IRQ_NUM_PRIORITY 1 +#define CONFIG_IPI_CHN_BITMASK 255 +/* end of AMP Config */ +/* end of Project Configuration */ +#define CONFIG_USE_FREERTOS + +/* Arch configuration */ + +#define CONFIG_TARGET_ARMv8 +#define CONFIG_ARCH_NAME "armv8" + +/* Arm architecture configuration */ + +#define CONFIG_ARCH_ARMV8_AARCH64 +/* CONFIG_ARCH_ARMV8_AARCH32 is not set */ + +/* Compiler configuration */ + +#define CONFIG_ARM_GCC_SELECT +/* CONFIG_ARM_CLANG_SELECT is not set */ +#define CONFIG_TOOLCHAIN_NAME "gcc" +#define CONFIG_TARGET_ARMV8_AARCH64 +#define CONFIG_ARCH_EXECUTION_STATE "aarch64" +#define CONFIG_ARM_NEON +#define CONFIG_ARM_CRC +#define CONFIG_ARM_CRYPTO +#define CONFIG_ARM_FLOAT_POINT +/* CONFIG_GCC_CODE_MODEL_TINY is not set */ +#define CONFIG_GCC_CODE_MODEL_SMALL +/* CONFIG_GCC_CODE_MODEL_LARGE is not set */ +/* end of Compiler configuration */ +#define CONFIG_USE_CACHE +#define CONFIG_USE_MMU +#define CONFIG_BOOT_WITH_FLUSH_CACHE +/* CONFIG_MMU_DEBUG_PRINTS is not set */ +/* end of Arm architecture configuration */ +/* end of Arch configuration */ + +/* Soc configuration */ + +#define CONFIG_TARGET_PHYTIUMPI +/* CONFIG_TARGET_E2000Q is not set */ +/* CONFIG_TARGET_E2000D is not set */ +/* CONFIG_TARGET_E2000S is not set */ +/* CONFIG_TARGET_FT2004 is not set */ +/* CONFIG_TARGET_D2000 is not set */ +#define CONFIG_SOC_NAME "phytiumpi" +#define CONFIG_SOC_CORE_NUM 4 +#define CONFIG_F32BIT_MEMORY_ADDRESS 0x80000000 +#define CONFIG_F32BIT_MEMORY_LENGTH 0x80000000 +#define CONFIG_F64BIT_MEMORY_ADDRESS 0x2000000000 +#define CONFIG_F64BIT_MEMORY_LENGTH 0x800000000 +#define CONFIG_TARGET_E2000 +#define CONFIG_USE_SPINLOCK +#define CONFIG_DEFAULT_DEBUG_PRINT_UART1 +/* CONFIG_DEFAULT_DEBUG_PRINT_UART0 is not set */ +/* CONFIG_DEFAULT_DEBUG_PRINT_UART2 is not set */ +#define CONFIG_SPIN_MEM 0x80000000 +/* end of Soc configuration */ + +/* Board Configuration */ + +#define CONFIG_BOARD_NAME "firefly" +/* CONFIG_USE_SPI_IOPAD is not set */ +/* CONFIG_USE_GPIO_IOPAD is not set */ +/* CONFIG_USE_CAN_IOPAD is not set */ +/* CONFIG_USE_QSPI_IOPAD is not set */ +/* CONFIG_USE_PWM_IOPAD is not set */ +/* CONFIG_USE_MIO_IOPAD is not set */ +/* CONFIG_USE_TACHO_IOPAD is not set */ +/* CONFIG_USE_UART_IOPAD is not set */ +/* CONFIG_USE_THIRD_PARTY_IOPAD is not set */ +#define CONFIG_FIREFLY_DEMO_BOARD + +/* IO mux configuration when board start up */ + +/* end of IO mux configuration when board start up */ +/* CONFIG_CUS_DEMO_BOARD is not set */ + +/* Build project name */ + +/* end of Build project name */ +/* end of Board Configuration */ + +/* Sdk common configuration */ + +#define CONFIG_LOG_VERBOS +/* CONFIG_LOG_DEBUG is not set */ +/* CONFIG_LOG_INFO is not set */ +/* CONFIG_LOG_WARN is not set */ +/* CONFIG_LOG_ERROR is not set */ +/* CONFIG_LOG_NONE is not set */ +/* CONFIG_LOG_EXTRA_INFO is not set */ +#define CONFIG_LOG_DISPALY_CORE_NUM +/* CONFIG_BOOTUP_DEBUG_PRINTS is not set */ +#define CONFIG_USE_DEFAULT_INTERRUPT_CONFIG +/* CONFIG_INTERRUPT_ROLE_MASTER is not set */ +#define CONFIG_INTERRUPT_ROLE_SLAVE +/* end of Sdk common configuration */ + +/* Image information configuration */ + +/* CONFIG_IMAGE_INFO is not set */ +/* end of Image information configuration */ + +/* Drivers configuration */ + +#define CONFIG_USE_IOMUX +/* CONFIG_ENABLE_IOCTRL is not set */ +#define CONFIG_ENABLE_IOPAD +/* CONFIG_USE_SPI is not set */ +/* CONFIG_USE_QSPI is not set */ +#define CONFIG_USE_SERIAL + +/* Usart Configuration */ + +#define CONFIG_ENABLE_Pl011_UART +/* end of Usart Configuration */ +/* CONFIG_USE_GPIO is not set */ +/* CONFIG_USE_ETH is not set */ +/* CONFIG_USE_CAN is not set */ +/* CONFIG_USE_I2C is not set */ +/* CONFIG_USE_TIMER is not set */ +/* CONFIG_USE_MIO is not set */ +/* CONFIG_USE_SDMMC is not set */ +/* CONFIG_USE_PCIE is not set */ +/* CONFIG_USE_WDT is not set */ +/* CONFIG_USE_DMA is not set */ +/* CONFIG_USE_NAND is not set */ +/* CONFIG_USE_RTC is not set */ +/* CONFIG_USE_SATA is not set */ +/* CONFIG_USE_USB is not set */ +/* CONFIG_USE_ADC is not set */ +/* CONFIG_USE_PWM is not set */ +/* CONFIG_USE_IPC is not set */ +/* CONFIG_USE_MEDIA is not set */ +/* CONFIG_USE_SCMI_MHU is not set */ +/* CONFIG_USE_I2S is not set */ +/* end of Drivers configuration */ + +/* Build setup */ + +#define CONFIG_CHECK_DEPS +/* CONFIG_OUTPUT_BINARY is not set */ + +/* Optimization options */ + +/* CONFIG_DEBUG_NOOPT is not set */ +/* CONFIG_DEBUG_CUSTOMOPT is not set */ +#define CONFIG_DEBUG_FULLOPT +/* CONFIG_DEBUG_ENABLE_ALL_WARNING is not set */ +#define CONFIG_DEBUG_OPT_UNUSED_SECTIONS +#define CONFIG_DEBUG_LINK_MAP +/* CONFIG_CCACHE is not set */ +/* CONFIG_ARCH_COVERAGE is not set */ +/* CONFIG_LTO_FULL is not set */ +/* end of Optimization options */ + +/* Debug options */ + +/* CONFIG_WALL_WARNING_ERROR is not set */ +/* CONFIG_STRICT_PROTOTYPES is not set */ +/* CONFIG_DEBUG_SYMBOLS is not set */ +/* CONFIG_FRAME_POINTER is not set */ +/* CONFIG_OUTPUT_ASM_DIS is not set */ +/* CONFIG_ENABLE_WSHADOW is not set */ +/* CONFIG_ENABLE_WUNDEF is not set */ +#define CONFIG_DOWNGRADE_DIAG_WARNING +/* end of Debug options */ + +/* Lib */ + +#define CONFIG_USE_COMPILE_CHAIN +/* CONFIG_USE_NEWLIB is not set */ +/* CONFIG_USE_USER_DEFINED is not set */ +/* end of Lib */ +/* CONFIG_ENABLE_CXX is not set */ + +/* Linker Options */ + +#define CONFIG_DEFAULT_LINKER_SCRIPT +/* CONFIG_USER_DEFINED_LD is not set */ +#define CONFIG_IMAGE_LOAD_ADDRESS 0xb0100000 +#define CONFIG_IMAGE_MAX_LENGTH 0x1000000 +#define CONFIG_HEAP_SIZE 1 +#define CONFIG_STACK_SIZE 0x400 +#define CONFIG_FPU_STACK_SIZE 0x1000 +/* end of Linker Options */ +/* end of Build setup */ + +/* Component Configuration */ + +/* Freertos Uart Drivers */ + +#define CONFIG_FREERTOS_USE_UART +/* end of Freertos Uart Drivers */ + +/* Freertos Pwm Drivers */ + +/* CONFIG_FREERTOS_USE_PWM is not set */ +/* end of Freertos Pwm Drivers */ + +/* Freertos Qspi Drivers */ + +/* CONFIG_FREERTOS_USE_QSPI is not set */ +/* end of Freertos Qspi Drivers */ + +/* Freertos Wdt Drivers */ + +/* CONFIG_FREERTOS_USE_WDT is not set */ +/* end of Freertos Wdt Drivers */ + +/* Freertos Eth Drivers */ + +/* CONFIG_FREERTOS_USE_XMAC is not set */ +/* CONFIG_FREERTOS_USE_GMAC is not set */ +/* end of Freertos Eth Drivers */ + +/* Freertos Gpio Drivers */ + +/* CONFIG_FREERTOS_USE_GPIO is not set */ +/* end of Freertos Gpio Drivers */ + +/* Freertos Spim Drivers */ + +/* CONFIG_FREERTOS_USE_FSPIM is not set */ +/* end of Freertos Spim Drivers */ + +/* Freertos DMA Drivers */ + +/* CONFIG_FREERTOS_USE_FDDMA is not set */ +/* CONFIG_FREERTOS_USE_FGDMA is not set */ +/* end of Freertos DMA Drivers */ + +/* Freertos Adc Drivers */ + +/* CONFIG_FREERTOS_USE_ADC is not set */ +/* end of Freertos Adc Drivers */ + +/* Freertos Can Drivers */ + +/* CONFIG_FREERTOS_USE_CAN is not set */ +/* end of Freertos Can Drivers */ + +/* Freertos I2c Drivers */ + +/* CONFIG_FREERTOS_USE_I2C is not set */ +/* end of Freertos I2c Drivers */ + +/* Freertos Mio Drivers */ + +/* CONFIG_FREERTOS_USE_MIO is not set */ +/* end of Freertos Mio Drivers */ + +/* Freertos Timer Drivers */ + +/* CONFIG_FREERTOS_USE_TIMER is not set */ +/* end of Freertos Timer Drivers */ + +/* Freertos Media Drivers */ + +/* CONFIG_FREERTOS_USE_MEDIA is not set */ +/* end of Freertos Media Drivers */ +/* end of Component Configuration */ + +/* Third-party configuration */ + +/* CONFIG_USE_LWIP is not set */ +#define CONFIG_USE_LETTER_SHELL + +/* Letter Shell Configuration */ + +#define CONFIG_LS_PL011_UART +#define CONFIG_DEFAULT_LETTER_SHELL_USE_UART1 +/* CONFIG_DEFAULT_LETTER_SHELL_USE_UART0 is not set */ +/* CONFIG_DEFAULT_LETTER_SHELL_USE_UART2 is not set */ +/* end of Letter Shell Configuration */ +#define CONFIG_USE_AMP +#define CONFIG_USE_LIBMETAL + +/* OpenAmp */ + +#define CONFIG_USE_OPENAMP +#define CONFIG_USE_OPENAMP_IPI +#define CONFIG_OPENAMP_RESOURCES_ADDR 0xc0000000 +#define CONFIG_VRING_TX_ADDR 0xffffffff +#define CONFIG_VRING_RX_ADDR 0xffffffff +#define CONFIG_VRING_SIZE 0x100 +#define CONFIG_POLL_BASE_ADDR 0xc0224000 +#define CONFIG_SKIP_SHBUF_IO_WRITE +#define CONFIG_USE_MASTER_VRING_DEFINE + +/* Baremetal config */ + +/* CONFIG_MEM_NO_CACHE is not set */ +/* CONFIG_MEM_WRITE_THROUGH is not set */ +#define CONFIG_MEM_NORMAL +/* end of Baremetal config */ +/* end of OpenAmp */ +/* CONFIG_USE_YMODEM is not set */ +/* CONFIG_USE_SFUD is not set */ +#define CONFIG_USE_BACKTRACE +/* CONFIG_USE_FATFS_0_1_4 is not set */ +#define CONFIG_USE_TLSF +/* CONFIG_USE_SPIFFS is not set */ +/* CONFIG_USE_LITTLE_FS is not set */ +/* CONFIG_USE_LVGL is not set */ +/* CONFIG_USE_FREEMODBUS is not set */ +/* CONFIG_USE_CHERRY_USB is not set */ +/* CONFIG_USE_FSL_SDMMC is not set */ +/* CONFIG_USE_FSL_WIFI is not set */ +/* end of Third-party configuration */ + +/* FreeRTOS Kernel Configuration */ + +#define CONFIG_FREERTOS_OPTIMIZED_SCHEDULER +#define CONFIG_FREERTOS_HZ 1000 +#define CONFIG_FREERTOS_MAX_PRIORITIES 32 +#define CONFIG_FREERTOS_KERNEL_INTERRUPT_PRIORITIES 13 +#define CONFIG_FREERTOS_MAX_API_CALL_INTERRUPT_PRIORITIES 11 +#define CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS 1 +#define CONFIG_FREERTOS_MINIMAL_TASK_STACKSIZE 1024 +#define CONFIG_FREERTOS_MAX_TASK_NAME_LEN 32 +#define CONFIG_FREERTOS_TIMER_TASK_PRIORITY 1 +#define CONFIG_FREERTOS_TIMER_TASK_STACK_DEPTH 2048 +#define CONFIG_FREERTOS_TIMER_QUEUE_LENGTH 10 +#define CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE 0 +#define CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS +#define CONFIG_FREERTOS_USE_TRACE_FACILITY +#define CONFIG_FREERTOS_USE_STATS_FORMATTING_FUNCTIONS +/* CONFIG_FREERTOS_USE_TICKLESS_IDLE is not set */ +#define CONFIG_FREERTOS_TOTAL_HEAP_SIZE 10240 +#define CONFIG_FREERTOS_TASK_FPU_SUPPORT 1 +/* CONFIG_FREERTOS_USE_POSIX is not set */ +/* end of FreeRTOS Kernel Configuration */ + +#endif diff --git a/example/system/amp/openamp_for_linux/src/rpmsg-echo_os.c b/example/system/amp/openamp_for_linux/src/rpmsg-echo_os.c new file mode 100644 index 0000000000000000000000000000000000000000..cef5154989fd5c113b580e317c33e64158df2ccf --- /dev/null +++ b/example/system/amp/openamp_for_linux/src/rpmsg-echo_os.c @@ -0,0 +1,212 @@ +/* + * Copyright : (C) 2022 Phytium Information Technology, Inc. + * All Rights Reserved. + * + * This program is OPEN SOURCE software: you can redistribute it and/or modify it + * under the terms of the Phytium Public License as published by the Phytium Technology Co.,Ltd, + * either version 1.0 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the Phytium Public License for more details. + * + * + * FilePath: rpmsg-echo_os.c + * Date: 2022-02-25 09:12:07 + * LastEditTime: 2022-02-25 09:12:19 + * Description:  This file is for a sample demonstration application that showcases usage of rpmsg. + * This application is meant to run on the remote CPU running freertos code. + * This application echoes back data that was sent to it by the master core. + * + * Modify History: + * Ver   Who        Date         Changes + * ----- ------     --------    -------------------------------------- + * 1.0 huanghe 2022/03/25 first commit + * 1.1 liusm 2023/11/17 Adapter example for linux + */ + + +/***************************** Include Files *********************************/ + +#include +#include +#include +#include +#include +#include "platform_info.h" +#include "rpmsg_service.h" +#include +#include "rsc_table.h" +#include "FreeRTOS.h" +#include "task.h" +#include "shell.h" +#include "finterrupt.h" +#include "fpsci.h" +#include "fdebug.h" + +/************************** Constant Definitions *****************************/ + +/**************************** Type Definitions *******************************/ + +/************************** Variable Definitions *****************************/ + +/***************** Macros (Inline Functions) Definitions *********************/ + +#define OPENAMP_SLAVE_DEBUG_TAG "OPENAMP_SLAVE" +#define OPENAMP_SLAVE_ERROR(format, ...) FT_DEBUG_PRINT_E(OPENAMP_SLAVE_DEBUG_TAG, format, ##__VA_ARGS__) +#define OPENAMP_SLAVE_WARN(format, ...) FT_DEBUG_PRINT_W(OPENAMP_SLAVE_DEBUG_TAG, format, ##__VA_ARGS__) +#define OPENAMP_SLAVE_INFO(format, ...) FT_DEBUG_PRINT_I(OPENAMP_SLAVE_DEBUG_TAG, format, ##__VA_ARGS__) +#define OPENAMP_SLAVE_DEBUG(format, ...) FT_DEBUG_PRINT_D(OPENAMP_SLAVE_DEBUG_TAG, format, ##__VA_ARGS__) + +#ifdef CONFIG_DEBUG_CODE +#define OPENAMP_MASTER_ADDRESS 0xe0100000 +#endif + +#define SHUTDOWN_MSG 0xEF56A55A + +static struct rpmsg_endpoint lept; +static int shutdown_req = 0; + +/************************** Function Prototypes ******************************/ + +/*-----------------------------------------------------------------------------* + * RPMSG endpoint callbacks + *-----------------------------------------------------------------------------*/ +static int rpmsg_endpoint_cb(struct rpmsg_endpoint *ept, void *data, size_t len, uint32_t src, void *priv) +{ + (void)priv; + (void)src; + /* On reception of a shutdown we signal the application to terminate */ + if ((*(unsigned int *)data) == SHUTDOWN_MSG) { + OPENAMP_SLAVE_INFO("shutdown message is received.\r\n"); + shutdown_req = 1; + return RPMSG_SUCCESS; + } + + /* Send data back to master */ + if (rpmsg_send(ept, data, len) < 0) + OPENAMP_SLAVE_ERROR("rpmsg_send failed\r\n"); + + return RPMSG_SUCCESS; +} + +static void rpmsg_service_unbind(struct rpmsg_endpoint *ept) +{ + (void)ept; + OPENAMP_SLAVE_INFO("unexpected Remote endpoint destroy\r\n"); + shutdown_req = 1; +} + +/*-----------------------------------------------------------------------------* + * Application + *-----------------------------------------------------------------------------*/ +int app(struct rpmsg_device *rdev, void *priv) +{ + int ret; + + /* Initialize RPMSG framework */ + OPENAMP_SLAVE_INFO("step7 : user to init endpoint "); + ret = rpmsg_create_ept(&lept, rdev, RPMSG_SERVICE_NAME, 0, RPMSG_ADDR_ANY, rpmsg_endpoint_cb, rpmsg_service_unbind); + if (ret) { + OPENAMP_SLAVE_ERROR("Failed to create endpoint. %d \r\n", ret); + return -1; + } + + while (1) + { + platform_poll(priv); + /* we got a shutdown request, exit */ + if (shutdown_req) + { + OPENAMP_SLAVE_INFO("step8 : start to exit "); + break; + } + } + + rpmsg_destroy_ept(&lept); + return 0; +} + + + +/*-----------------------------------------------------------------------------* + * Application entry point + *-----------------------------------------------------------------------------*/ +int rpmsg_echo(int argc, char *argv[]) +{ + void *platform; + struct rpmsg_device *rpdev; + int ret; + + OPENAMP_SLAVE_INFO("openamp lib version: %s (", openamp_version()); + OPENAMP_SLAVE_INFO("Major: %d, ", openamp_version_major()); + OPENAMP_SLAVE_INFO("Minor: %d, ", openamp_version_minor()); + OPENAMP_SLAVE_INFO("Patch: %d)\r\n", openamp_version_patch()); + + OPENAMP_SLAVE_INFO("libmetal lib version: %s (", metal_ver()); + OPENAMP_SLAVE_INFO("Major: %d, ", metal_ver_major()); + OPENAMP_SLAVE_INFO("Minor: %d, ", metal_ver_minor()); + OPENAMP_SLAVE_INFO("Patch: %d)\r\n", metal_ver_patch()); + + /* Initialize platform */ + OPENAMP_SLAVE_INFO("start application"); + ret = platform_init(argc, argv, &platform); + if (ret) { + OPENAMP_SLAVE_ERROR("Failed to initialize platform.\r\n"); + ret = -1; + } else { + #ifdef CONFIG_DEBUG_CODE + OPENAMP_SLAVE_ERROR("CONFIG_TARGET_CPU_ID is %x \r\n",CONFIG_TARGET_CPU_ID); + FPsciCpuMaskOn(1< + +/** + * @brief Assertion macro for FreeRTOS applications. + * @param cond Condition to evaluate. + */ +#define metal_sys_assert(cond) assert(cond) + +#endif /* __METAL_FREERTOS_ASSERT__H__ */ + diff --git a/third-party/libmetal/metal/system/freertos/cache.h b/third-party/libmetal/metal/system/freertos/cache.h new file mode 100644 index 0000000000000000000000000000000000000000..a14d9bfeb0df9ac02120eabc1f72a74157f5c1f6 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/cache.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2018, Linaro Limited. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/cache.h + * @brief FreeRTOS cache operation primitives for libmetal. + */ + +#ifndef __METAL_CACHE__H__ +#error "Include metal/cache.h instead of metal/freertos/cache.h" +#endif + +#ifndef __METAL_FREERTOS_CACHE__H__ +#define __METAL_FREERTOS_CACHE__H__ + +#ifdef __cplusplus +extern "C" { +#endif + +extern void metal_machine_cache_flush(void *addr, unsigned int len); +extern void metal_machine_cache_invalidate(void *addr, unsigned int len); + +static inline void __metal_cache_flush(void *addr, unsigned int len) +{ + metal_machine_cache_flush(addr, len); +} + +static inline void __metal_cache_invalidate(void *addr, unsigned int len) +{ + metal_machine_cache_invalidate(addr, len); +} + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_CACHE__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/condition.c b/third-party/libmetal/metal/system/freertos/condition.c new file mode 100644 index 0000000000000000000000000000000000000000..e3bebc9d25ee991cc0cc93804348d7c63b467c04 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/condition.c @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file generic/condition.c + * @brief Generic libmetal condition variable handling. + */ + +#include + +int metal_condition_wait(struct metal_condition *cv, + metal_mutex_t *m) +{ + /* TODO: Implement condition variable for FreeRTOS */ + (void)cv; + (void)m; + return 0; +} diff --git a/third-party/libmetal/metal/system/freertos/condition.h b/third-party/libmetal/metal/system/freertos/condition.h new file mode 100644 index 0000000000000000000000000000000000000000..87f13748b6f95545f9afa35c69648c89e4f1eec1 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/condition.h @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file generic/condition.h + * @brief Generic condition variable primitives for libmetal. + */ + +#ifndef __METAL_CONDITION__H__ +#error "Include metal/condition.h instead of metal/freertos/condition.h" +#endif + +#ifndef __METAL_FREERTOS_CONDITION__H__ +#define __METAL_FREERTOS_CONDITION__H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +struct metal_condition { + metal_mutex_t *m; /**< mutex. + * The condition variable is attached to this mutex + * when it is waiting. It is also used to check + * correctness in case there are multiple waiters. + */ + + atomic_int v; /**< condition variable value. */ +}; + +/** Static metal condition variable initialization. */ +#define METAL_CONDITION_INIT { NULL, ATOMIC_VAR_INIT(0) } + +static inline void metal_condition_init(struct metal_condition *cv) +{ + /* TODO: Implement condition variable for FreeRTOS */ + (void)cv; +} + +static inline int metal_condition_signal(struct metal_condition *cv) +{ + /* TODO: Implement condition variable for FreeRTOS */ + (void)cv; + return 0; +} + +static inline int metal_condition_broadcast(struct metal_condition *cv) +{ + /* TODO: Implement condition variable for FreeRTOS */ + (void)cv; + return 0; +} + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_CONDITION__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/device.c b/third-party/libmetal/metal/system/freertos/device.c new file mode 100644 index 0000000000000000000000000000000000000000..97246b89b53a20926ebb0e13e83b824052bbc63d --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/device.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2017, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/device.c + * @brief FreeRTOS device operations. + */ + +#include +#include +#include + +int metal_generic_dev_sys_open(struct metal_device *dev) +{ + struct metal_io_region *io; + unsigned int i; + + /* map I/O memory regions */ + for (i = 0; i < dev->num_regions; i++) { + io = &dev->regions[i]; + if (!io->size) + break; + metal_sys_io_mem_map(io); + } + + return 0; +} + diff --git a/third-party/libmetal/metal/system/freertos/init.c b/third-party/libmetal/metal/system/freertos/init.c new file mode 100644 index 0000000000000000000000000000000000000000..6641824420c72e999284cc40f9c7c090657589e4 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/init.c @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/init.c + * @brief FreeRTOS libmetal initialization. + */ + +#include +#include +#include + +struct metal_state _metal; + +int metal_sys_init(const struct metal_init_params *params) +{ + metal_unused(params); + metal_bus_register(&metal_generic_bus); + return 0; +} + +void metal_sys_finish(void) +{ + metal_bus_unregister(&metal_generic_bus); +} diff --git a/third-party/libmetal/metal/system/freertos/io.c b/third-party/libmetal/metal/system/freertos/io.c new file mode 100644 index 0000000000000000000000000000000000000000..842b66e990ca8965685c632ee9df4f0ceca6acd3 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/io.c @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2017, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/io.c + * @brief FreeRTOS libmetal io operations + */ + +#include + +void metal_sys_io_mem_map(struct metal_io_region *io) +{ + unsigned long p; + size_t psize; + void *va; + + va = io->virt; + psize = io->size; + if (psize) { + if (psize >> io->page_shift) + psize = (size_t)1 << io->page_shift; + for (p = 0; p <= (io->size >> io->page_shift); p++) { + metal_machine_io_mem_map(va, io->physmap[p], + psize, io->mem_flags); + va += psize; + } + } +} diff --git a/third-party/libmetal/metal/system/freertos/io.h b/third-party/libmetal/metal/system/freertos/io.h new file mode 100644 index 0000000000000000000000000000000000000000..06457898596a43bd18540a8cdff16bfa2eba6c97 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/io.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2017, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/io.h + * @brief FreeRTOS specific io definitions. + */ + +#ifndef __METAL_IO__H__ +#error "Include metal/io.h instead of metal/freertos/io.h" +#endif + +#ifndef __METAL_FREEROTS_IO__H__ +#define __METAL_FREEROTS_IO__H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +#if 1 + +/** + * @brief memory mapping for an I/O region + */ +void metal_sys_io_mem_map(struct metal_io_region *io); + +/** + * @brief memory mapping + */ +void *metal_machine_io_mem_map(void *va, metal_phys_addr_t pa, + size_t size, unsigned int flags); + +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREEROTS_IO__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/irq.c b/third-party/libmetal/metal/system/freertos/irq.c new file mode 100644 index 0000000000000000000000000000000000000000..3955e3f84fd5fddb8c12c2e1bfef3df73505ebc8 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/irq.c @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2016 - 2017, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/irq.c + * @brief FreeRTOS libmetal irq definitions. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +unsigned int metal_irq_save_disable(void) +{ + return sys_irq_save_disable(); +} + +void metal_irq_restore_enable(unsigned int flags) +{ + sys_irq_restore_enable(flags); +} + diff --git a/third-party/libmetal/metal/system/freertos/irq.h b/third-party/libmetal/metal/system/freertos/irq.h new file mode 100644 index 0000000000000000000000000000000000000000..72c11d421eea089ca4d359d50a4366564adf56f4 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/irq.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/irq.c + * @brief FreeRTOS libmetal irq definitions. + */ + +#ifndef __METAL_IRQ__H__ +#error "Include metal/irq.h instead of metal/freertos/irq.h" +#endif + +#ifndef __METAL_FREERTOS_IRQ__H__ +#define __METAL_FREERTOS_IRQ__H__ + +#endif /* __METAL_FREERTOS_IRQ__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/log.h b/third-party/libmetal/metal/system/freertos/log.h new file mode 100644 index 0000000000000000000000000000000000000000..f805c8d5ae194b43313f1166a9a948a450a2b4be --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/log.h @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2018, Linaro Limited. and Contributors. All rights reserved. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * + * 3. Neither the name of Linaro nor the names of its contributors may be used + * to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + +/* + * @file freertos/log.h + * @brief FreeRTOS libmetal log handler definition. + */ + +#ifndef __METAL_METAL_LOG__H__ +#error "Include metal/log.h instead of metal/freertos/log.h" +#endif + +#ifndef __METAL_FREERTOS_LOG__H__ +#define __METAL_FREERTOS_LOG__H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_LOG__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/mutex.h b/third-party/libmetal/metal/system/freertos/mutex.h new file mode 100644 index 0000000000000000000000000000000000000000..4efaab25272d7314fbe06ac3a95388fe2ed0d0e1 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/mutex.h @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/mutex.h + * @brief FreeRTOS mutex primitives for libmetal. + */ + +#ifndef __METAL_MUTEX__H__ +#error "Include metal/mutex.h instead of metal/freertos/mutex.h" +#endif + +#ifndef __METAL_FREERTOS_MUTEX__H__ +#define __METAL_FREERTOS_MUTEX__H__ + +#include +#include "FreeRTOS.h" +#include "semphr.h" + + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct { + SemaphoreHandle_t m; +} metal_mutex_t; + +/* + * METAL_MUTEX_INIT - used for initializing an mutex element in a static struct + * or global + */ +#if defined(__GNUC__) +#define METAL_MUTEX_INIT(m) { NULL }; \ +_Pragma("GCC warning\"static initialisation of the mutex is deprecated\"") +#elif defined(__ICCARM__) +#define DO_PRAGMA(x) _Pragma(#x) +#define METAL_MUTEX_INIT(m) { NULL }; \ +DO_PRAGMA(message("Warning: static initialisation of the mutex is deprecated")) +#else +#define METAL_MUTEX_INIT(m) { NULL } +#endif + +/* + * METAL_MUTEX_DEFINE - used for defining and initializing a global or + * static singleton mutex + */ +#define METAL_MUTEX_DEFINE(m) metal_mutex_t m = METAL_MUTEX_INIT(m) + +static inline void __metal_mutex_init(metal_mutex_t *mutex) +{ + metal_assert(mutex); + mutex->m = xSemaphoreCreateMutex(); + metal_assert(mutex->m); +} + +static inline void __metal_mutex_deinit(metal_mutex_t *mutex) +{ + metal_assert(mutex && mutex->m); + vSemaphoreDelete(mutex->m); + mutex->m = NULL; +} + +static inline int __metal_mutex_try_acquire(metal_mutex_t *mutex) +{ + metal_assert(mutex && mutex->m); + return xSemaphoreTake(mutex->m, (TickType_t)0); +} + +static inline void __metal_mutex_acquire(metal_mutex_t *mutex) +{ + metal_assert(mutex && mutex->m); + xSemaphoreTake(mutex->m, portMAX_DELAY); +} + +static inline void __metal_mutex_release(metal_mutex_t *mutex) +{ + metal_assert(mutex && mutex->m); + xSemaphoreGive(mutex->m); +} + +static inline int __metal_mutex_is_acquired(metal_mutex_t *mutex) +{ + metal_assert(mutex && mutex->m); + return (!xSemaphoreGetMutexHolder(mutex->m)) ? 0 : 1; +} + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_MUTEX__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/shmem.c b/third-party/libmetal/metal/system/freertos/shmem.c new file mode 100644 index 0000000000000000000000000000000000000000..b0f29f605ddf83fb5c43519edb26e09fcf2946ed --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/shmem.c @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/shmem.c + * @brief FreeRTOS libmetal shared memory handling. + */ + +#include + +int metal_shmem_open(const char *name, size_t size, + struct metal_io_region **io) +{ + return metal_shmem_open_generic(name, size, io); +} diff --git a/third-party/libmetal/metal/system/freertos/sleep.h b/third-party/libmetal/metal/system/freertos/sleep.h new file mode 100644 index 0000000000000000000000000000000000000000..60a58a175314cdffb3e745c9ffe907649fa7ee07 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/sleep.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2018, Linaro Limited. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/sleep.h + * @brief FreeRTOS sleep primitives for libmetal. + */ + +#ifndef __METAL_SLEEP__H__ +#error "Include metal/sleep.h instead of metal/freertos/sleep.h" +#endif + +#ifndef __METAL_FREERTOS_SLEEP__H__ +#define __METAL_FREERTOS_SLEEP__H__ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +static inline int __metal_sleep_usec(unsigned int usec) +{ + const TickType_t xDelay = pdMS_TO_TICKS(usec/1000); + + vTaskDelay(xDelay ? xDelay : 1); + return 0; +} + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_SLEEP__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/sys.h b/third-party/libmetal/metal/system/freertos/sys.h new file mode 100644 index 0000000000000000000000000000000000000000..44592cdb2c1f5d41c8402d78c55591f2f905cabb --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/sys.h @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/sys.h + * @brief FreeRTOS system primitives for libmetal. + */ + +#ifndef __METAL_SYS__H__ +#error "Include metal/sys.h instead of metal/freertos/sys.h" +#endif + +#ifndef __METAL_FREERTOS_SYS__H__ +#define __METAL_FREERTOS_SYS__H__ + +#include "./ft_platform/sys.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef METAL_MAX_DEVICE_REGIONS +#define METAL_MAX_DEVICE_REGIONS 1 +#endif + +/** Structure for FreeRTOS libmetal runtime state. */ +struct metal_state { + + /** Common (system independent) data. */ + struct metal_common_state common; +}; + +#if 1 + +/** + * @brief restore interrupts to state before disable_global_interrupt() + */ +void sys_irq_restore_enable(unsigned int flags); + +/** + * @brief disable all interrupts + */ +unsigned int sys_irq_save_disable(void); + +#endif /* METAL_INTERNAL */ + +#ifdef __cplusplus +} +#endif + +#endif /* __METAL_FREERTOS_SYS__H__ */ diff --git a/third-party/libmetal/metal/system/freertos/time.c b/third-party/libmetal/metal/system/freertos/time.c new file mode 100644 index 0000000000000000000000000000000000000000..03544eb3bbffe590d7522a919cc3a75ab36f4313 --- /dev/null +++ b/third-party/libmetal/metal/system/freertos/time.c @@ -0,0 +1,20 @@ +/* + * Copyright (c) 2016, Xilinx Inc. and Contributors. All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +/* + * @file freertos/time.c + * @brief freertos libmetal time handling. + */ + +#include +#include +#include + +unsigned long long metal_get_timestamp(void) +{ + return (unsigned long long)(1000 * portTICK_PERIOD_MS * xTaskGetTickCount()); +} + diff --git a/third-party/libmetal/src.mk b/third-party/libmetal/src.mk index a28479b3a15dd04b8cc38175d85c23cb1ae15f6a..bb2f59719a1563470310c34f2534fbcd21891eb6 100644 --- a/third-party/libmetal/src.mk +++ b/third-party/libmetal/src.mk @@ -5,18 +5,19 @@ ifdef CONFIG_USE_FREERTOS CSRCS_RELATIVE_FILES += $(wildcard metal/system/freertos/ft_platform/*.c) + ifdef CONFIG_TARGET_ARMV8_AARCH32 + CSRCS_RELATIVE_FILES += $(wildcard metal/system/freertos/*.c) + endif + + ifdef CONFIG_TARGET_ARMV8_AARCH64 + CSRCS_RELATIVE_FILES += $(wildcard metal/system/freertos/*.c) + endif + endif LIBMETAL_DIR = $(SDK_DIR)/third-party/libmetal ABSOLUTE_CFILES +=$(wildcard $(LIBMETAL_DIR)/metal/*.c) -ifdef CONFIG_TARGET_ARMV8_AARCH32 - ABSOLUTE_CFILES += $(wildcard $(LIBMETAL_DIR)/metal/system/freertos/*.c) -endif - -ifdef CONFIG_TARGET_ARMV8_AARCH64 - ABSOLUTE_CFILES += $(wildcard $(LIBMETAL_DIR)/metal/system/freertos/*.c) -endif endif #CONFIG_USE_LIBMETAL \ No newline at end of file diff --git a/third-party/openamp/ports/phytium_os_rproc.c b/third-party/openamp/ports/phytium_os_rproc.c index 64debeadd6bbecffffcea6a5bcb553b13a0ee4a9..38c1215d91c3f556215f2f3d2550c60f21855322 100644 --- a/third-party/openamp/ports/phytium_os_rproc.c +++ b/third-party/openamp/ports/phytium_os_rproc.c @@ -91,7 +91,7 @@ static void PhytiumIrqhandler(s32 vector, void *param) #endif static struct remoteproc * -PhytiumProcInit(struct remoteproc *rproc,const struct remoteproc_ops *ops, +PhytiumProcInit(struct remoteproc *rproc,struct remoteproc_ops *ops, void *arg) { struct remoteproc_priv *prproc = arg;