本文整理匯總了C++中BIOS_start函數的典型用法代碼示例。如果您正苦於以下問題:C++ BIOS_start函數的具體用法?C++ BIOS_start怎麽用?C++ BIOS_start使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了BIOS_start函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: main
/* ARGSUSED */
int main(Int argc, Char * argv[])
{
IRES_Status status;
Int size = 0;
FCSettings_init();
Diags_setMask(FCSETTINGS_MODNAME"+EX1234567");
Diags_setMask("xdc.runtime.Main+EX1234567");
Diags_setMask("ti.sdo.fc.%+EX1234567");
Log_print0(Diags_ENTRY, "[+E] _main> Enter");
status = RMAN_init();
if (IRES_OK != status) {
Log_print1(Diags_USER7, "[+7] main> RMAN_init() failed [%d]",
(IArg)status);
System_abort("RMAN_init() failed, aborting...\n");
}
Log_print0(Diags_EXIT, "[+X] main> Exit");
BIOS_start();
return(0);
}
示例2: main
/*
* ======== main ========
*/
int main()
{
/* Register Application callback to trap asserts raised in the Stack */
RegisterAssertCback(AssertHandler);
PIN_init(BoardGpioInitTable);
#ifndef POWER_SAVING
/* Set constraints for Standby, powerdown and idle mode */
Power_setConstraint(Power_SB_DISALLOW);
Power_setConstraint(Power_IDLE_PD_DISALLOW);
#endif //POWER_SAVING
/* Initialize ICall module */
ICall_init();
/* Start tasks of external images - Priority 5 */
ICall_createRemoteTasks();
/* Kick off profile - Priority 3 */
GAPCentralRole_createTask();
/* Kick off application - Priority 1 */
security_examples_central_createTask();
/* enable interrupts and start SYS/BIOS */
BIOS_start();
return 0;
}
示例3: main
Int main(Int argc, Char* argv[])
{
Error_Block eb;
Task_Params taskParams;
Registry_Result result;
Log_print0(Diags_ENTRY, "--> main:");
/* must initialize the error block before using it */
Error_init(&eb);
/* create main thread (interrupts not enabled in main on BIOS) */
Task_Params_init(&taskParams);
taskParams.instance->name = "smain";
taskParams.stackSize = 0x1000;
Task_create(smain, &taskParams, &eb);
if (Error_check(&eb)) {
System_abort("main: failed to create application startup thread");
}
/* register with xdc.runtime to get a diags mask */
result = Registry_addModule(&Registry_CURDESC, MODULE_NAME);
Assert_isTrue(result == Registry_SUCCESS, (Assert_Id)NULL);
/* start scheduler, this never returns */
BIOS_start();
/* should never get here */
Log_print0(Diags_EXIT, "<-- main:");
return (0);
}
示例4: main
Int main (void)
{
Types_FreqHz timer_freq;
Types_Timestamp64 now;
uint64_t start_time, current_time;
double elapsed_duration_seconds;
TimestampProvider_getFreq (&timer_freq);
printf ("Starting timer test\n");
TimestampProvider_get64 (&now);
start_time = ((uint64_t) now.hi << 32) + now.lo;
do
{
TimestampProvider_get64 (&now);
current_time = ((uint64_t) now.hi << 32) + now.lo;
elapsed_duration_seconds = (double) (current_time - start_time) / timer_freq.lo;
} while (elapsed_duration_seconds < 10);
printf ("Timer test complete\n");
BIOS_start(); /* does not return */
return(0);
}
示例5: main
Int main(Int argc, Char* argv[]) {
/*
// Because MSMC memory cannot be non-cacheable, a new entry is added to
// the memory map as follows:
// name origin length
// SHARED_NO_CACHE 80000000 80000000
// Cache is disabled for this new memory range
// Then a new section is created for this memory range (cf .cfg). Memory
// translation is then used to make the region beginning fall into the
// MSMCSRAM. The rest naturally falls into DDR3.
// "translate" 2MB (0x14) from 0x80000000 to 0x00c200000 using the MPAX number 3
set_MPAX(3, 0x80000, 0x00c200, 0x14, CACHEABLE);
*/
// Disable caching from 0x80000000 to 0xFFFFFFFF
if(!CACHEABLE){
int index;
for (index = 0x80; index <= 0xFF; index++) {
CACHE_disableCaching(index);
}
}
BIOS_start();
return (0);
}
示例6: main
/*
* ======== main ========
*/
int main(void)
{
Task_Params taskParams;
/* Call board init functions */
Board_initGeneral();
Board_initGPIO();
Board_initSDSPI();
/* Construct file copy Task thread */
Task_Params_init(&taskParams);
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task0Stack;
Task_construct(&task0Struct, (Task_FuncPtr)taskFxn, &taskParams, NULL);
/* Turn on user LED */
GPIO_write(Board_LED0, Board_LED_ON);
System_printf("Starting the FatSD Raw example\n");
/* Start BIOS */
BIOS_start();
return (0);
}
示例7: main
/*
* ======== main ========
*/
Void main()
{
Swi_Params swiParams;
Task_Params taskParams;
Clock_Params clkParams;
Swi_Params_init(&swiParams);
swiParams.arg0 = 1;
swiParams.arg1 = 0;
swiParams.priority = 2;
swiParams.trigger = 0;
swi0 = Swi_create(swi0Fxn, &swiParams, NULL);
swiParams.arg0 = 2;
swiParams.arg1 = 0;
swiParams.priority = 1;
swiParams.trigger = 3;
swi1 = Swi_create(swi1Fxn, &swiParams, NULL);
Task_Params_init(&taskParams);
taskParams.priority = 1;
Task_create (tsk0Fxn, &taskParams, NULL);
Clock_Params_init(&clkParams);
clkParams.startFlag = TRUE;
Clock_create(clk0Fxn, 2, &clkParams, NULL);
sem0 = Semaphore_create(0, NULL, NULL);
BIOS_start();
}
示例8: main
Int main(Int argc, Char* argv[])
{
Error_Block eb;
Task_Params taskParams;
Log_print3(Diags_ENTRY,
"--> %s: (argc: %d, argv: 0x%x)", (IArg)FXNN, (IArg)argc, (IArg)argv);
/* must initialize the error block before using it */
Error_init(&eb);
/* initialize ipc layer */
Ipc_start();
/* create main thread (interrupts not enabled in main on BIOS) */
Task_Params_init(&taskParams);
taskParams.instance->name = "AppMain_main__P";
taskParams.arg0 = (UArg)argc;
taskParams.arg1 = (UArg)argv;
taskParams.stackSize = 0x4000;
Task_create(AppMain_main__P, &taskParams, &eb);
if (Error_check(&eb)) {
System_abort("main() failed to create application startup thread");
}
/* start scheduler, this never returns */
BIOS_start();
/* should never get here */
Log_print1(Diags_EXIT, "<-- %s: should never get here", (IArg)FXNN);
return(0);
}
示例9: main
/*
* ======== main ========
* Synchronizes all processors (in Ipc_start) and calls BIOS_start
*/
Int main(Int argc, Char* argv[])
{
Int status;
nextProcId = (MultiProc_self() + 1) % MultiProc_getNumProcessors();
System_printf("main: MultiProc id = %d\n", MultiProc_self());
System_printf("main: MultiProc name = %s\n",
MultiProc_getName(MultiProc_self()));
/* Generate queue names based on own proc ID and total number of procs */
System_sprintf(localQueueName, "%s", MultiProc_getName(MultiProc_self()));
System_sprintf(nextQueueName, "%s", MultiProc_getName(nextProcId));
/*
* Ipc_start() calls Ipc_attach() to synchronize all remote processors
* because 'Ipc.procSync' is set to 'Ipc.ProcSync_ALL' in *.cfg
*/
status = Ipc_start();
if (status < 0) {
System_abort("Ipc_start failed\n");
}
BIOS_start();
return (0);
}
示例10: main
int main() {
// initialize the board
(void) Board_initGeneral(120 * 1000 * 1000);
// initialize i2c
initializeI2C();
// setup i2c task, who does the work
(void) setup_I2C_Task();
// initialize uart
initializeUART();
// setup uart task, printing the output
(void) setup_UART_Task();
// setup the events which are used in combination with the queues
(void) setup_Events();
// initialize interrupts
initializeInterrupts();
// setup the interrupts - both for the ALTITUDE CLICK module and the USR_SW
setup_Interrupts();
System_printf("Start BIOS\n");
System_flush();
/* Start BIOS */
BIOS_start();
}
示例11: main
int main(void)
{
Task_Params taskParams;
/* Call board init functions */
Board_initGeneral();
memoryInit(spiHandle, 6250);
// Board_initWatchdog();
/* Construct heartBeat Task thread */
Task_Params_init(&taskParams);
taskParams.arg0 = 1000000 / Clock_tickPeriod;
taskParams.stackSize = TASKSTACKSIZE;
taskParams.stack = &task0Stack;
Task_construct(&task0Struct, (Task_FuncPtr)heartBeatFxn, &taskParams, NULL);
/* Open LED pins */
ledPinHandle = PIN_open(&ledPinState, ledPinTable);
if(!ledPinHandle) {
System_abort("Error initializing board LED pins\n");
}
//IOCPortConfigureSet(PIN_SPI_MOSI, PORTID, PIN-CONFIG); // oklart om och hur denna funkar.
//IOCPortConfigureSet(DIOn, PORTID, PIN-CONFIG);
//PIN_setOutputValue(ledPinHandle, Board_LED1, 1);
/* Start BIOS */
BIOS_start();
return (0);
}
示例12: main
/*************************************************************************
* main()
* Entry point for the application.
************************************************************************/
int main()
{
/* Start the BIOS 6 Scheduler - it will kick off our main thread ledPlayTask() */
platform_write("Start BIOS 6\n");
//Timer_start(timer1);
BIOS_start();
}
示例13: main
/*
* ======== main ========
*/
int main()
{
PIN_init(BoardGpioInitTable);
//enable iCache prefetching
VIMSConfigure(VIMS_BASE, TRUE, TRUE);
// Enable cache
VIMSModeSet(VIMS_BASE, VIMS_MODE_ENABLED);
#ifndef POWER_SAVING
/* Set constraints for Standby, powerdown and idle mode */
Power_setConstraint (Power_SB_DISALLOW);
Power_setConstraint (Power_IDLE_PD_DISALLOW);
#endif //POWER_SAVING
/* Initialize ICall module */
ICall_init();
/* Start tasks of external images - Priority 5 */
ICall_createRemoteTasks();
/* Kick off profile - Priority 3 */
GAPRole_createTask();
/* Kick off application - Priority 1 */
ProximityTag_createTask();
/* enable interrupts and start SYS/BIOS */
BIOS_start();
return 0;
}
示例14: main
/*
* ======== main ========
*/
Int main(Int argc, Char* argv[])
{
selfId = MultiProc_self();
System_printf("Core (\"%s\") starting\n", MultiProc_getName(selfId));
if (numCores == 0) {
numCores = MultiProc_getNumProcessors();
}
attachAll(numCores);
System_sprintf(localQueueName, "CORE%d", selfId);
System_sprintf(nextQueueName, "CORE%d",
((selfId + 1) % numCores));
System_sprintf(prevQueueName, "CORE%d",
(selfId - 1 + numCores)
% numCores);
/* Create a message queue. */
messageQ = MessageQ_create(localQueueName, NULL);
if (messageQ == NULL) {
System_abort("MessageQ_create failed\n" );
}
BIOS_start();
return (0);
}
示例15: osStartKernel
void osStartKernel(void)
{
//The scheduler is now running
running = TRUE;
//Start the scheduler
BIOS_start();
}