Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 28th, 2010  |  syntax: C  |  size: 0.37 KB  |  views: 131  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. void* main(void)
  2. {
  3. #ifdef TCCBOOT
  4.     int rc;
  5.     unsigned char* loadbuffer = (unsigned char*)LOAD_ADDRESS;
  6. #endif
  7.  
  8.     // LCD uses PORTA, so there's lots of pins to check
  9.     uint32_t*   gpio_a = (uint32_t*)0x80003000;
  10.  
  11.     // Set b for output
  12.     *(gpio_a + 0x4)     = 0xFFFFFFFF; //0x1 << 18;
  13.  
  14.     while (1)
  15.     {
  16.         *(gpio_a) = 0xFFFFFFFF; //0x1 << 18;
  17.     }