3-phase PV router
Loading...
Searching...
No Matches
Mk2_3phase_RFdatalog_temp
test
embedded
halt_after_tests.h
Go to the documentation of this file.
1
9
10
#ifndef HALT_AFTER_TESTS_H
11
#define HALT_AFTER_TESTS_H
12
13
#include <Arduino.h>
14
#include <avr/interrupt.h>
15
#include <avr/sleep.h>
16
17
inline
void
haltAfterTests
()
18
{
19
Serial.flush();
// let the last Unity lines out, transmission is interrupt-driven
20
21
cli();
22
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
23
sleep_enable();
24
sleep_cpu();
25
}
26
27
#endif
// HALT_AFTER_TESTS_H
haltAfterTests
void haltAfterTests()
Definition
halt_after_tests.h:17
Generated by
1.13.2