mirror of
https://github.com/g4klx/MMDVM_HS.git
synced 2026-04-21 06:13:38 +00:00
Adding original MMDVM watchdog and LED functions
This commit is contained in:
parent
7d40e245bd
commit
e04551979d
4 changed files with 47 additions and 7 deletions
7
IO.h
7
IO.h
|
|
@ -47,9 +47,11 @@ public:
|
|||
bool SREAD_pin(void);
|
||||
void SLE_pin(bool on);
|
||||
bool RXD_pin(void);
|
||||
|
||||
#if defined(BIDIR_DATA_PIN)
|
||||
void RXD_pin_write(bool on);
|
||||
#endif
|
||||
|
||||
void TXD_pin(bool on);
|
||||
void PTT_pin(bool on);
|
||||
void LED_pin(bool on);
|
||||
|
|
@ -60,6 +62,7 @@ public:
|
|||
void P25_pin(bool on);
|
||||
void COS_pin(bool on);
|
||||
void interrupt(void);
|
||||
void resetWatchdog(void);
|
||||
|
||||
#if defined(BIDIR_DATA_PIN)
|
||||
void Data_dir_out(bool dir);
|
||||
|
|
@ -94,6 +97,10 @@ private:
|
|||
bool m_started;
|
||||
CBitRB m_rxBuffer;
|
||||
CBitRB m_txBuffer;
|
||||
|
||||
uint32_t m_ledCount;
|
||||
bool m_ledValue;
|
||||
volatile uint32_t m_watchdog;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue