projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Add beeper to TBT v0.1
[fw/altos]
/
src
/
ao_product.c
diff --git
a/src/ao_product.c
b/src/ao_product.c
index f0eb4c07afc0e2286ced7324836d90da70d15060..54ba2a14e993b85017c0f203e22191e2f82e9bca 100644
(file)
--- a/
src/ao_product.c
+++ b/
src/ao_product.c
@@
-16,7
+16,6
@@
*/
#include "ao.h"
*/
#include "ao.h"
-#include "ao_usb.h"
#include PRODUCT_DEFS
/* Defines which mark this particular AltOS product */
#include PRODUCT_DEFS
/* Defines which mark this particular AltOS product */
@@
-27,8
+26,10
@@
const char ao_product[] = AO_iProduct_STRING;
#define LE_WORD(x) ((x)&0xFF),((uint8_t) (((uint16_t) (x))>>8))
#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 */
/* USB descriptors in one giant block of bytes */
-
const
uint8_t ao_usb_descriptors [] =
+
__code __at(0x00aa)
uint8_t ao_usb_descriptors [] =
{
/* Device descriptor */
0x12,
{
/* Device descriptor */
0x12,
@@
-151,3
+152,4
@@
const uint8_t ao_usb_descriptors [] =
/* Terminating zero */
0
};
/* Terminating zero */
0
};
+#endif