From cc33db5a8e24cdafb8b9c9bc3a42a27f33bcca90 Mon Sep 17 00:00:00 2001 From: David Frey Date: Wed, 21 Feb 2018 11:23:20 -0800 Subject: [PATCH] spiService: Use #if in adef to support wp76, wp77 Resolves: #23 --- apps/platformServices/spiService.adef | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/platformServices/spiService.adef b/apps/platformServices/spiService.adef index c34388a9c..a82865465 100644 --- a/apps/platformServices/spiService.adef +++ b/apps/platformServices/spiService.adef @@ -31,7 +31,23 @@ requires: { device: { +#if ${LEGATO_TARGET} = wp85 [rw] /dev/spidev0.0 /dev/ +#elif ${LEGATO_TARGET} = wp750x + [rw] /dev/spidev0.0 /dev/ +#elif ${LEGATO_TARGET} = wp76xx + [rw] /dev/spidev1.0 /dev/ +#elif ${LEGATO_TARGET} = wp77xx + [rw] /dev/spidev1.0 /dev/ +#elif ${LEGATO_TARGET} = ar7 + // TODO: ar7 device path +#elif ${LEGATO_TARGET} = ar758x + // TODO: ar758x device path +#elif ${LEGATO_TARGET} = ar86 + // TODO: ar86 device path +#elif ${LEGATO_TARGET} = em75xx + // TODO: em75xx device path +#endif } }