terom@27: ;; terom@27: ;; Reading DIP switches from SPI terom@27: ;; terom@27: terom@27: .set DIP_BUFFER = spi_inbuf + 1 terom@27: terom@27: ;; Read state of dip switches terom@27: ;; Output: r16 terom@27: DIP_Read8: terom@27: ; update terom@30: ; rcall SPI_SendRecv terom@27: terom@27: ; get bits terom@27: lds r16, DIP_BUFFER terom@27: terom@27: ret terom@27: