X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao_product.c;h=bb42e92c73768de449af11a0bd70eb9d025415f0;hb=81cf2e833bedbc1ace8fd310e9e94bfb7673d428;hp=2bd0b59c870146865fc36fc5091b818f23b6b3c5;hpb=09252ec22d58e946494e4ca2cf367bf3bbe1cc50;p=fw%2Faltos diff --git a/src/ao_product.c b/src/ao_product.c index 2bd0b59c..bb42e92c 100644 --- a/src/ao_product.c +++ b/src/ao_product.c @@ -16,20 +16,20 @@ */ #include "ao.h" -#include "ao_usb.h" #include PRODUCT_DEFS /* Defines which mark this particular AltOS product */ -const uint16_t ao_serial_number = AO_iSerial_NUMBER; -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 */ -const uint8_t ao_usb_descriptors [] = +__code __at(0x00aa) uint8_t ao_usb_descriptors [] = { /* Device descriptor */ 0x12, @@ -152,3 +152,4 @@ const uint8_t ao_usb_descriptors [] = /* Terminating zero */ 0 }; +#endif