1
0
Fork 0

Tidy up spi_master includes (#13053)

This commit is contained in:
Ryan 2021-06-03 16:26:41 +10:00 committed by GitHub
parent a0cc2dc6d0
commit 261d94ce34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -14,10 +14,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
#include <avr/io.h>
#include "spi_master.h" #include "spi_master.h"
#include "quantum.h"
#include "timer.h" #include "timer.h"
#if defined(__AVR_AT90USB162__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__) #if defined(__AVR_AT90USB162__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U4__) || defined(__AVR_ATmega32U4__) || defined(__AVR_AT90USB646__) || defined(__AVR_AT90USB647__) || defined(__AVR_AT90USB1286__) || defined(__AVR_AT90USB1287__)

View file

@ -16,7 +16,9 @@
#pragma once #pragma once
#include "quantum.h" #include <stdbool.h>
#include "gpio.h"
typedef int16_t spi_status_t; typedef int16_t spi_status_t;

View file

@ -15,7 +15,7 @@
*/ */
#include "spi_master.h" #include "spi_master.h"
#include "quantum.h"
#include "timer.h" #include "timer.h"
static pin_t currentSlavePin = NO_PIN; static pin_t currentSlavePin = NO_PIN;

View file

@ -18,7 +18,9 @@
#include <ch.h> #include <ch.h>
#include <hal.h> #include <hal.h>
#include "quantum.h" #include <stdbool.h>
#include "gpio.h"
#ifndef SPI_DRIVER #ifndef SPI_DRIVER
# define SPI_DRIVER SPID2 # define SPI_DRIVER SPID2