Compare commits

...

No commits in common. '221905f27c17e9d396b218dbbfb6c23831532266' and 'b2b36496b39ebbb570cf30046479c4217e1e0439' 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 += testnode.o hbw.o HBWOBJS += hbwnode.o hbw.o
all: testnode.hex all: hbwnode.hex
testnode.o: testnode.c hbw.h hw.h testhw.h hbwnode.o: hbwnode.c hbw.h hw.h testhw.h
$(CC) $(CFLAGS) -DTESTNODE -c $< -o $@ $(CC) $(CFLAGS) -DTESTNODE -c $< -o $@
testnode.elf: $(HBWOBJS) hbwnode.elf: $(HBWOBJS)
$(CC) $(CLDFLAGS) -o $@ $(HBWOBJS) $(CC) $(CLDFLAGS) -o $@ $(HBWOBJS)
%hex:%elf %hex:%elf

@ -26,16 +26,6 @@ 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