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
49136786
Commit
49136786
authored
13 years ago
by
Dean Camera
Browse files
Options
Downloads
Patches
Plain Diff
Fix UC3 support in the BUILD build system module. Fix bug in the EVK1101 board buttons driver.
parent
5ce60f25
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
LUFA/Build/lufa.build.in
+7
-5
7 additions, 5 deletions
LUFA/Build/lufa.build.in
LUFA/Drivers/Board/UC3/EVK1101/Buttons.h
+1
-1
1 addition, 1 deletion
LUFA/Drivers/Board/UC3/EVK1101/Buttons.h
with
8 additions
and
6 deletions
LUFA/Build/lufa.build.in
+
7
−
5
View file @
49136786
...
@@ -114,8 +114,10 @@ endif
...
@@ -114,8 +114,10 @@ endif
C_FLAGS += -Wstrict-prototypes
C_FLAGS += -Wstrict-prototypes
# Create a list of flags to pass to the linker
# Create a list of flags to pass to the linker
LD_FLAGS += -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections -lm
LD_FLAGS += -lm -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections
ifneq ($(F_CPU), UC3)
ifeq ($(ARCH), UC3)
LD_FLAGS += --rodata-writable -Wl,--direct-data
else
LD_FLAGS += -Wl,--relax
LD_FLAGS += -Wl,--relax
endif
endif
...
@@ -126,8 +128,8 @@ ifneq ($(UNKNOWN_SOURCE),)
...
@@ -126,8 +128,8 @@ ifneq ($(UNKNOWN_SOURCE),)
endif
endif
# Determine flags to pass to the size utility based on its reported features
# Determine flags to pass to the size utility based on its reported features
SIZE_MCU_FLAG = $(shell
avr-
size --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
SIZE_MCU_FLAG = $(shell
$(CROSS)
size --help | grep -- --mcu > /dev/null && echo --mcu=$(MCU) )
SIZE_FORMAT_FLAG = $(shell
avr-
size --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
SIZE_FORMAT_FLAG = $(shell
$(CROSS)
size --help | grep -- --format=.*avr > /dev/null && echo --format=avr )
begin:
begin:
...
@@ -150,7 +152,7 @@ checksource:
...
@@ -150,7 +152,7 @@ checksource:
size:
size:
@echo $(MSG_SIZE_CMD) Determining size of \"$(TARGET).elf\"
@echo $(MSG_SIZE_CMD) Determining size of \"$(TARGET).elf\"
@if test -f $(TARGET).elf; then \
@if test -f $(TARGET).elf; then \
avr-
size $(SIZE_MCU_FLAG) $(SIZE_FORMAT_FLAG) $(TARGET).elf ; 2>/dev/null; \
$(CROSS)
size $(SIZE_MCU_FLAG) $(SIZE_FORMAT_FLAG) $(TARGET).elf ; 2>/dev/null; \
fi
fi
.PHONY: begin elf hex lss size end
.PHONY: begin elf hex lss size end
...
...
This diff is collapsed.
Click to expand it.
LUFA/Drivers/Board/UC3/EVK1101/Buttons.h
+
1
−
1
View file @
49136786
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
static
inline
uint32_t
Buttons_GetStatus
(
void
)
ATTR_WARN_UNUSED_RESULT
;
static
inline
uint32_t
Buttons_GetStatus
(
void
)
ATTR_WARN_UNUSED_RESULT
;
static
inline
uint32_t
Buttons_GetStatus
(
void
)
static
inline
uint32_t
Buttons_GetStatus
(
void
)
{
{
return
(
~
(
AVR32_GPIO
.
port
[
JOY_MOVE
_PORT
].
pvr
&
(
BUTTONS_BUTTON1
|
BUTTONS_BUTTON2
)));
return
(
~
(
AVR32_GPIO
.
port
[
BUTTONS
_PORT
].
pvr
&
(
BUTTONS_BUTTON1
|
BUTTONS_BUTTON2
)));
}
}
#endif
#endif
...
...
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