drivers: remove direct quantum.h includes (#21473)
This commit is contained in:
parent
726132fb69
commit
b6d9409d2f
16 changed files with 30 additions and 23 deletions
|
|
@ -1,12 +1,10 @@
|
|||
// Copyright 2022 Marek Kraus (@gamelaster)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
#include "hardware/pio.h"
|
||||
#include "hardware/clocks.h"
|
||||
#include "ps2.h"
|
||||
#include "print.h"
|
||||
#include "debug.h"
|
||||
|
||||
#if !defined(MCU_RP)
|
||||
# error PIO Driver is only available for Raspberry Pi 2040 MCUs!
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
// Copyright 2022 Stefan Kerkmann
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "quantum.h"
|
||||
#include "serial_usart.h"
|
||||
#include "serial_protocol.h"
|
||||
#include "hardware/pio.h"
|
||||
#include "hardware/clocks.h"
|
||||
#include "wait.h"
|
||||
#include "debug.h"
|
||||
|
||||
#if !defined(MCU_RP)
|
||||
# error PIO Driver is only available for Raspberry Pi 2040 MCUs!
|
||||
|
|
|
|||
|
|
@ -2,13 +2,19 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "ws2812.h"
|
||||
#include "hardware/timer.h"
|
||||
#include "hardware/clocks.h"
|
||||
|
||||
// Keep this exact include order otherwise we run into naming conflicts between
|
||||
// pico-sdk and rp2040.h which we don't control.
|
||||
#include "quantum.h"
|
||||
#include "hardware/timer.h"
|
||||
#include "hardware/clocks.h"
|
||||
#include <hal.h>
|
||||
#include "hardware/pio.h"
|
||||
|
||||
#include "gpio.h"
|
||||
#include "debug.h"
|
||||
#include "wait.h"
|
||||
#include "util.h"
|
||||
|
||||
#if !defined(MCU_RP)
|
||||
# error PIO Driver is only available for Raspberry Pi 2040 MCUs!
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue