3-phase PV router
Loading...
Searching...
No Matches
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
17inline 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
void haltAfterTests()