Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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