@CHIP-RTOS C Library V2.00 - Hardware API
hal_mask_int
Mask and Unmask an external Interrupt Request. void hal_mask_int ( unsigned short irq, unsigned char mask ); Parameters
irq
- HAL interrupt number from following list:
0 = INT0 (external)
1 = Network controller (internal) (*)
2 = INT2 (external)
3 = INT3 (external)
4 = INT4 (external)
5 = INT5 (external) / DMA Channel Interrupt 0 (if DMA is used)
6 = INT6 (external) / DMA Channel Interrupt 1 (if DMA is used)
7 = reserved
8 = Timer0 (internal)
9 = Timer1 (internal)
10 = Timer 1ms (internal) (*)
11 = Serial port 0 (internal) (*)
12 = Serial port 1 (internal) (*)
13 = reserved
14 = reserved
15 = NMI (internal/external)
(* = internal used by @CHIP-RTOS, not available for user interrupt service functions)
mask
- 1: Mask IRQ
0: Unmask IRQ
Return Value
- -- none --.
Comments
- Some Interrupts are using the same Mask Bit. If you mask one of them,
the other interrupts, which are assigned to the same bit are also masked.
Here are the groups which are masked together:
Timer0, Timer1, Timer 1ms
DMA0, INT5
DMA1, INT6
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|