Created
June 4, 2014 08:22
-
-
Save varadgautam/535f574121696ca40bbe to your computer and use it in GitHub Desktop.
a simple independent U-Boot loadable application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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