Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
avr-virtual-usb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tech
inf
public
avr-virtual-usb
Commits
3bdc9577
Commit
3bdc9577
authored
9 years ago
by
Urs Graf
Browse files
Options
Downloads
Patches
Plain Diff
Device name and revision number changed
parent
53bd1860
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
USB/lib/libUSB1287.a
+0
-0
0 additions, 0 deletions
USB/lib/libUSB1287.a
USB/lib/libUSB16U4.a
+0
-0
0 additions, 0 deletions
USB/lib/libUSB16U4.a
src/USBLib/config.h
+8
-10
8 additions, 10 deletions
src/USBLib/config.h
src/USBLib/usb.c
+2
-3
2 additions, 3 deletions
src/USBLib/usb.c
with
10 additions
and
13 deletions
USB/lib/libUSB1287.a
+
0
−
0
View file @
3bdc9577
No preview for this file type
This diff is collapsed.
Click to expand it.
USB/lib/libUSB16U4.a
+
0
−
0
View file @
3bdc9577
No preview for this file type
This diff is collapsed.
Click to expand it.
src/USBLib/config.h
+
8
−
10
View file @
3bdc9577
...
...
@@ -111,22 +111,20 @@
,
USB_unicode
(
'h'
)
\
}
#define USB_SD_PRODUCT_NAME_LENGTH 1
4
#define USB_SD_PRODUCT_NAME_LENGTH 1
2
#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 **********//
...
...
This diff is collapsed.
Click to expand it.
src/USBLib/usb.c
+
2
−
3
View file @
3bdc9577
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment