Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
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
Show more breadcrumbs
card10
firmware
Commits
2773f996
Commit
2773f996
authored
5 years ago
by
Jeff Gough
Browse files
Options
Downloads
Patches
Plain Diff
Ran code-format.sh
parent
444101b2
No related branches found
No related tags found
1 merge request
!172
Watchdog timer implemented
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
epicardium/main.c
+9
-9
9 additions, 9 deletions
epicardium/main.c
epicardium/modules/hardware.c
+3
-1
3 additions, 1 deletion
epicardium/modules/hardware.c
epicardium/modules/watchdog.c
+5
-5
5 additions, 5 deletions
epicardium/modules/watchdog.c
with
17 additions
and
15 deletions
epicardium/main.c
+
9
−
9
View file @
2773f996
This diff is collapsed.
Click to expand it.
epicardium/modules/hardware.c
+
3
−
1
View file @
2773f996
...
@@ -35,7 +35,9 @@ int hardware_early_init(void)
...
@@ -35,7 +35,9 @@ int hardware_early_init(void)
sys_cfg_wdt_t
wdt_cfg
=
NULL
;
sys_cfg_wdt_t
wdt_cfg
=
NULL
;
WDT_Init
(
MXC_WDT0
,
wdt_cfg
);
WDT_Init
(
MXC_WDT0
,
wdt_cfg
);
WDT_Enable
(
MXC_WDT0
,
1
);
WDT_Enable
(
MXC_WDT0
,
1
);
WDT_SetResetPeriod
(
MXC_WDT0
,
WDT_PERIOD_2_29
);
/* Clocked by PCLK at 50MHz, reset at 2^29 ticks = 10.7 seconds */
WDT_SetResetPeriod
(
MXC_WDT0
,
WDT_PERIOD_2_29
);
/* Clocked by PCLK at 50MHz, reset at 2^29 ticks = 10.7 seconds */
WDT_EnableReset
(
MXC_WDT0
,
1
);
WDT_EnableReset
(
MXC_WDT0
,
1
);
/*
/*
...
...
This diff is collapsed.
Click to expand it.
epicardium/modules/watchdog.c
+
5
−
5
View file @
2773f996
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