Add AVR GPIO
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user