Project

General

Profile

Revision 37

Fixed kbc_scan issue

View differences:

lab3.c
40 40
    int ipc_status, r;
41 41
    message msg;
42 42

  
43
    uint8_t kbc_irq_bit = BIT(1);
43
    uint8_t kbc_irq_bit = 1;
44 44
    int kbc_id = 0;
45
    int kbc_irq = BIT(kbc_irq_bit);
45 46

  
46 47
    int got_esc_breakcode = 0;
47 48

  
......
56 57
        if (is_ipc_notify(ipc_status)) { /* received notification */
57 58
            switch (_ENDPOINT_P(msg.m_source)) {
58 59
                case HARDWARE: /* hardware interrupt notification */
59
                    if (msg.m_notify.interrupts & kbc_irq_bit) { /* subscribed interrupt */
60
                    if (msg.m_notify.interrupts & kbc_irq) { /* subscribed interrupt */
60 61

  
61 62
                        kbc_ih();
62 63

  

Also available in: Unified diff