Arduino-Scheduler
Portable Collaborative Multi-Tasking Scheduler for Arduino
SchedulerWatchdogTemplate.ino File Reference
#include <Scheduler.h>
#include "Watchdog.h"
Include dependency graph for SchedulerWatchdogTemplate.ino:

Go to the source code of this file.

Functions

void alarm (unsigned long ms)
 
void setup ()
 
void loop ()
 

Variables

unsigned long count = 0
 
Watchdog< 15, alarmwatchdog
 

Detailed Description

Version
1.0

License

Copyright (C) 2015-2016, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

Description

This Arduino sketch uses the Scheduler library. A watchdog task that monitors the time to scheduler all tasks. The alarm is called if the cycle is long than 10 ms.

Definition in file SchedulerWatchdogTemplate.ino.

Function Documentation

void alarm ( unsigned long  ms)

Definition at line 34 of file SchedulerWatchdogTemplate.ino.

void loop ( )

Definition at line 54 of file SchedulerWatchdogTemplate.ino.

void setup ( )

Definition at line 46 of file SchedulerWatchdogTemplate.ino.

Variable Documentation

unsigned long count = 0

Definition at line 32 of file SchedulerWatchdogTemplate.ino.

Watchdog<15, alarm> watchdog

Definition at line 44 of file SchedulerWatchdogTemplate.ino.