#include "has_platform.h" #include int wakeup_src_open(int param) { (void)param; return 0; } int wakeup_src_read(int param,void *buff,unsigned int len) { (void)param; memset(buff, 0, len); return 0; } int wakeup_src_write(int param,void *buff,unsigned int len) { (void)param; memset(buff, 0, len); return 0; } static Device_stu_t wake_up_src_dev = { .open = wakeup_src_open, .close = NULL, .write = wakeup_src_write, .read = wakeup_src_read, .drv_ctl = NULL, }; HAS_DECLARE_DRV(WAKE_UP_SRC, &wake_up_src_dev)