We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
請問回傳值 是 RT_ENOSYS 正數,還是 -(RT_ENOSYS) 負數?
rt_err_t rt_pin_irq_enable(rt_base_t pin, rt_uint32_t enabled) { RT_ASSERT(_hw_pin.ops != RT_NULL); if(_hw_pin.ops->pin_irq_enable) { return _hw_pin.ops->pin_irq_enable(&_hw_pin.parent, pin, enabled); } return RT_ENOSYS; }
The text was updated successfully, but these errors were encountered:
RTT自己定义的一般都是负数,POSIX的是正数。
后续逐步过渡到,返回值都是负数,errno是正数,向POSIX靠拢
Sorry, something went wrong.
谢谢你的issue 已经提pr解决
No branches or pull requests
請問回傳值 是 RT_ENOSYS 正數,還是 -(RT_ENOSYS) 負數?
rt_err_t rt_pin_irq_enable(rt_base_t pin, rt_uint32_t enabled)
{
RT_ASSERT(_hw_pin.ops != RT_NULL);
if(_hw_pin.ops->pin_irq_enable)
{
return _hw_pin.ops->pin_irq_enable(&_hw_pin.parent, pin, enabled);
}
return RT_ENOSYS;
}
The text was updated successfully, but these errors were encountered: