Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Compare revisions
a9ba02fc3f46b404be5a76486b392529d4b80827 to 02168c8615b38b24030018b8e678fde18f391228
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
derf/multipass
Select target project
No results found
02168c8615b38b24030018b8e678fde18f391228
Select Git revision
Branches
main
Swap
Target
derf/multipass
Select target project
derf/multipass
1 result
a9ba02fc3f46b404be5a76486b392529d4b80827
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
make stm32f7 usable with dfatool counter benchmarks
· 8d38d364
Birte Kristina Friesel
authored
1 year ago
8d38d364
stm32f7: slightly un-break delay_us and delay_ms
· 02168c86
Birte Kristina Friesel
authored
1 year ago
02168c86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/arch/stm32f746zg-nucleo/Makefile.inc
+3
-0
3 additions, 0 deletions
src/arch/stm32f746zg-nucleo/Makefile.inc
src/arch/stm32f746zg-nucleo/arch.cc
+7
-5
7 additions, 5 deletions
src/arch/stm32f746zg-nucleo/arch.cc
with
10 additions
and
5 deletions
src/arch/stm32f746zg-nucleo/Makefile.inc
View file @
02168c86
...
@@ -50,6 +50,9 @@ endif
...
@@ -50,6 +50,9 @@ endif
ifdef
CONFIG_arch_stm32f746zg_nucleo_driver_counter
ifdef
CONFIG_arch_stm32f746zg_nucleo_driver_counter
CXX_TARGETS
+=
src/arch/stm32f746zg-nucleo/driver/counter.cc
CXX_TARGETS
+=
src/arch/stm32f746zg-nucleo/driver/counter.cc
ifneq
(${app}, )
COMMON_FLAGS
+=
-DCONFIG_arch_stm32f746zg_nucleo_driver_counter
endif
endif
endif
ifdef
CONFIG_arch_stm32f746zg_nucleo_driver_i2c
ifdef
CONFIG_arch_stm32f746zg_nucleo_driver_i2c
...
...
This diff is collapsed.
Click to expand it.
src/arch/stm32f746zg-nucleo/arch.cc
View file @
02168c86
...
@@ -64,19 +64,21 @@ extern void loop();
...
@@ -64,19 +64,21 @@ extern void loop();
volatile
char
run_loop
=
0
;
volatile
char
run_loop
=
0
;
#endif
#endif
// for 216 MHz(?)
static
volatile
int
delay_counter
;
// horribly broken
void
Arch
::
delay_us
(
unsigned
int
const
us
)
void
Arch
::
delay_us
(
unsigned
int
const
us
)
{
{
volatile
int
x
=
us
*
145
;
delay_counter
=
us
*
37
;
while
(
x
--
)
{
while
(
delay_counter
--
)
{
__asm
(
"nop"
);
__asm
(
"nop"
);
}
}
}
}
// horribly broken
void
Arch
::
delay_ms
(
unsigned
int
const
ms
)
void
Arch
::
delay_ms
(
unsigned
int
const
ms
)
{
{
for
(
unsigned
int
i
=
0
;
i
<
ms
;
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
ms
;
i
++
)
{
volatile
int
x
=
143990
;
delay_counter
=
36364
;
while
(
x
--
)
{
while
(
delay_counter
--
)
{
__asm
(
"nop"
);
__asm
(
"nop"
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.