Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lufa
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
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Strand
lufa
Commits
61b5740a
Commit
61b5740a
authored
13 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Clean up bootloader makefile comments.
parent
cd0bd7bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Bootloaders/CDC/makefile
+5
-8
5 additions, 8 deletions
Bootloaders/CDC/makefile
Bootloaders/DFU/makefile
+6
-8
6 additions, 8 deletions
Bootloaders/DFU/makefile
Bootloaders/HID/makefile
+6
-9
6 additions, 9 deletions
Bootloaders/HID/makefile
with
17 additions
and
25 deletions
Bootloaders/CDC/makefile
+
5
−
8
View file @
61b5740a
...
@@ -9,17 +9,14 @@
...
@@ -9,17 +9,14 @@
# LUFA Project Makefile.
# LUFA Project Makefile.
# --------------------------------------
# --------------------------------------
# Starting byte address of the bootloader, as a byte address - computed via the formula
# Flash size and bootloader section sizes of the target, in KB. These must
# BOOT_START = ((FLASH_SIZE_KB - BOOT_SECTION_SIZE_KB) * 1024)
# match the target's total FLASH size and the bootloader size set in the
#
# device's fuses.
# Note that the bootloader size and start address given in AVRStudio is in words and not
# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC.
FLASH_SIZE_KB
:=
128
FLASH_SIZE_KB
:=
128
BOOT_SECTION_SIZE_KB
:=
8
BOOT_SECTION_SIZE_KB
:=
8
# Formulas used to calculate the starting address of the Bootloader section, and the User Application
# Bootloader address calculations (requires the "bc" unix utility) - do
# API jump table (for more information on the latter, see the bootloader documentation). These formulas
# not modify these calculations, but rather modify the depedant values above.
# should not need to be altered - modify the FLASH_SIZE_KB and BOOT_SECTION_KB values above instead.
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_API_TABLESTART
:=
0x
$(
shell
echo
"obase=16; ((
$(
FLASH_SIZE_KB
)
* 1024
)
- 96)"
| bc
)
BOOT_API_TABLESTART
:=
0x
$(
shell
echo
"obase=16; ((
$(
FLASH_SIZE_KB
)
* 1024
)
- 96)"
| bc
)
...
...
This diff is collapsed.
Click to expand it.
Bootloaders/DFU/makefile
+
6
−
8
View file @
61b5740a
...
@@ -9,17 +9,15 @@
...
@@ -9,17 +9,15 @@
# LUFA Project Makefile.
# LUFA Project Makefile.
# --------------------------------------
# --------------------------------------
# Starting byte address of the bootloader, as a byte address - computed via the formula
# Flash size and bootloader section sizes of the target, in KB. These must
# BOOT_START = ((FLASH_SIZE_KB - BOOT_SECTION_SIZE_KB) * 1024)
# match the target's total FLASH size and the bootloader size set in the
#
# device's fuses.
# Note that the bootloader size and start address given in AVRStudio is in words and not
# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC.
FLASH_SIZE_KB
:=
128
FLASH_SIZE_KB
:=
128
BOOT_SECTION_SIZE_KB
:=
8
BOOT_SECTION_SIZE_KB
:=
8
#
Formulas used to calculate the starting address of the Bootloader section, and the User Application
#
Bootloader address calculations (requires the "bc" unix utility) - do
#
API jump table (for more information on the l
at
t
er
, see the bootloader documentation). These formulas
#
not modify these calculations, but r
at
h
er
modify the depedant values above.
# should not need to be altered - modify the FLASH_SIZE_KB and BOOT_SECTION_KB values above instead.
CALC_ADDRESS_HEX
=
$(
shell
echo
"obase=16;
$(
1
)
"
| bc
)
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_API_TABLESTART
:=
0x
$(
shell
echo
"obase=16; ((
$(
FLASH_SIZE_KB
)
* 1024
)
- 96)"
| bc
)
BOOT_API_TABLESTART
:=
0x
$(
shell
echo
"obase=16; ((
$(
FLASH_SIZE_KB
)
* 1024
)
- 96)"
| bc
)
...
...
This diff is collapsed.
Click to expand it.
Bootloaders/HID/makefile
+
6
−
9
View file @
61b5740a
...
@@ -9,19 +9,16 @@
...
@@ -9,19 +9,16 @@
# LUFA Project Makefile.
# LUFA Project Makefile.
# --------------------------------------
# --------------------------------------
# Starting byte address of the bootloader, as a byte address - computed via the formula
# Flash size and bootloader section sizes of the target, in KB. These must
# BOOT_START = ((FLASH_SIZE_KB - BOOT_SECTION_SIZE_KB) * 1024)
# match the target's total FLASH size and the bootloader size set in the
#
# device's fuses.
# Note that the bootloader size and start address given in AVRStudio is in words and not
# bytes, and so will need to be doubled to obtain the byte address needed by AVR-GCC.
FLASH_SIZE_KB
:=
128
FLASH_SIZE_KB
:=
128
BOOT_SECTION_SIZE_KB
:=
8
BOOT_SECTION_SIZE_KB
:=
8
# Formulas used to calculate the starting address of the Bootloader section, and the User Application
# Bootloader address calculations (requires the "bc" unix utility) - do
# API jump table (for more information on the latter, see the bootloader documentation). These formulas
# not modify these calculations, but rather modify the depedant values above.
# should not need to be altered - modify the FLASH_SIZE_KB and BOOT_SECTION_KB values above instead.
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_START
:=
0x
$(
shell
echo
"obase=16; (
$(
FLASH_SIZE_KB
)
-
$(
BOOT_SECTION_SIZE_KB
))
* 1024"
| bc
)
BOOT_API_TABLESTART
:=
0x
$(
shell
echo
"obase=16; ((
$(
FLASH_SIZE_KB
)
* 1024
)
- 96)"
| bc
)
MCU
=
at90usb1287
MCU
=
at90usb1287
ARCH
=
AVR8
ARCH
=
AVR8
...
...
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