Last active
July 16, 2017 13:58
-
-
Save inaciose/087f145c850fdd6a28b7980c3569dd64 to your computer and use it in GitHub Desktop.
raspi baremetal uart sample
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
functions | |
static inline void mmio_write(uint32_t reg, uint32_t data) | |
static inline uint32_t mmio_read(uint32_t reg) | |
static inline void delay(int32_t count) | |
void uart_init() | |
void uart_putc(unsigned char c) | |
unsigned char uart_getc() | |
void uart_puts(const char* str) | |
void kernel_main(uint32_t r0, uint32_t r1, uint32_t atags) | |
main | |
uart_init(); | |
uart_puts("Hello, kernel World!\r\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment