Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
f4grx
NuttX RTOS
Commits
0e2dce18
Commit
0e2dce18
authored
14 years ago
by
patacongo
Browse files
Options
Downloads
Patches
Plain Diff
comments
git-svn-id:
svn://svn.code.sf.net/p/nuttx/code/trunk@3067
42af7a65-404d-4744-a932-0658087f49c3
parent
aefdf965
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/avr/src/at32uc3/at32uc3_timerisr.c
+13
-0
13 additions, 0 deletions
arch/avr/src/at32uc3/at32uc3_timerisr.c
with
13 additions
and
0 deletions
arch/avr/src/at32uc3/at32uc3_timerisr.c
+
13
−
0
View file @
0e2dce18
...
...
@@ -48,6 +48,7 @@
#include
"chip.h"
#include
"at32uc3_internal.h"
#include
"at32uc3_pm.h"
#include
"at32uc3_rtc.h"
/****************************************************************************
...
...
@@ -160,6 +161,18 @@ int up_timerisr(int irq, uint32_t *regs)
void
up_timerinit
(
void
)
{
uint32_t
regval
;
/* Enable clocking: "The clock for the RTC bus interface (CLK_RTC) is generated
* by the Power Manager. This clock is enabled at reset, and can be disabled
* in the Power Manager. It is recommended to disable the RTC before disabling
* the clock, to avoid freezing the RTC in an undefined state.
*/
#if 0
regval = getreg32(AVR32_PM_PBAMASK);
regval |= PM_PBAMASK_PMRTCEIC;
putreg32(regval, AVR32_PM_PBAMASK);
#endif
/* Configure the RTC. Source == 32KHz OSC32 */
...
...
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