Created
July 16, 2017 14:06
-
-
Save inaciose/9ad1b9dd530ce623e2e0849a1859744f to your computer and use it in GitHub Desktop.
banana pi 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
int sunxi_gpio_set_cfgpin(u32 pin, u32 val) | |
int sunxi_gpio_set_pull(u32 pin, u32 val) | |
int sunxi_gpio_output(u32 pin, u32 val) | |
int sunxi_gpio_input(u32 pin) | |
int gpio_direction_input(unsigned gpio) | |
int gpio_direction_output(unsigned gpio, int value) | |
u32 sid_read_key(u32 sid_base, u32 offset) | |
void soc_detection_init(void) | |
int soc_is_a10s(void) | |
.. | |
int soc_is_h3(void) | |
void clock_init_uart(void) | |
void gpio_init(void) | |
void uart0_init(void) | |
void uart0_putc(char c) | |
void uart0_puts(const char *s) | |
int get_boot_device(void) | |
int main(void) | |
main | |
soc_detection_init(); | |
gpio_init(); | |
uart0_init(); | |
uart0_puts("\nHello from "); | |
---- | |
void __attribute__((section(".start"))) __attribute__((naked)) start(void) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment