diff --git a/src/SpiDriver/DigitalPin.h b/src/SpiDriver/DigitalPin.h index 4ab09c95..d44bb575 100644 --- a/src/SpiDriver/DigitalPin.h +++ b/src/SpiDriver/DigitalPin.h @@ -275,7 +275,7 @@ inline void fastDigitalToggle(uint8_t pin) { fastDigitalWrite(pin, !fastDigitalRead(pin)); } //------------------------------------------------------------------------------ -inline void fastPinMode(pin, mode) { +inline void fastPinMode(uint8_t pin, uint8_t mode) { pinMode(pin, mode); } #endif // __AVR__ diff --git a/src/SpiDriver/SdSpiSTM32.cpp b/src/SpiDriver/SdSpiSTM32.cpp index 6169ced1..60d742cc 100644 --- a/src/SpiDriver/SdSpiSTM32.cpp +++ b/src/SpiDriver/SdSpiSTM32.cpp @@ -22,7 +22,7 @@ #if defined(__STM32F1__) #define USE_STM32_DMA 1 #elif defined(__STM32F4__) -#define USE_STM32_DMA 0 +#define USE_STM32_DMA 1 #else // defined(__STM32F1__) #error Unknown STM32 type #endif // defined(__STM32F1__)