/****************************************************************************** * @brief Main function. * * @return Always returns 0. ******************************************************************************/ int main(void) { // Configure system SystemConfiguration(); // Configure SPI SPI_Init(SPI_BASEADDR, 0, 0, 0); // Initialize Interrupts InterruptsInit(); // Initialize ADXL362 ADXL362_Init(); // Run demo program DemoProgram(); return(0); }
int main(void) { // Configure system SystemConfiguration(); // Configure SPI SPI_Init(SPI_BASEADDR, 0, 1, 1); // Initialize ADXL345 specific settings ADXL345_Init(); // Initialize Interrupts InterruptsInit(); // Run demo program DemoProgram(); return(0); }
void __cdecl ldr_logo() { kboot_info *bi; unsigned char ch; UINT32 e; HeapInit(); ConsoleInit(); TxtSetFlags(BGCOLOR_BLACK|FGCOLOR_GREEN); TxtClearScreen(); SerialInit(); PicInit(); DescriptorsInit(); InterruptsInit(); ExceptionsInit(); DbgInit(); _enable(); IrqInit(); TssInit(); Vm86Init(); TimerInit(); KbdInit(); //DbgStepEnable(); StorageProbe(); e = VolReadFile("A:\\OSLDR.EXE", (VPTR)0x300000); DbgPrintf("%s\n", DbgStatusStr(e)); if(VideoInit()) { DbgPrintf("\nError Initializing Video Subsystem"); } while(1) { ch=KbdGetKey(); _Putch(ch); if(ch==33) KbdCpuReset(); } while(1); }