Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
e69f3398
Commit
e69f3398
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
USB init, reset and verify after programming
parent
23f7873a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bootloader/.gitignore
+12
-0
12 additions, 0 deletions
bootloader/.gitignore
bootloader/Makefile
+1
-1
1 addition, 1 deletion
bootloader/Makefile
bootloader/bootloader.cpp
+4
-0
4 additions, 0 deletions
bootloader/bootloader.cpp
bootloader/usb_dev.h
+0
-1
0 additions, 1 deletion
bootloader/usb_dev.h
with
17 additions
and
2 deletions
bootloader/.gitignore
0 → 100644
+
12
−
0
View file @
e69f3398
*.elf
*.hex
*.o
*.a
*.d
# IDA Pro
*.id0
*.id1
*.nam
*.til
*.idb
This diff is collapsed.
Click to expand it.
bootloader/Makefile
+
1
−
1
View file @
e69f3398
...
...
@@ -69,7 +69,7 @@ clean:
# Install with OpenOCD. (No code protection!)
install
:
$(TARGET).hex
openocd
-f
openocd.cfg
-c
"program
$(
TARGET
)
.hex"
openocd
-f
openocd.cfg
-c
"program
$(
TARGET
)
.hex
verify reset
"
objdump
:
$(TARGET).elf
$(
OBJDUMP
)
-d
$<
...
...
This diff is collapsed.
Click to expand it.
bootloader/bootloader.cpp
+
4
−
0
View file @
e69f3398
...
...
@@ -21,8 +21,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include
"usb_dev.h"
extern
"C"
int
main
()
{
usb_init
();
while
(
1
)
{
}
}
This diff is collapsed.
Click to expand it.
bootloader/usb_dev.h
+
0
−
1
View file @
e69f3398
...
...
@@ -38,7 +38,6 @@ extern "C" {
#endif
void
usb_init
(
void
);
void
usb_init_serialnumber
(
void
);
void
usb_isr
(
void
);
extern
volatile
uint8_t
usb_configuration
;
...
...
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