mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[update] format code
This commit is contained in:
@@ -29,8 +29,8 @@ typedef struct rt_dac_device *rt_dac_device_t;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
RT_dac_CMD_ENABLE,
|
||||
RT_dac_CMD_DISABLE,
|
||||
RT_DAC_CMD_ENABLE,
|
||||
RT_DAC_CMD_DISABLE,
|
||||
} rt_dac_cmd_t;
|
||||
|
||||
rt_err_t rt_hw_dac_register(rt_dac_device_t dac,const char *name, const struct rt_dac_ops *ops, const void *user_data);
|
||||
|
||||
@@ -47,11 +47,11 @@ static rt_err_t _dac_control(rt_device_t dev, int cmd, void *args)
|
||||
{
|
||||
return -RT_ENOSYS;
|
||||
}
|
||||
if (cmd == RT_dac_CMD_ENABLE)
|
||||
if (cmd == RT_DAC_CMD_ENABLE)
|
||||
{
|
||||
result = dac->ops->enabled(dac, (rt_uint32_t)args);
|
||||
}
|
||||
else if (cmd == RT_dac_CMD_DISABLE)
|
||||
else if (cmd == RT_DAC_CMD_DISABLE)
|
||||
{
|
||||
result = dac->ops->disabled(dac, (rt_uint32_t)args);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user