Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Projet_Pico_ordi_B6
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Man hing Ling
Projet_Pico_ordi_B6
Commits
39251341
Commit
39251341
authored
1 year ago
by
dylanling2
Browse files
Options
Downloads
Patches
Plain Diff
Makefile ordonnanceur
parent
69108e86
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
PicoShield/CarteMerePicoB6/Makefile
+44
-0
44 additions, 0 deletions
PicoShield/CarteMerePicoB6/Makefile
with
44 additions
and
0 deletions
PicoShield/CarteMerePicoB6/Makefile
0 → 100644
+
44
−
0
View file @
39251341
export
CC
=
avr-gcc
export
MCU
=
atmega328p
export
TARGET_ARCH
=
-mmcu
=
$(
MCU
)
export
CFLAGS
=
-Wall
-I
.
-DF_CPU
=
16000000
-Os
export
LDFLAGS
=
$(
TARGET_ARCH
)
-lm
-Wl
,--gc-sections
# -g
TARGET
=
led
TERM
=
/dev/ttyACM0
CPPFLAGS
=
-mmcu
=
$(
MCU
)
PGMERISP
=
-c
stk500v1
-b
115200
-P
$(
TERM
)
ARVDUDECONF
=
-C
/usr/local/arduino/arduino-0022/hardware/tools/avrdude.conf
export
DUDE
=
/usr/bin/avrdude
-F
-v
-p
$(
MCU
)
$(
AVRDUDECONF
)
C_SRC
=
$(
wildcard
*
.c
)
OBJS
=
$(
C_SRC:.c
=
.o
)
all
:
$(TARGET).hex
clean
:
rm
-f
*
.o
%.o
:
%.c
$(
CC
)
-c
$(
CPPFLAGS
)
$(
CFLAGS
)
$<
-o
$@
$(TARGET).elf
:
$(OBJS)
$(
CC
)
$(
LDFLAGS
)
-o
$@
$(
OBJS
)
$(TARGET).hex
:
$(TARGET).elf
avr-objcopy
-j
.text
-j
.data
-O
ihex
$(
TARGET
)
.elf
$(
TARGET
)
.hex
avr-objcopy
-j
.eeprom
--set-section-flags
=
.eeprom
=
"alloc,load"
--change-section-lma
.eeprom
=
0
-O
ihex
$(
TARGET
)
.elf eeprom.hex
upload
:
$(TARGET).hex
stty
-F
$(
TERM
)
hupcl
# reset
$(
DUDE
)
$(
PGMERISP
)
-U
flash:w:
$(
TARGET
)
.hex
size
:
$(TARGET).elf
avr-size
--format
=
avr
--mcu
=
$(
MCU
)
$(
TARGET
)
.elf
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