Skip to content

Commit

Permalink
Tidy up spi_master includes (#13053)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark committed Jun 3, 2021
1 parent a0cc2dc commit 261d94c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 1 addition & 3 deletions drivers/avr/spi_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

#include <avr/io.h>

#include "spi_master.h"
#include "quantum.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__)
Expand Down
4 changes: 3 additions & 1 deletion drivers/avr/spi_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

#pragma once

#include "quantum.h"
#include <stdbool.h>

#include "gpio.h"

typedef int16_t spi_status_t;

Expand Down
2 changes: 1 addition & 1 deletion drivers/chibios/spi_master.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

#include "spi_master.h"
#include "quantum.h"

#include "timer.h"

static pin_t currentSlavePin = NO_PIN;
Expand Down
4 changes: 3 additions & 1 deletion drivers/chibios/spi_master.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@

#include <ch.h>
#include <hal.h>
#include "quantum.h"
#include <stdbool.h>

#include "gpio.h"

#ifndef SPI_DRIVER
# define SPI_DRIVER SPID2
Expand Down

0 comments on commit 261d94c

Please sign in to comment.