void OS_BSPMain( void ) { int TicksPerSecond; /* ** Initialize the OS API */ OS_API_Init(); /* ** Delay for one second. */ TicksPerSecond = sysClkRateGet(); (void) taskDelay( TicksPerSecond ); OS_printf("Starting Up OSAPI App.\n"); /* ** Call OSAL entry point. */ OS_Application_Startup(); /* ** Exit the main thread. ** in VxWorks we can delete all of the OS tasks if we want. */ }
int main(void) { /* ** Initialize the OS API data structures */ OS_API_Init(); /* ** Call application specific entry point. */ OS_Application_Startup(); /* ** Let the main thread sleep */ for ( ;; ) { sleep(1); } return(0); }
int main(void) { int mode; int status; /* ** Create local directories for "disk" mount points ** See bsp_voltab for the values */ printf("Making directories: ram0, ram1, eeprom1 for OSAL mount points\n"); mode = S_IFDIR |S_IRWXU | S_IRWXG | S_IRWXO; status = mkdir("ram0", mode); status = mkdir("ram1", mode); status = mkdir("eeprom1", mode); /* ** Initialize the OS API data structures */ OS_API_Init(); /* ** Call application specific entry point. */ OS_Application_Startup(); /* ** Let the main thread sleep */ for ( ;; ) { sleep(1); } return(0); }