LNSC-2420-Firmware/src/rs485.h
Thomas Kolb df3211333e Properly shut down peripherals before entering deep sleep
This is most important for the LEDs and the RS485 interface. If any LED
is on when deep sleep is entered, it will stay on the whole sleep time,
drawing about 10 mA on the 3,3V rail.

The RS485 transceiver must be switched to RX mode, as it consumes about
30 mA from the 5V rail in TX mode.
2021-06-12 16:02:21 +02:00

13 lines
212 B
C

#ifndef RS485_H
#define RS485_H
void rs485_init(void);
void rs485_periodic(void);
void rs485_enqueue(const char *str);
void rs485_deepsleep_prepare(void);
void rs485_deepsleep_resume(void);
#endif // RS485_H