Add Arduino Micro and Arduino Uno

This commit is contained in:
Jeremy Soller
2019-09-29 21:20:03 -06:00
parent abd457ba73
commit e3aa21cae4
11 changed files with 96 additions and 3 deletions

View File

@ -1 +1,9 @@
EC=atmega2560
PORT=$(wildcard /dev/ttyACM*)
console:
sudo tio -b 9600 $(PORT)
flash: $(BUILD)/ec.ihx
sudo avrdude -v -v -p $(EC) -c wiring -P $(PORT) -b 115200 -D -U flash:w:$<:i

View File

@ -6,9 +6,16 @@ void init(void) {
uart_stdio_init(0, 9600);
}
void main(void) {
int main(void) {
init();
printf("Hello from System76 EC for the Arduino Mega 2560!\n");
for (;;) {}
for (;;) {
int c = getchar();
if (c == '\r') {
putchar('\n');
} else if (c > 0) {
putchar(c);
}
}
}