[Bug] Fix compilation issues with PS/2 driver on F4x1 controllers (#20433)

This commit is contained in:
Drashna Jaelre 2023-04-12 21:43:27 -07:00 committed by GitHub
parent 572f86349e
commit cf5626e024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -809,9 +809,9 @@ endif
ifeq ($(strip $(PS2_MOUSE_ENABLE)), yes)
PS2_ENABLE := yes
MOUSE_ENABLE := yes
SRC += ps2_mouse.c
OPT_DEFS += -DPS2_MOUSE_ENABLE
OPT_DEFS += -DMOUSE_ENABLE
endif
VALID_PS2_DRIVER_TYPES := busywait interrupt usart vendor

View file

@ -47,6 +47,7 @@ POSSIBILITY OF SUCH DAMAGE.
// chibiOS headers
# include "ch.h"
# include "hal.h"
# include "gpio.h"
#endif
#include "ps2.h"

View file

@ -4,6 +4,7 @@
// chibiOS headers
#include "ch.h"
#include "hal.h"
#include "gpio.h"
/* Check port settings for clock and data line */
#if !(defined(PS2_CLOCK_PIN))