Skip to content
Snippets Groups Projects
Commit 3bdc9577 authored by Urs Graf's avatar Urs Graf
Browse files

Device name and revision number changed

parent 53bd1860
Branches
Tags
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -111,22 +111,20 @@
, USB_unicode('h') \
}
#define USB_SD_PRODUCT_NAME_LENGTH 14
#define USB_SD_PRODUCT_NAME_LENGTH 12
#define USB_SD_PRODUCT_NAME \
{ USB_unicode('A') \
, USB_unicode('V') \
, USB_unicode('R') \
, USB_unicode('-') \
, USB_unicode('U') \
, USB_unicode('S') \
, USB_unicode('B') \
, USB_unicode('C') \
, USB_unicode('O') \
, USB_unicode('M') \
, USB_unicode(' ') \
, USB_unicode('R') \
, USB_unicode('e') \
, USB_unicode('m') \
, USB_unicode('P') \
, USB_unicode('o') \
, USB_unicode('r') \
, USB_unicode('t') \
, USB_unicode('e') \
}
#define USB_SD_SERIAL_NUMBER_LENGTH 8
......@@ -134,11 +132,11 @@
{ USB_unicode('0') \
, USB_unicode('0') \
, USB_unicode('.') \
, USB_unicode('1') \
, USB_unicode('0') \
, USB_unicode('1') \
, USB_unicode('.') \
, USB_unicode('0') \
, USB_unicode('1') \
, USB_unicode('0') \
}
//********** USB string descriptor typedefs **********//
......
......@@ -48,6 +48,7 @@ void usbWriteString(const uint8_t str[]) {
uint8_t ch = 0;
if (rxBuf.len > 0) {
ch = rxBuf.buf[rxBuf.out];
rxBuf.out = (rxBuf.out + 1) % rxBufLen;
rxBuf.len--;
}
SREG = status;
......@@ -57,9 +58,7 @@ void usbWriteString(const uint8_t str[]) {
// reads all available characters from USB and returns them as a string
void usbReadString(uint8_t str[]) {
while (rxBuf.len > 0) {
*str++ = rxBuf.buf[rxBuf.out];
rxBuf.out = (rxBuf.out + 1) % rxBufLen;
rxBuf.len--;
*str++ = usbReadChar();
}
*str = 0; // terminate the string
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment