Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
92cd0008
Commit
92cd0008
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
minimal/Makefile: Change C standard from gnu99 to c99.
parent
4afa782f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
minimal/Makefile
+2
-2
2 additions, 2 deletions
minimal/Makefile
minimal/main.c
+1
-1
1 addition, 1 deletion
minimal/main.c
with
3 additions
and
3 deletions
minimal/Makefile
+
2
−
2
View file @
92cd0008
...
@@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
...
@@ -22,9 +22,9 @@ ifeq ($(CROSS), 1)
DFU
=
../tools/dfu.py
DFU
=
../tools/dfu.py
PYDFU
=
../tools/pydfu.py
PYDFU
=
../tools/pydfu.py
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mfpu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
CFLAGS_CORTEX_M4
=
-mthumb
-mtune
=
cortex-m4
-mabi
=
aapcs-linux
-mcpu
=
cortex-m4
-mfpu
=
fpv4-sp-d16
-mfloat-abi
=
hard
-fsingle-precision-constant
-Wdouble-promotion
CFLAGS
=
$(
INC
)
-Wall
-Werror
-std
=
gnu
99
-nostdlib
$(
CFLAGS_CORTEX_M4
)
$(
COPT
)
CFLAGS
=
$(
INC
)
-Wall
-Werror
-std
=
c
99
-nostdlib
$(
CFLAGS_CORTEX_M4
)
$(
COPT
)
else
else
CFLAGS
=
-m32
$(
INC
)
-Wall
-Werror
-std
=
gnu
99
$(
COPT
)
CFLAGS
=
-m32
$(
INC
)
-Wall
-Werror
-std
=
c
99
$(
COPT
)
endif
endif
#Debugging/Optimization
#Debugging/Optimization
...
...
This diff is collapsed.
Click to expand it.
minimal/main.c
+
1
−
1
View file @
92cd0008
...
@@ -106,7 +106,7 @@ extern uint32_t _estack, _sidata, _sdata, _edata, _sbss, _ebss;
...
@@ -106,7 +106,7 @@ extern uint32_t _estack, _sidata, _sdata, _edata, _sbss, _ebss;
void
Reset_Handler
(
void
)
__attribute__
((
naked
));
void
Reset_Handler
(
void
)
__attribute__
((
naked
));
void
Reset_Handler
(
void
)
{
void
Reset_Handler
(
void
)
{
// set stack pointer
// set stack pointer
asm
volatile
(
"ldr sp, =_estack"
);
__
asm
volatile
(
"ldr sp, =_estack"
);
// copy .data section from flash to RAM
// copy .data section from flash to RAM
for
(
uint32_t
*
src
=
&
_sidata
,
*
dest
=
&
_sdata
;
dest
<
&
_edata
;)
{
for
(
uint32_t
*
src
=
&
_sidata
,
*
dest
=
&
_sdata
;
dest
<
&
_edata
;)
{
*
dest
++
=
*
src
++
;
*
dest
++
=
*
src
++
;
...
...
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