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
a3cf4ea2
Commit
a3cf4ea2
authored
9 years ago
by
Daniel Campora
Browse files
Options
Downloads
Patches
Plain Diff
cc3200: Do not kick the watchdog inside the idle task.
parent
71f85cc3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cc3200/misc/FreeRTOSHooks.c
+0
-3
0 additions, 3 deletions
cc3200/misc/FreeRTOSHooks.c
cc3200/mods/pybwdt.c
+5
-10
5 additions, 10 deletions
cc3200/mods/pybwdt.c
cc3200/mods/pybwdt.h
+0
-1
0 additions, 1 deletion
cc3200/mods/pybwdt.h
with
5 additions
and
14 deletions
cc3200/misc/FreeRTOSHooks.c
+
0
−
3
View file @
a3cf4ea2
...
...
@@ -34,7 +34,6 @@
#include
"inc/hw_memmap.h"
#include
"pybuart.h"
#include
"osi.h"
#include
"pybwdt.h"
#include
"mperror.h"
...
...
@@ -49,8 +48,6 @@
//*****************************************************************************
void
vApplicationIdleHook
(
void
)
{
// kick the watchdog
pybwdt_kick
();
// signal that we are alive and kicking
mperror_heartbeat_signal
();
// gate the processor's clock to save power
...
...
This diff is collapsed.
Click to expand it.
cc3200/mods/pybwdt.c
+
5
−
10
View file @
a3cf4ea2
...
...
@@ -73,15 +73,6 @@ __attribute__ ((section (".boot")))
void
pybwdt_init0
(
void
)
{
}
void
pybwdt_kick
(
void
)
{
// check that the servers and simplelink are running fine
if
((
pybwdt_data
.
servers
||
pybwdt_data
.
servers_sleeping
)
&&
pybwdt_data
.
simplelink
&&
pybwdt_data
.
running
)
{
pybwdt_data
.
servers
=
false
;
pybwdt_data
.
simplelink
=
false
;
MAP_WatchdogIntClear
(
WDT_BASE
);
}
}
void
pybwdt_srv_alive
(
void
)
{
pybwdt_data
.
servers
=
true
;
}
...
...
@@ -139,7 +130,11 @@ STATIC mp_obj_t pyb_wdt_make_new (mp_obj_t type_in, mp_uint_t n_args, mp_uint_t
/// \function wdt_kick()
/// Kicks the watchdog timer
STATIC
mp_obj_t
pyb_kick_wdt
(
mp_obj_t
self
)
{
pybwdt_kick
();
if
((
pybwdt_data
.
servers
||
pybwdt_data
.
servers_sleeping
)
&&
pybwdt_data
.
simplelink
)
{
pybwdt_data
.
servers
=
false
;
pybwdt_data
.
simplelink
=
false
;
MAP_WatchdogIntClear
(
WDT_BASE
);
}
return
mp_const_none
;
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
pyb_kick_wdt_obj
,
pyb_kick_wdt
);
...
...
This diff is collapsed.
Click to expand it.
cc3200/mods/pybwdt.h
+
0
−
1
View file @
a3cf4ea2
...
...
@@ -32,7 +32,6 @@
extern
const
mp_obj_type_t
pyb_wdt_type
;
void
pybwdt_init0
(
void
);
void
pybwdt_kick
(
void
);
void
pybwdt_srv_alive
(
void
);
void
pybwdt_srv_sleeping
(
bool
state
);
void
pybwdt_sl_alive
(
void
);
...
...
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