Thomas Kolb
df3211333e
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.
13 lines
212 B
C
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
|