summaryrefslogtreecommitdiff
path: root/src/ao_product.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-06 20:56:25 -0800
committerKeith Packard <keithp@keithp.com>2011-03-16 15:57:37 -0700
commit02611efea0c485d78fad08c696c1f56e868d36b8 (patch)
treef51ef97cbc62c88a9084c4de05d4446de58e7142 /src/ao_product.c
parentfdd15a254c6fab5ba2d02320ba0ceb3e6a56354c (diff)
altos: Make serial, usb, beeper and accelerometer optional components
Not all boards will have these, so fix places that use them to deal with that. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_product.c')
-rw-r--r--src/ao_product.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ao_product.c b/src/ao_product.c
index 82d6298f..54ba2a14 100644
--- a/src/ao_product.c
+++ b/src/ao_product.c
@@ -16,7 +16,6 @@
*/
#include "ao.h"
-#include "ao_usb.h"
#include PRODUCT_DEFS
/* Defines which mark this particular AltOS product */
@@ -27,6 +26,8 @@ const char ao_product[] = AO_iProduct_STRING;
#define LE_WORD(x) ((x)&0xFF),((uint8_t) (((uint16_t) (x))>>8))
+#if HAS_USB
+#include "ao_usb.h"
/* USB descriptors in one giant block of bytes */
__code __at(0x00aa) uint8_t ao_usb_descriptors [] =
{
@@ -151,3 +152,4 @@ __code __at(0x00aa) uint8_t ao_usb_descriptors [] =
/* Terminating zero */
0
};
+#endif