diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-08-24 14:06:47 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-08-24 14:06:47 -0600 |
commit | 62f2bd5fe08707d053f10c6f2b9220723fc868aa (patch) | |
tree | 54ed4d9b930ccf49298249d64c46260a8b3131d3 /nuttx/configs/sama5d3x-ek/src/sam_usb.c | |
parent | c072e1d1b7c1c6d2f0fffae0b75bc07d2b688baf (diff) | |
download | px4-nuttx-62f2bd5fe08707d053f10c6f2b9220723fc868aa.tar.gz px4-nuttx-62f2bd5fe08707d053f10c6f2b9220723fc868aa.tar.bz2 px4-nuttx-62f2bd5fe08707d053f10c6f2b9220723fc868aa.zip |
SAMA5D3x-EK: Fix some backward conditional compilation
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sam_usb.c')
-rw-r--r-- | nuttx/configs/sama5d3x-ek/src/sam_usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sam_usb.c b/nuttx/configs/sama5d3x-ek/src/sam_usb.c index b8cc73d21..22083b159 100644 --- a/nuttx/configs/sama5d3x-ek/src/sam_usb.c +++ b/nuttx/configs/sama5d3x-ek/src/sam_usb.c @@ -393,7 +393,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) switch (rhport) { case SAM_RHPORT1: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT1 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT1 udbg("ERROR: RHPort1 is not available in this configuration\n"); return; #else @@ -402,7 +402,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) #endif case SAM_RHPORT2: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT2 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT2 udbg("ERROR: RHPort2 is not available in this configuration\n"); return; #else @@ -411,7 +411,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) #endif case SAM_RHPORT3: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT3 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT3 udbg("ERROR: RHPort3 is not available in this configuration\n"); return; #else |