Subversion Repositories Code-Repo

Rev

Rev 113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 113 Rev 114
Line 15... Line 15...
15
 
15
 
16
    INTCON2bits.INTEDG1 = 0;    // Trigger on falling edge
16
    INTCON2bits.INTEDG1 = 0;    // Trigger on falling edge
17
}
17
}
18
 
18
 
19
void int1_interrupt_handler() {
19
void int1_interrupt_handler() {
20
    pwm_LED_start();
-
 
21
    Delay10TCYx(1);
-
 
22
    pwm_LED_stop();
-
 
23
    MQ_sendmsg_ToMainFromLow(0, MSGTYPE_INT1, (void *) 0);
20
    MQ_sendmsg_ToMainFromLow(0, MSGTYPE_INT1, (void *) 0);
24
}
21
}
25
 
22
 
26
void port_b_int_init() {
23
void port_b_int_init() {
27
    port_b_prev_state = 0x0F;
24
    port_b_prev_state = 0x0F;