File Coverage

blib/lib/VIC/PIC/P16F628A.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package VIC::PIC::P16F628A;
2 1     1   5 use strict;
  1         1  
  1         37  
3 1     1   5 use warnings;
  1         2  
  1         74  
4             our $VERSION = '0.29';
5             $VERSION = eval $VERSION;
6 1     1   5 use Moo;
  1         2  
  1         9  
7             extends 'VIC::PIC::P16F627A';
8             # role CodeGen
9             has 'type' => (is => 'ro', default => 'p16f628a');
10             has 'include' => (is => 'ro', default => 'p16f628a.inc');
11             has 'memory' => (is => 'ro', default => sub {
12             {
13             flash => 2048, # words
14             SRAM => 224,
15             EEPROM => 128,
16             }
17             });
18             has 'address' => (is => 'ro', default => sub {
19             {
20             isr => [ 0x0004 ],
21             reset => [ 0x0000 ],
22             range => [ 0x0000, 0x07FF ],
23             }
24             });
25              
26             1;
27             __END__