Add AVR GPIO

This commit is contained in:
Jeremy Soller
2019-09-29 21:47:37 -06:00
parent 5c3fb062fd
commit 01bae12644
3 changed files with 65 additions and 0 deletions

View File

@ -1,14 +1,19 @@
#include <stdio.h>
#include <arch/gpio.h>
#include <arch/uart.h>
void init(void) {
uart_stdio_init(0, 9600);
}
struct Gpio LED = GPIO(B, 5);
int main(void) {
init();
gpio_set_dir(&LED, true);
gpio_set(&LED, false);
printf("Hello from System76 EC for the Arduino Uno!\n");
for (;;) {
int c = getchar();