📄 create_rvtasks.c
字号:
l23_init_trace ();
#endif
#endif // if (_GSM==1)
#ifdef RVM_RNET_BR_SWE
rnet_init_trace ();
#endif
#if (REMU==1)
#ifdef RVM_LLS_SWE
/* initialize LLS SWE */
lls_init();
#endif
#ifdef RVM_RNG_SWE
/* initialize RNG SWE */
rng_init ();
#endif
#endif
#if (CHIPSET!=15) || (REMU==0)
#ifdef RVM_RVT_SWE
/* initialize TRACE SWE */
rv_start_swe_and_check (RVT_USE_ID, "RVT");
#endif
#ifdef RVM_I2C_SWE
rv_start_swe_and_check (I2C_USE_ID, "I2C");
#endif
#ifdef RVM_DMA_SWE
rv_start_swe_and_check (DMA_USE_ID, "DMA");
#endif
#ifdef RVM_DMG_SWE
rv_start_swe_and_check (DMG_USE_ID, "DMG");
#endif
#ifdef RVM_NAN_SWE
rv_start_swe_and_check (NAN_USE_ID, "NAN");
#endif
#ifdef RVM_MC_SWE
rv_start_swe_and_check (MC_USE_ID, "MC");
#endif
#ifdef RVM_FFS_SWE
/* initialize FFS SWE */
rv_start_swe_and_check (FFS_USE_ID, "FFS");
#endif
#ifdef RVM_SPI_SWE
/* initialize SPI SWE */
rv_start_swe_and_check (SPI_USE_ID, "SPI");
#endif
#ifdef RVM_PWR_SWE
/* initialize PWR SWE */
rv_start_swe_and_check (PWR_USE_ID, "PWR");
#endif
#ifdef RVM_LCC_SWE
/* initialize LCC(PWR) SWE */
rv_start_swe_and_check (LCC_USE_ID, "LCC");
#endif
#ifdef RVM_KPD_SWE
/* initialize KPD SWE */
rv_start_swe_and_check (KPD_USE_ID, "KPD");
#endif
#ifdef RVM_MMS_SWE
/* initialize KPD SWE */
rv_start_swe_and_check (MMS_USE_ID, "MMS");
#endif
#ifdef RVM_DAR_SWE
/* initialize DAR SWE */
rv_start_swe_and_check (DAR_USE_ID, "DAR");
#endif
#ifdef RVM_R2D_SWE
/* initialize R2D SWE */
rv_start_swe_and_check (R2D_USE_ID, "R2D");
#endif
#ifdef RVM_LCD_SWE
/* initialize LCD SWE */
rv_start_swe_and_check (LCD_USE_ID, "LCD");
#endif
#ifdef RVM_ETM_SWE
/* initialize ETM SWE */
rv_start_swe_and_check (ETM_USE_ID, "ETM");
#endif
#ifdef RVM_TTY_SWE
/* initialize TTY SWE */
rv_start_swe_and_check (TTY_USE_ID, "TTY");
#endif
#ifdef RVM_AUDIO_MAIN_SWE
/* initialize AUDIO SWE */
rv_start_swe_and_check (AUDIO_USE_ID, "AUDIO");
#endif
#if (PSP_STANDALONE==0)
#ifdef RVM_AUDIO_BGD_SWE
/* initialize AUDIO BACKGROUND SWE */
rv_start_swe_and_check (AUDIO_BGD_USE_ID, "AUDIO_BGD");
#endif
#endif
#ifdef RVM_BAE_SWE
/* initialize BAE SWE */
rv_start_swe_and_check (BAE_USE_ID, "BAE");
#endif
#ifdef RVM_AS_SWE
/* initialize AS (Audio Services) SWE */
rv_start_swe_and_check (AS_USE_ID, "AS");
#endif
#if (PSP_STANDALONE==0)
#ifdef RVM_BPR_SWE
/* initialize sample BPR SWE */
rv_start_swe_and_check (BPR_USE_ID, "BPR");
#endif
#endif /* PSP_STANDALONE */
#ifdef RVM_RTC_SWE
/* initialize RTC SWE */
rv_start_swe_and_check (RTC_USE_ID, "RTC");
#endif
#ifdef RVM_LLS_SWE
/* initialize LLS SWE */
rv_start_swe_and_check (LLS_USE_ID, "LLS");
#endif
#ifdef RVM_TUT_SWE
/* initialize TUT SWE */
// rv_start_swe_and_check (TUT_USE_ID, "TUT");
#endif
#ifdef RVM_RGUI_SWE
/* initialize RGUI SWE */
rv_start_swe_and_check (RGUI_USE_ID, "RGUI");
#endif
#ifdef RVM_ATP_SWE
/* initialize ATP SWE */
rv_start_swe_and_check (ATP_USE_ID, "ATP");
#endif
#ifdef RVM_MKS_SWE
rv_start_swe_and_check (MKS_USE_ID, "MKS");
#endif
#ifdef RVM_IMG_SWE
rv_start_swe_and_check (IMG_USE_ID, "IMG");
#endif
#ifdef RVM_GBI_SWE
rv_start_swe_and_check (GBI_USE_ID, "GBI");
#endif
#ifdef RVM_CAMD_SWE
rv_start_swe_and_check (CAMD_USE_ID, "CAMD");
#endif
#ifdef RVM_USB_SWE
/* initialize USB SWE */
rv_start_swe_and_check (USB_USE_ID, "USB");
#endif
#ifdef RVM_CAMA_SWE
rv_start_swe_and_check (CAMA_USE_ID, "CAMA");
#endif
#ifdef RVM_MFW_SWE
/* initialize MFW SWE */
rv_start_swe_and_check (MFW_USE_ID, "MFW");
#endif
#ifdef RVM_SMBS_SWE
/* initialize SMBS SWE */
rv_start_swe_and_check (SMBS_USE_ID, "SMBS");
#endif
#ifdef RVM_USBFAX_SWE
/* initialize USB SWE */
rv_start_swe_and_check (USBFAX_USE_ID, "USBFAX");
#endif
#ifdef RVM_USBTRC_SWE
/* initialize USBTRC SWE */
rv_start_swe_and_check (USBTRC_USE_ID, "USBTRC");
#endif
#ifdef RVM_USBMS_SWE
/* initialize USBMS SWE */
rv_start_swe_and_check (USBMS_USE_ID, "USBMS");
#endif
#ifdef RVM_RFS_SWE
/* initialize RFS SWE */
rv_start_swe_and_check (RFS_USE_ID, "RFS");
#endif
#ifdef RVM_CCI_SWE
/* initialize CCI SWE */
rv_start_swe_and_check (CCI_USE_ID, "CCI");
#endif
#ifdef RVM_BTUI_SWE
/* initialize sample BTUI SWE */
rv_start_swe_and_check (BTUI_USE_ID, "BTUI");
#endif
#ifdef RVM_JPEG_SWE
/* initialize sample JPEG SWE */
rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
#endif
#ifdef RVM_JPEG_SWE
/* initialize sample JPEG SWE */
rv_start_swe_and_check (JPEG_USE_ID, "JPEG");
#endif
#endif
// WARNING WARNING ----------------------------------------------------
// Do not perform any SWE initialization after this line !
// WARNING WARNING ----------------------------------------------------
#if (REMU==0) /* moved this to kpd start function. rv_start function for REMU. rv_start is called from Application Initialize
context. Since this is a blocking call, we cannot afford to block in Application_Initialization. */
#ifndef _WINDOWS
// Perform switch ON processing.
Switch_ON();
#endif
#if (_GSM==1)
BZ_KeyBeep_ON (); // Audio feedback if ON/OFF pushed
#endif // if (_GSM==1)
#endif
#if (CHIPSET!=15) || (REMU==0)
/* dump the Riviera memory state */
rvf_delay (RVF_MS_TO_TICKS (300)) ;
rvf_dump_mem ();
rvf_dump_pool();
rvf_dump_tasks();
#endif
#if (TEST==1)
#if (PSP_STANDALONE == 1)
/* Just For Testing Reset of UICC */
bspUicc_reset(1,0);
/* Just For Testing GEA */
bspTest_Gea3_ciph_req(1);
#endif
#if (CHIPSET!=15) || (REMU==0)
// create a Memory Bank for the 'Test Selection Menu'.
mb_requirements.size = RVTEST_MENU_MB_SIZE;
mb_requirements.watermark = RVTEST_MENU_MB_WATERMARK;
mb_requirements.pool_id = RVF_POOL_EXTERNAL_MEM;
if (rvf_create_mb (RVTEST_MENU_MB_NAME,
mb_requirements,
&mb_id) != RVF_OK)
{
// error case.
result++;
}
#if (PSP_STANDALONE == 1)
/* Just For Testing Reset of UICC */
bspUicc_reset(1,0); /* Just For Testing GEA */
bspTest_Gea3_ciph_req(1);
#endif
// Go to the 'Test Selection Menu' (using rv_test ()).
rv_test (0);
#endif
#endif // (TEST==1)
#if (CHIPSET!=15) || (REMU==0)
// infinite wait
rvf_evt_wait (START_TASK_ID,
0xFFFF,
0xFFFFFFFFL);
#endif
}
#if (TEST==1)
#define RV_START_TASK_STACK (4096)
#else
#define RV_START_TASK_STACK (1024)
#endif
#if (CHIPSET!=15) || (REMU==0)
UINT8 stack_start[RV_START_TASK_STACK];
/*******************************************************************************
**
** Function create_tasks
**
** Description This function is called once at startup to allow task
** creation thanks to Riviera environment.
**
** Returns void
**
*******************************************************************************/
void create_tasks (void)
{
// Tasks creation
rvf_create_legacy_task ((TASKPTR) rv_start, START_TASK_ID,
"RV_START", stack_start,
RV_START_TASK_STACK, RV_START_TASK_PRIO, 0, RUNNING);
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -