Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
processer
Commits
cf36849b
Commit
cf36849b
authored
May 11, 2015
by
Anders Blomdell
Browse files
Make fuses programmable with avrdude.
parent
bac2e03c
Changes
2
Show whitespace changes
Inline
Side-by-side
lib/avr/Makefile.common
View file @
cf36849b
...
...
@@ -68,6 +68,15 @@ OBJECTS=$($(1).C:%=compiled/$(1)/%.o)
-U
flash:w:compiled/
$(TARGET)
/
$*
.sr:s
%.FUSE
:
[
-n
"
$
(
$(TARGET)
.FUSE_L)"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(CHIP)
\
-U
lfuse:w:
$
(
$(TARGET)
.FUSE_L
)
:m
||
true
[
-n
"
$
(
$(TARGET)
.FUSE_H)"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(CHIP)
\
-U
hfuse:w:
$
(
$(TARGET)
.FUSE_H
)
:m
||
true
[
-n
"
$
(
$(TARGET)
.FUSE_E)"
]
&&
avrdude
-P
usb
-c
avrisp2
-p
$(CHIP)
\
-U
efuse:w:
$
(
$(TARGET)
.FUSE_E
)
:m
||
true
%.FUSE_uisp
:
exit
1
uisp
\
-dprog
=
stk200
\
$
(
$(TARGET)
.FUSE
)
...
...
linear_pendulum_2009/avr/Makefile
View file @
cf36849b
...
...
@@ -3,13 +3,15 @@ TARGETS=current_control vel_control
current_control.ARCH
=
avr
current_control.CHIP
=
atmega16
# 14.7456 MHz crystal, brown out
current_control.FUSE
=
--wr_fuse_l
=
0x1f
--wr_fuse_h
=
0xd9
--wr_fuse_e
=
0xff
vel_control.FUSE_L
=
0x1f
vel_control.FUSE_H
=
0xd9
current_control.C
=
current_control
vel_control.ARCH
=
avr
vel_control.CHIP
=
atmega16
# 14.7456 MHz crystal, brown out
vel_control.FUSE
=
--wr_fuse_l
=
0x1f
--wr_fuse_h
=
0xd9
--wr_fuse_e
=
0xff
vel_control.FUSE_L
=
0x1f
vel_control.FUSE_H
=
0xd9
vel_control.C
=
vel_control
vel_control.H
=
serialio_core
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment