XWOS API
4.0
XWOS C/C++ API参考手册
|
玄武设备栈:SOC:外部中断 更多...
函数 | |
xwer_t | xwds_eirq_req (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwid_t eiid, xwsq_t eiflag, xwds_eirq_f isr, xwds_eirq_arg_t arg) |
XWDS API:申请外部中断 | |
xwer_t | xwds_eirq_rls (struct xwds_soc *soc, xwid_t port, xwsq_t pinmask, xwid_t eiid) |
XWDS API:释放外部中断 | |
玄武设备栈:SOC:外部中断
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
在文件 eirq.c 中定义.
xwer_t xwds_eirq_req | ( | struct xwds_soc * | soc, |
xwid_t | port, | ||
xwsq_t | pinmask, | ||
xwid_t | eiid, | ||
xwsq_t | eiflag, | ||
xwds_eirq_f | isr, | ||
xwds_eirq_arg_t | arg | ||
) |
XWDS API:申请外部中断
[in] | soc | SOC对象指针 |
[in] | port | GPIO端口 |
[in] | pinmask | GPIO PIN |
[in] | eiid | 外部中断ID |
[in] | eiflag | 触发标志 |
[in] | isr | 中断响应函数 |
[in] | arg | 中断响应函数参数 |
XWOK | 没有错误 |
-EFAULT | 无效指针 |
-ERANGE | 外部中断ID错误 |
<No error
XWDS API:释放外部中断
[in] | soc | SOC对象指针 |
[in] | port | GPIO端口 |
[in] | pinmask | GPIO PIN |
[in] | eiid | 外部中断ID |
XWOK | 没有错误 |
-EFAULT | 无效指针 |
-ERANGE | 外部中断ID错误 |
<No error