Changes in kernel/arch/ppc32/src/drivers/pic.c [c2417bc:ffe276f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/pic.c
rc2417bc rffe276f 32 32 /** @file 33 33 */ 34 35 34 36 35 #include <arch/drivers/pic.h> … … 79 78 } 80 79 81 /** Return number of pending interrupt */ 82 int pic_get_pending(void) 80 /** Return number of pending interrupts 81 * 82 */ 83 uint8_t pic_get_pending(void) 83 84 { 84 85 if (pic) { 85 int pending;86 uint32_t pending; 86 87 87 88 pending = pic[PIC_PENDING_LOW]; 88 if (pending )89 if (pending != 0) 89 90 return fnzb32(pending); 90 91 91 92 pending = pic[PIC_PENDING_HIGH]; 92 if (pending )93 if (pending != 0) 93 94 return fnzb32(pending) + 32; 94 95 } 95 96 96 return -1;97 return 255; 97 98 } 98 99
Note:
See TracChangeset
for help on using the changeset viewer.