Compare commits

..

No commits in common. 'b2b36496b39ebbb570cf30046479c4217e1e0439' and '221905f27c17e9d396b218dbbfb6c23831532266' have entirely different histories.

@ -8,14 +8,14 @@ CFLAGS += -Wa,-adhlns=$(<:%.c=%.lst)
CLDFLAGS += -mmcu=$(CPU) -Wl,-Map=$(@:%.elf=%.map) CLDFLAGS += -mmcu=$(CPU) -Wl,-Map=$(@:%.elf=%.map)
HBWOBJS += hbwnode.o hbw.o HBWOBJS += testnode.o hbw.o
all: hbwnode.hex all: testnode.hex
hbwnode.o: hbwnode.c hbw.h hw.h testhw.h testnode.o: testnode.c hbw.h hw.h testhw.h
$(CC) $(CFLAGS) -DTESTNODE -c $< -o $@ $(CC) $(CFLAGS) -DTESTNODE -c $< -o $@
hbwnode.elf: $(HBWOBJS) testnode.elf: $(HBWOBJS)
$(CC) $(CLDFLAGS) -o $@ $(HBWOBJS) $(CC) $(CLDFLAGS) -o $@ $(HBWOBJS)
%hex:%elf %hex:%elf

@ -26,6 +26,16 @@ int main(void)
(my_address[3] == 0xFF)) (my_address[3] == 0xFF))
my_address[0] = 0x74; my_address[0] = 0x74;
DDRD |= (1<<ConfigLED);
DDRD &= ~(1<<ConfigButton);
DDRD |= (1<<ExpLED);
DDRD &= ~(1<<ExpButton);
PORTD &= ~(1<<ConfigLED);
PORTD |= (1<<ConfigButton);
PORTD &= ~(1<<ExpLED);
PORTD |= (1<<ExpButton);
init_hbw(); init_hbw();
while(1) { while(1) {
Loading…
Cancel
Save