diff options
| author | bernard <[email protected]> | 2017-10-15 22:56:46 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-10-15 22:56:46 +0800 |
| commit | d7087fdd3b998192afb03b34fd8034071d06bde7 (patch) | |
| tree | 6a99d97408c4b3bc708b3a0601bff80907d8beac /components/drivers/rtc | |
| parent | 0f5a68a55e2a3c44f1e85029d22de6180ad30390 (diff) | |
[DeviceDrivers] change cmd type.
1. Change 'rt_uint8_t' type of cmd to 'int';
2. Add waitqueue;
3. Split device ipc header files;
Diffstat (limited to 'components/drivers/rtc')
| -rw-r--r-- | components/drivers/rtc/alarm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/rtc/alarm.c b/components/drivers/rtc/alarm.c index 0cb0362504..6660128603 100644 --- a/components/drivers/rtc/alarm.c +++ b/components/drivers/rtc/alarm.c @@ -397,7 +397,7 @@ void rt_alarm_update(rt_device_t dev, rt_uint32_t event) * \param cmd control command * \param arg argument */ -rt_err_t rt_alarm_control(rt_alarm_t alarm, rt_uint8_t cmd, void *arg) +rt_err_t rt_alarm_control(rt_alarm_t alarm, int cmd, void *arg) { rt_err_t ret = RT_ERROR; |
