Disona

F28M35 Flash C28: System Init

Jun 9th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.47 KB | None | 0 0
  1. void C28flash_InitSystem (void){
  2.     DINT;                   // Disable interrupts
  3.     InitSysCtrl();          // Init clocking and stuff
  4.  
  5.     InitPieCtrl();          // Don't think i need PIE here, but it was in examples, so let it be
  6.  
  7.     IER = 0x0000;           // Clear stuff
  8.     IFR = 0x0000;
  9.  
  10.     InitPieVectTable();     // Init vectors
  11.  
  12.     // Copy all of the other code to RAM
  13.     memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
  14. };
Advertisement
Add Comment
Please, Sign In to add comment