Basic implementation of watchdog

Dependencies:   STM_ResetSupervisor USBDevice

main.cpp

Committer:
JesiMiranda
Date:
2019-06-25
Revision:
0:975e02a70882
Child:
1:38b385f34687

File content as of revision 0:975e02a70882:

#include "mbed.h"
#include <ros.h>
#include <nav_msgs/Odometry.h>  //contains both the twist and pose
#include "Watchdog.h"


Serial pc(USBTX, USBRX, 57600);     //Serial Monitor

int main(void)
{
    Watchdog dog;
    dog.Configure(1);
    pc.print("is it caused ",dog.WatchdogCausedReset());
    
    while(1)
    {
    pc.printf("hello \r\n");
    wait(1.6);
    dog.Service();
    //return 0;
    }
}