diff --git a/Makefile b/Makefile index 1f830a8..0de1162 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ $(PRG).elf: $(OBJ) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) clean: - rm -rf *.o *.lst *.map $(PRG).elf *.hex *.bin + rm -rf *.o $(PRG).lst $(PRG).map $(PRG).elf $(PRG).hex $(PRG).bin lst: $(PRG).lst diff --git a/ispprog.c b/ispprog.c index c7c32b3..dae8c0d 100644 --- a/ispprog.c +++ b/ispprog.c @@ -47,6 +47,12 @@ #include #define UART_CALC_BAUDRATE(baudRate) (((uint32_t)F_CPU) / (((uint32_t)baudRate)*16) -1) +/* + * To select SPI SPEED press RESET_IN until LED starts blinking (about 5s) + * press RESET_IN to cycle through SPI speeds (LED frequency changes) + * after timout (about 5s) the LED turns off and the new SPI speed is set + */ + /* F_CPU /4 (1.8432MHz) */ #define SPI_MODE4 ((1<