1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_irq-h.md 6.08 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

osal_irq.h

Overview

Related Modules:

OSAL

Description:

Declares interrupt request (IRQ) interfaces and common IRQ trigger modes.

Since:

1.0

Version:

1.0

Summary

Typedefs

Typedef Name

Description

OsalIRQHandle) (uint32_t irqId, void *dev)

typedef uint32_t(* 

Defines an IRQ type.

Enumerations

Enumeration Name

Description

OSAL_IRQ_TRIGGER_MODE {   OSAL_IRQF_TRIGGER_NONE = 0, OSAL_IRQF_TRIGGER_RISING = 1, OSAL_IRQF_TRIGGER_FALLING = 2, OSAL_IRQF_TRIGGER_HIGH = 4,   OSAL_IRQF_TRIGGER_LOW = 8 }

Enumerates interrupt trigger modes.

Functions

Function Name

Description

OsalRegisterIrq (uint32_t irqId, uint32_t config, OsalIRQHandle handle, const char *name, void *dev)

int32_t 

Registers an IRQ.

OsalUnregisterIrq (uint32_t irqId)

int32_t 

Unregisters an IRQ.

OsalEnableIrq (uint32_t irqId)

int32_t 

Enables an IRQ.

OsalDisableIrq (uint32_t irqId)

int32_t 

Disables an IRQ.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助