Skip to content

Instantly share code, notes, and snippets.

@varadgautam
Created June 4, 2014 08:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varadgautam/535f574121696ca40bbe to your computer and use it in GitHub Desktop.
Save varadgautam/535f574121696ca40bbe to your computer and use it in GitHub Desktop.
a simple independent U-Boot loadable application
/* a simple independent U-Boot loadable application */
/* use U-Boot's example makefile to compile */
#define UART0_BASE 0x44E09000
#define REG(x) (*((volatile unsigned int *) x))
void main(){
int c = 'x';
while(1){
REG(UART0_BASE + 0) = c;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment