mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03:00
nxuart/fw/: renamed "uart" to "nxuart" as well
- uart.c: renamed to nxuart.c - Makefile: abstracted project name through $(NAME)
This commit is contained in:
19
nxuart/fw/nxuart.c
Normal file
19
nxuart/fw/nxuart.c
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
#define F_CPU 1000000UL
|
||||
#include <util/delay.h>
|
||||
|
||||
|
||||
#define LED 2 /* PD2 */
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
DDRD = 1 << LED;
|
||||
while (1) {
|
||||
PORTD ^= 1 << LED;
|
||||
_delay_ms(50);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user