X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fao_product.c;h=fb59580b8d4b123b729cf0a0712495282eac8da5;hp=82d6298f2dbe4751b6de6bd496ea6412f1c9a2d8;hb=504ab7ab355652d5d01094c927089029596a0753;hpb=c443f43f8dee6e0fcbcecf9d09e948fd928b7af4 diff --git a/src/ao_product.c b/src/ao_product.c index 82d6298f..fb59580b 100644 --- a/src/ao_product.c +++ b/src/ao_product.c @@ -16,17 +16,18 @@ */ #include "ao.h" -#include "ao_usb.h" -#include PRODUCT_DEFS +#include "ao_product.h" /* Defines which mark this particular AltOS product */ -const char ao_version[] = AO_iVersion_STRING; +const char ao_version[AO_MAX_VERSION] = AO_iVersion_STRING; const char ao_manufacturer[] = AO_iManufacturer_STRING; 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