blib/lib/VIC/PIC/Functions/Timer.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 10 | 35 | 28.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
14 | 0 | 2 | 0 | $scale > 2 and $scale <= 4 |
0 | 2 | 0 | $scale > 4 and $scale <= 8 | |
0 | 2 | 0 | $scale > 8 and $scale <= 16 | |
0 | 2 | 0 | $scale > 16 and $scale <= 32 | |
0 | 2 | 0 | $scale > 32 and $scale <= 64 | |
0 | 2 | 0 | $scale > 64 and $scale <= 128 | |
0 | 0 | 2 | $scale > 128 and $scale <= 256 | |
125 | 0 | 0 | 0 | exists $self->registers->{'OPTION_REG'} and exists $self->registers->{'INTCON'} |
line | l | !l | condition |
---|---|---|---|
131 | 0 | 0 | $th->{'enable'} || 'T0IE' |
132 | 0 | 0 | $th->{'ereg'} || 'INTCON' |
155 | 1 | 0 | $th->{'flag'} || 'T0IF' |
156 | 1 | 0 | $th->{'freg'} || 'INTCON' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
33 | 2 | 0 | 0 | $self->timer_prescaler->{$scale} || $self->timer_prescaler->{'256'} |