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
Commits
4bbe59b2
Unverified
Commit
4bbe59b2
authored
1 year ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
stm32f7: Working counter
parent
6b3bfe26
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#97
failed
1 year ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+0
-2
0 additions, 2 deletions
README.md
src/arch/stm32f746zg-nucleo/Makefile.inc
+4
-4
4 additions, 4 deletions
src/arch/stm32f746zg-nucleo/Makefile.inc
src/arch/stm32f746zg-nucleo/arch.cc
+2
-0
2 additions, 0 deletions
src/arch/stm32f746zg-nucleo/arch.cc
with
6 additions
and
6 deletions
README.md
+
0
−
2
View file @
4bbe59b2
...
...
@@ -135,8 +135,6 @@ Peripheral communication:
### STM32F746ZG (NUCLEO-F746ZG)
Preliminary support, timers may be incorrect.
Peripheral communication:
*
UART output on USART3
...
...
This diff is collapsed.
Click to expand it.
src/arch/stm32f746zg-nucleo/Makefile.inc
+
4
−
4
View file @
4bbe59b2
...
...
@@ -7,6 +7,7 @@
SERIAL_PORT
?=
ttyACM0
cpu_freq
?=
216000000
counter_freq
?=
108000000
INCLUDES
+=
-Iext
/libopencm3/include
...
...
@@ -114,7 +115,7 @@ arch_clean:
${
QUIET
}
rm
-f
${
OBJECTS
}
cat
:
${
QUIET
}
script/cat.py /dev/
${
SERIAL_PORT
}
115200
${
c
pu
_freq
}
6553
6
${
QUIET
}
script/cat.py /dev/
${
SERIAL_PORT
}
115200
${
c
ounter
_freq
}
429496729
6
monitor
:
${
QUIET
}
screen /dev/
${
SERIAL_PORT
}
115200
...
...
@@ -126,9 +127,8 @@ arch_help:
arch_info
:
@
echo
"CPU Freq:
${
cpu_freq
}
Hz"
@
echo
"Timer Freq:
${
timer_freq
}
Hz ->
$(
shell src/arch/stm32f746zg-nucleo/model.py f_timer "
${
cpu_freq
}
" "
${
timer_freq
}
"
)
"
@
echo
"I2C Freq:
${
i2c_freq
}
Hz"
@
echo
"Counter Overflow: 4294967296/255"
@
echo
"Count Freq:
${
counter_freq
}
Hz"
@
echo
"Counter Overflow: 4294967296/4294967295"
@
echo
"Monitor: /dev/
${
SERIAL_PORT
}
115200"
attributes
:
build/system.elf
...
...
This diff is collapsed.
Click to expand it.
src/arch/stm32f746zg-nucleo/arch.cc
+
2
−
0
View file @
4bbe59b2
...
...
@@ -21,6 +21,7 @@ void Arch::setup(void)
#error Unsupported F_CPU
#endif
#ifdef CONFIG_arch_stm32f746zg_nucleo_driver_counter
// counter
rcc_periph_clock_enable
(
RCC_TIM2
);
nvic_enable_irq
(
NVIC_TIM2_IRQ
);
...
...
@@ -32,6 +33,7 @@ void Arch::setup(void)
timer_continuous_mode
(
TIM2
);
timer_set_period
(
TIM2
,
4294967295
);
timer_enable_irq
(
TIM2
,
TIM_DIER_UIE
);
#endif
#ifdef CONFIG_loop
rcc_periph_clock_enable
(
RCC_TIM3
);
...
...
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