diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-02-18 23:01:57 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-02-18 23:01:57 +0100 |
commit | 38f0e84d3b5da56c1441f2f779246ccf7b23d5c4 (patch) | |
tree | 9fdb70ca1393ca8de11b11e751feb12c36afb8d3 /include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h | |
parent | b3cea73a75cb46e39ed7c7e6f765fc842a40fabf (diff) |
add minimal LM4F120H5QR (LM4F120XL Stellaris Launchpad) support
Diffstat (limited to 'include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h')
-rw-r--r-- | include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h b/include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h new file mode 100644 index 0000000..739f575 --- /dev/null +++ b/include/arch/lm4f120h5qr-stellaris/lm4f_cpp_wrapper.h @@ -0,0 +1,16 @@ +/* + * Copyright 2021 Daniel Friesel + * + * SPDX-License-Identifier: BSD-2-Clause + */ +void arch_clock_init(); +void arch_init_loop(); + +void mp_uart_setup(); +void mp_uart_send_blocking(char c); + +void mp_gpio_setup(); +void mp_gpio_input(unsigned char const pin); +void mp_gpio_output(unsigned char const pin); +unsigned int mp_gpio_read(unsigned char const pin); +void mp_gpio_write(unsigned char const pin, unsigned char value); |