diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 12:58:04 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-12-20 12:58:04 +0100 |
commit | 0f422f5332f8868aee277cc621e2f1633506b1c3 (patch) | |
tree | e32eceadbd74c97bb7e1b48e7f6dd54c7b2bbf24 /src/arch/arduino-nano/arch.cc | |
parent | 664c1b6c157cb6f8dc87ea0c7931589306fc10eb (diff) |
add untested Arduino Nano SPI driver
Diffstat (limited to 'src/arch/arduino-nano/arch.cc')
-rw-r--r-- | src/arch/arduino-nano/arch.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/arduino-nano/arch.cc b/src/arch/arduino-nano/arch.cc index 221ef5b..1023927 100644 --- a/src/arch/arduino-nano/arch.cc +++ b/src/arch/arduino-nano/arch.cc @@ -105,12 +105,16 @@ void Arch::idle(void) void Arch::delay_us(unsigned int const us) { - _delay_us(us); + for (unsigned int i = 0; i < us; i++) { + _delay_us(1); + } } void Arch::delay_ms(unsigned int const ms) { - _delay_ms(ms); + for (unsigned int i = 0; i < ms; i++) { + _delay_ms(1); + } } Arch arch; |