summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/beacon/src/misc.c')
-rw-r--r--digital/beacon/src/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/digital/beacon/src/misc.c b/digital/beacon/src/misc.c
index 616df71d..04db1de5 100644
--- a/digital/beacon/src/misc.c
+++ b/digital/beacon/src/misc.c
@@ -26,6 +26,13 @@
#include "misc.h"
#include "network.h"
+/* This function resets the avr using the embedded watchdog */
+void reset_avr(void)
+{
+ wdt_enable (WDTO_15MS);
+ while (1);
+}
+
/* This function simulates the jack's state and send it over the air */
void jack_on_off(void)
{