From 8eb685ffdf6e922156c84a2d5b189fb3914fda7a Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 30 Nov 2021 00:20:01 +0000 Subject: [PATCH] Remove a couple of #ifdefs Give iBasso DX50/DX90 empty adc-target.h headers like all the other hosted targets to avoid special cases. Change-Id: Iaae15642fdec4ff18bc9ac01245753135128f676 --- apps/main.c | 2 -- firmware/powermgmt.c | 2 -- firmware/target/hosted/ibasso/dx50/adc-target.h | 0 firmware/target/hosted/ibasso/dx90/adc-target.h | 0 4 files changed, 4 deletions(-) create mode 100644 firmware/target/hosted/ibasso/dx50/adc-target.h create mode 100644 firmware/target/hosted/ibasso/dx90/adc-target.h diff --git a/apps/main.c b/apps/main.c index 3b7ec6d4c1..a88cd73ef7 100644 --- a/apps/main.c +++ b/apps/main.c @@ -38,9 +38,7 @@ #include "usb.h" #include "wifi.h" #include "powermgmt.h" -#if !defined(DX50) && !defined(DX90) #include "adc.h" -#endif #include "i2c.h" #ifndef DEBUG #include "serial.h" diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 8bfd41939f..8c807e5382 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c @@ -24,9 +24,7 @@ #include "kernel.h" #include "thread.h" #include "debug.h" -#if !defined(DX50) && !defined(DX90) #include "adc.h" -#endif #include "string.h" #include "storage.h" #include "power.h" diff --git a/firmware/target/hosted/ibasso/dx50/adc-target.h b/firmware/target/hosted/ibasso/dx50/adc-target.h new file mode 100644 index 0000000000..e69de29bb2 diff --git a/firmware/target/hosted/ibasso/dx90/adc-target.h b/firmware/target/hosted/ibasso/dx90/adc-target.h new file mode 100644 index 0000000000..e69de29bb2