mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/at: ad poweron/off functions
This commit is contained in:
parent
2abe944a16
commit
21867b2867
@ -315,3 +315,13 @@ void at_process_urc(at_dev_t *dev, uint32_t timeout)
|
||||
clist_foreach(&dev->urc_list, _check_urc, buf);
|
||||
}
|
||||
#endif
|
||||
|
||||
void at_dev_poweron(at_dev_t *dev)
|
||||
{
|
||||
uart_poweron(dev->uart);
|
||||
}
|
||||
|
||||
void at_dev_poweroff(at_dev_t *dev)
|
||||
{
|
||||
uart_poweroff(dev->uart);
|
||||
}
|
||||
|
@ -256,6 +256,20 @@ ssize_t at_readline(at_dev_t *dev, char *resp_buf, size_t len, bool keep_eol, ui
|
||||
*/
|
||||
void at_drain(at_dev_t *dev);
|
||||
|
||||
/**
|
||||
* @brief Power device on
|
||||
*
|
||||
* @param[in] dev device to power on
|
||||
*/
|
||||
void at_dev_poweron(at_dev_t *dev);
|
||||
|
||||
/**
|
||||
* @brief Power device off
|
||||
*
|
||||
* @param[in] dev device to power off
|
||||
*/
|
||||
void at_dev_poweroff(at_dev_t *dev);
|
||||
|
||||
#if defined(MODULE_AT_URC) || DOXYGEN
|
||||
/**
|
||||
* @brief Add a callback for an unsolicited response code
|
||||
|
Loading…
Reference in New Issue
Block a user