1 /***********************************************************************/
3 /* PROJECT NAME : RL78G1C */
4 /* FILE : iodefine.h */
5 /* DESCRIPTION : Definition of I/O Registers */
6 /* CPU SERIES : RL78 - G1C */
7 /* CPU TYPE : R5F10JGC */
9 /* This file is generated by e2studio. */
11 /***********************************************************************/
\r
13 /************************************************************************/
\r
14 /* Header file generated from device file: */
\r
16 /* Copyright(C) 2012 Renesas */
\r
17 /* File Version V1.00 */
\r
18 /* Tool Version 1.9.7121 */
\r
19 /* Date Generated 13/11/2012 */
\r
20 /************************************************************************/
\r
22 #ifndef __IOREG_BIT_STRUCTURES
\r
23 #define __IOREG_BIT_STRUCTURES
\r
25 unsigned char no0 :1;
\r
26 unsigned char no1 :1;
\r
27 unsigned char no2 :1;
\r
28 unsigned char no3 :1;
\r
29 unsigned char no4 :1;
\r
30 unsigned char no5 :1;
\r
31 unsigned char no6 :1;
\r
32 unsigned char no7 :1;
\r
36 unsigned short no0 :1;
\r
37 unsigned short no1 :1;
\r
38 unsigned short no2 :1;
\r
39 unsigned short no3 :1;
\r
40 unsigned short no4 :1;
\r
41 unsigned short no5 :1;
\r
42 unsigned short no6 :1;
\r
43 unsigned short no7 :1;
\r
44 unsigned short no8 :1;
\r
45 unsigned short no9 :1;
\r
46 unsigned short no10 :1;
\r
47 unsigned short no11 :1;
\r
48 unsigned short no12 :1;
\r
49 unsigned short no13 :1;
\r
50 unsigned short no14 :1;
\r
51 unsigned short no15 :1;
\r
139 unsigned char pm12;
\r
143 unsigned char pm14;
\r
147 unsigned char adm0;
\r
155 unsigned char adm1;
\r
163 unsigned char egp0;
\r
167 unsigned char egn0;
\r
171 unsigned char egp1;
\r
175 unsigned char egn1;
\r
179 unsigned char iics0;
\r
183 unsigned char iicf0;
\r
187 unsigned char flars;
\r
191 unsigned char fssq;
\r
195 unsigned char flrst;
\r
199 unsigned char fsastl;
\r
203 unsigned char fsasth;
\r
207 unsigned char rtcc0;
\r
211 unsigned char rtcc1;
\r
219 unsigned char ostc;
\r
227 unsigned char cks0;
\r
231 unsigned char cks1;
\r
235 unsigned char lvim;
\r
239 unsigned char lvis;
\r
243 unsigned char monsta0;
\r
247 unsigned char asim;
\r
251 unsigned char dmc0;
\r
255 unsigned char dmc1;
\r
259 unsigned char drc0;
\r
263 unsigned char drc1;
\r
267 unsigned short if2;
\r
271 unsigned char if2l;
\r
275 unsigned char if2h;
\r
279 unsigned short mk2;
\r
283 unsigned char mk2l;
\r
287 unsigned char mk2h;
\r
291 unsigned short pr02;
\r
295 unsigned char pr02l;
\r
299 unsigned char pr02h;
\r
303 unsigned short pr12;
\r
307 unsigned char pr12l;
\r
311 unsigned char pr12h;
\r
315 unsigned short if0;
\r
319 unsigned char if0l;
\r
323 unsigned char if0h;
\r
327 unsigned short if1;
\r
331 unsigned char if1l;
\r
335 unsigned char if1h;
\r
339 unsigned short mk0;
\r
343 unsigned char mk0l;
\r
347 unsigned char mk0h;
\r
351 unsigned short mk1;
\r
355 unsigned char mk1l;
\r
359 unsigned char mk1h;
\r
363 unsigned short pr00;
\r
367 unsigned char pr00l;
\r
371 unsigned char pr00h;
\r
375 unsigned short pr01;
\r
379 unsigned char pr01l;
\r
383 unsigned char pr01h;
\r
387 unsigned short pr10;
\r
391 unsigned char pr10l;
\r
395 unsigned char pr10h;
\r
399 unsigned short pr11;
\r
403 unsigned char pr11l;
\r
407 unsigned char pr11h;
\r
415 #define P0 (*(volatile union un_p0 *)0xFFF00).p0
\r
416 #define P0_bit (*(volatile union un_p0 *)0xFFF00).BIT
\r
417 #define P1 (*(volatile union un_p1 *)0xFFF01).p1
\r
418 #define P1_bit (*(volatile union un_p1 *)0xFFF01).BIT
\r
419 #define P2 (*(volatile union un_p2 *)0xFFF02).p2
\r
420 #define P2_bit (*(volatile union un_p2 *)0xFFF02).BIT
\r
421 #define P3 (*(volatile union un_p3 *)0xFFF03).p3
\r
422 #define P3_bit (*(volatile union un_p3 *)0xFFF03).BIT
\r
423 #define P4 (*(volatile union un_p4 *)0xFFF04).p4
\r
424 #define P4_bit (*(volatile union un_p4 *)0xFFF04).BIT
\r
425 #define P5 (*(volatile union un_p5 *)0xFFF05).p5
\r
426 #define P5_bit (*(volatile union un_p5 *)0xFFF05).BIT
\r
427 #define P6 (*(volatile union un_p6 *)0xFFF06).p6
\r
428 #define P6_bit (*(volatile union un_p6 *)0xFFF06).BIT
\r
429 #define P7 (*(volatile union un_p7 *)0xFFF07).p7
\r
430 #define P7_bit (*(volatile union un_p7 *)0xFFF07).BIT
\r
431 #define P12 (*(volatile union un_p12 *)0xFFF0C).p12
\r
432 #define P12_bit (*(volatile union un_p12 *)0xFFF0C).BIT
\r
433 #define P13 (*(volatile union un_p13 *)0xFFF0D).p13
\r
434 #define P13_bit (*(volatile union un_p13 *)0xFFF0D).BIT
\r
435 #define P14 (*(volatile union un_p14 *)0xFFF0E).p14
\r
436 #define P14_bit (*(volatile union un_p14 *)0xFFF0E).BIT
\r
437 #define SDR00 (*(volatile unsigned short *)0xFFF10)
\r
438 #define SIO00 (*(volatile unsigned char *)0xFFF10)
\r
439 #define TXD0 (*(volatile unsigned char *)0xFFF10)
\r
440 #define SDR01 (*(volatile unsigned short *)0xFFF12)
\r
441 #define RXD0 (*(volatile unsigned char *)0xFFF12)
\r
442 #define SIO01 (*(volatile unsigned char *)0xFFF12)
\r
443 #define TDR00 (*(volatile unsigned short *)0xFFF18)
\r
444 #define TDR01 (*(volatile unsigned short *)0xFFF1A)
\r
445 #define TDR01L (*(volatile unsigned char *)0xFFF1A)
\r
446 #define TDR01H (*(volatile unsigned char *)0xFFF1B)
\r
447 #define ADCR (*(volatile unsigned short *)0xFFF1E)
\r
448 #define ADCRH (*(volatile unsigned char *)0xFFF1F)
\r
449 #define PM0 (*(volatile union un_pm0 *)0xFFF20).pm0
\r
450 #define PM0_bit (*(volatile union un_pm0 *)0xFFF20).BIT
\r
451 #define PM1 (*(volatile union un_pm1 *)0xFFF21).pm1
\r
452 #define PM1_bit (*(volatile union un_pm1 *)0xFFF21).BIT
\r
453 #define PM2 (*(volatile union un_pm2 *)0xFFF22).pm2
\r
454 #define PM2_bit (*(volatile union un_pm2 *)0xFFF22).BIT
\r
455 #define PM3 (*(volatile union un_pm3 *)0xFFF23).pm3
\r
456 #define PM3_bit (*(volatile union un_pm3 *)0xFFF23).BIT
\r
457 #define PM4 (*(volatile union un_pm4 *)0xFFF24).pm4
\r
458 #define PM4_bit (*(volatile union un_pm4 *)0xFFF24).BIT
\r
459 #define PM5 (*(volatile union un_pm5 *)0xFFF25).pm5
\r
460 #define PM5_bit (*(volatile union un_pm5 *)0xFFF25).BIT
\r
461 #define PM6 (*(volatile union un_pm6 *)0xFFF26).pm6
\r
462 #define PM6_bit (*(volatile union un_pm6 *)0xFFF26).BIT
\r
463 #define PM7 (*(volatile union un_pm7 *)0xFFF27).pm7
\r
464 #define PM7_bit (*(volatile union un_pm7 *)0xFFF27).BIT
\r
465 #define PM12 (*(volatile union un_pm12 *)0xFFF2C).pm12
\r
466 #define PM12_bit (*(volatile union un_pm12 *)0xFFF2C).BIT
\r
467 #define PM14 (*(volatile union un_pm14 *)0xFFF2E).pm14
\r
468 #define PM14_bit (*(volatile union un_pm14 *)0xFFF2E).BIT
\r
469 #define ADM0 (*(volatile union un_adm0 *)0xFFF30).adm0
\r
470 #define ADM0_bit (*(volatile union un_adm0 *)0xFFF30).BIT
\r
471 #define ADS (*(volatile union un_ads *)0xFFF31).ads
\r
472 #define ADS_bit (*(volatile union un_ads *)0xFFF31).BIT
\r
473 #define ADM1 (*(volatile union un_adm1 *)0xFFF32).adm1
\r
474 #define ADM1_bit (*(volatile union un_adm1 *)0xFFF32).BIT
\r
475 #define KRM (*(volatile union un_krm *)0xFFF37).krm
\r
476 #define KRM_bit (*(volatile union un_krm *)0xFFF37).BIT
\r
477 #define EGP0 (*(volatile union un_egp0 *)0xFFF38).egp0
\r
478 #define EGP0_bit (*(volatile union un_egp0 *)0xFFF38).BIT
\r
479 #define EGN0 (*(volatile union un_egn0 *)0xFFF39).egn0
\r
480 #define EGN0_bit (*(volatile union un_egn0 *)0xFFF39).BIT
\r
481 #define EGP1 (*(volatile union un_egp1 *)0xFFF3A).egp1
\r
482 #define EGP1_bit (*(volatile union un_egp1 *)0xFFF3A).BIT
\r
483 #define EGN1 (*(volatile union un_egn1 *)0xFFF3B).egn1
\r
484 #define EGN1_bit (*(volatile union un_egn1 *)0xFFF3B).BIT
\r
485 #define IICA0 (*(volatile unsigned char *)0xFFF50)
\r
486 #define IICS0 (*(volatile union un_iics0 *)0xFFF51).iics0
\r
487 #define IICS0_bit (*(volatile union un_iics0 *)0xFFF51).BIT
\r
488 #define IICF0 (*(volatile union un_iicf0 *)0xFFF52).iicf0
\r
489 #define IICF0_bit (*(volatile union un_iicf0 *)0xFFF52).BIT
\r
490 #define CFIFO (*(volatile unsigned short *)0xFFF54)
\r
491 #define CFIFOL (*(volatile unsigned char *)0xFFF54)
\r
492 #define D0FIFO (*(volatile unsigned short *)0xFFF58)
\r
493 #define D0FIFOL (*(volatile unsigned char *)0xFFF58)
\r
494 #define D1FIFO (*(volatile unsigned short *)0xFFF5C)
\r
495 #define D1FIFOL (*(volatile unsigned char *)0xFFF5C)
\r
496 #define TDR02 (*(volatile unsigned short *)0xFFF64)
\r
497 #define TDR03 (*(volatile unsigned short *)0xFFF66)
\r
498 #define TDR03L (*(volatile unsigned char *)0xFFF66)
\r
499 #define TDR03H (*(volatile unsigned char *)0xFFF67)
\r
500 #define FLPMC (*(volatile unsigned char *)0xFFF80)
\r
501 #define FLARS (*(volatile union un_flars *)0xFFF81).flars
\r
502 #define FLARS_bit (*(volatile union un_flars *)0xFFF81).BIT
\r
503 #define FLAPL (*(volatile unsigned short *)0xFFF82)
\r
504 #define FLAPH (*(volatile unsigned char *)0xFFF84)
\r
505 #define FSSQ (*(volatile union un_fssq *)0xFFF85).fssq
\r
506 #define FSSQ_bit (*(volatile union un_fssq *)0xFFF85).BIT
\r
507 #define FLSEDL (*(volatile unsigned short *)0xFFF86)
\r
508 #define FLSEDH (*(volatile unsigned char *)0xFFF88)
\r
509 #define FLRST (*(volatile union un_flrst *)0xFFF89).flrst
\r
510 #define FLRST_bit (*(volatile union un_flrst *)0xFFF89).BIT
\r
511 #define FSASTL (*(volatile union un_fsastl *)0xFFF8A).fsastl
\r
512 #define FSASTL_bit (*(volatile union un_fsastl *)0xFFF8A).BIT
\r
513 #define FSASTH (*(volatile union un_fsasth *)0xFFF8B).fsasth
\r
514 #define FSASTH_bit (*(volatile union un_fsasth *)0xFFF8B).BIT
\r
515 #define FLWL (*(volatile unsigned short *)0xFFF8C)
\r
516 #define FLWH (*(volatile unsigned short *)0xFFF8E)
\r
517 #define ITMC (*(volatile unsigned short *)0xFFF90)
\r
518 #define SEC (*(volatile unsigned char *)0xFFF92)
\r
519 #define MIN (*(volatile unsigned char *)0xFFF93)
\r
520 #define HOUR (*(volatile unsigned char *)0xFFF94)
\r
521 #define WEEK (*(volatile unsigned char *)0xFFF95)
\r
522 #define DAY (*(volatile unsigned char *)0xFFF96)
\r
523 #define MONTH (*(volatile unsigned char *)0xFFF97)
\r
524 #define YEAR (*(volatile unsigned char *)0xFFF98)
\r
525 #define SUBCUD (*(volatile unsigned char *)0xFFF99)
\r
526 #define ALARMWM (*(volatile unsigned char *)0xFFF9A)
\r
527 #define ALARMWH (*(volatile unsigned char *)0xFFF9B)
\r
528 #define ALARMWW (*(volatile unsigned char *)0xFFF9C)
\r
529 #define RTCC0 (*(volatile union un_rtcc0 *)0xFFF9D).rtcc0
\r
530 #define RTCC0_bit (*(volatile union un_rtcc0 *)0xFFF9D).BIT
\r
531 #define RTCC1 (*(volatile union un_rtcc1 *)0xFFF9E).rtcc1
\r
532 #define RTCC1_bit (*(volatile union un_rtcc1 *)0xFFF9E).BIT
\r
533 #define CMC (*(volatile unsigned char *)0xFFFA0)
\r
534 #define CSC (*(volatile union un_csc *)0xFFFA1).csc
\r
535 #define CSC_bit (*(volatile union un_csc *)0xFFFA1).BIT
\r
536 #define OSTC (*(volatile union un_ostc *)0xFFFA2).ostc
\r
537 #define OSTC_bit (*(volatile union un_ostc *)0xFFFA2).BIT
\r
538 #define OSTS (*(volatile unsigned char *)0xFFFA3)
\r
539 #define CKC (*(volatile union un_ckc *)0xFFFA4).ckc
\r
540 #define CKC_bit (*(volatile union un_ckc *)0xFFFA4).BIT
\r
541 #define CKS0 (*(volatile union un_cks0 *)0xFFFA5).cks0
\r
542 #define CKS0_bit (*(volatile union un_cks0 *)0xFFFA5).BIT
\r
543 #define CKS1 (*(volatile union un_cks1 *)0xFFFA6).cks1
\r
544 #define CKS1_bit (*(volatile union un_cks1 *)0xFFFA6).BIT
\r
545 #define RESF (*(volatile unsigned char *)0xFFFA8)
\r
546 #define LVIM (*(volatile union un_lvim *)0xFFFA9).lvim
\r
547 #define LVIM_bit (*(volatile union un_lvim *)0xFFFA9).BIT
\r
548 #define LVIS (*(volatile union un_lvis *)0xFFFAA).lvis
\r
549 #define LVIS_bit (*(volatile union un_lvis *)0xFFFAA).BIT
\r
550 #define WDTE (*(volatile unsigned char *)0xFFFAB)
\r
551 #define CRCIN (*(volatile unsigned char *)0xFFFAC)
\r
552 #define RXB (*(volatile unsigned char *)0xFFFAD)
\r
553 #define TXS (*(volatile unsigned char *)0xFFFAD)
\r
554 #define MONSTA0 (*(volatile union un_monsta0 *)0xFFFAE).monsta0
\r
555 #define MONSTA0_bit (*(volatile union un_monsta0 *)0xFFFAE).BIT
\r
556 #define ASIM (*(volatile union un_asim *)0xFFFAF).asim
\r
557 #define ASIM_bit (*(volatile union un_asim *)0xFFFAF).BIT
\r
558 #define DSA0 (*(volatile unsigned char *)0xFFFB0)
\r
559 #define DSA1 (*(volatile unsigned char *)0xFFFB1)
\r
560 #define DRA0 (*(volatile unsigned short *)0xFFFB2)
\r
561 #define DRA0L (*(volatile unsigned char *)0xFFFB2)
\r
562 #define DRA0H (*(volatile unsigned char *)0xFFFB3)
\r
563 #define DRA1 (*(volatile unsigned short *)0xFFFB4)
\r
564 #define DRA1L (*(volatile unsigned char *)0xFFFB4)
\r
565 #define DRA1H (*(volatile unsigned char *)0xFFFB5)
\r
566 #define DBC0 (*(volatile unsigned short *)0xFFFB6)
\r
567 #define DBC0L (*(volatile unsigned char *)0xFFFB6)
\r
568 #define DBC0H (*(volatile unsigned char *)0xFFFB7)
\r
569 #define DBC1 (*(volatile unsigned short *)0xFFFB8)
\r
570 #define DBC1L (*(volatile unsigned char *)0xFFFB8)
\r
571 #define DBC1H (*(volatile unsigned char *)0xFFFB9)
\r
572 #define DMC0 (*(volatile union un_dmc0 *)0xFFFBA).dmc0
\r
573 #define DMC0_bit (*(volatile union un_dmc0 *)0xFFFBA).BIT
\r
574 #define DMC1 (*(volatile union un_dmc1 *)0xFFFBB).dmc1
\r
575 #define DMC1_bit (*(volatile union un_dmc1 *)0xFFFBB).BIT
\r
576 #define DRC0 (*(volatile union un_drc0 *)0xFFFBC).drc0
\r
577 #define DRC0_bit (*(volatile union un_drc0 *)0xFFFBC).BIT
\r
578 #define DRC1 (*(volatile union un_drc1 *)0xFFFBD).drc1
\r
579 #define DRC1_bit (*(volatile union un_drc1 *)0xFFFBD).BIT
\r
580 #define IF2 (*(volatile union un_if2 *)0xFFFD0).if2
\r
581 #define IF2_bit (*(volatile union un_if2 *)0xFFFD0).BIT
\r
582 #define IF2L (*(volatile union un_if2l *)0xFFFD0).if2l
\r
583 #define IF2L_bit (*(volatile union un_if2l *)0xFFFD0).BIT
\r
584 #define IF2H (*(volatile union un_if2h *)0xFFFD1).if2h
\r
585 #define IF2H_bit (*(volatile union un_if2h *)0xFFFD1).BIT
\r
586 #define MK2 (*(volatile union un_mk2 *)0xFFFD4).mk2
\r
587 #define MK2_bit (*(volatile union un_mk2 *)0xFFFD4).BIT
\r
588 #define MK2L (*(volatile union un_mk2l *)0xFFFD4).mk2l
\r
589 #define MK2L_bit (*(volatile union un_mk2l *)0xFFFD4).BIT
\r
590 #define MK2H (*(volatile union un_mk2h *)0xFFFD5).mk2h
\r
591 #define MK2H_bit (*(volatile union un_mk2h *)0xFFFD5).BIT
\r
592 #define PR02 (*(volatile union un_pr02 *)0xFFFD8).pr02
\r
593 #define PR02_bit (*(volatile union un_pr02 *)0xFFFD8).BIT
\r
594 #define PR02L (*(volatile union un_pr02l *)0xFFFD8).pr02l
\r
595 #define PR02L_bit (*(volatile union un_pr02l *)0xFFFD8).BIT
\r
596 #define PR02H (*(volatile union un_pr02h *)0xFFFD9).pr02h
\r
597 #define PR02H_bit (*(volatile union un_pr02h *)0xFFFD9).BIT
\r
598 #define PR12 (*(volatile union un_pr12 *)0xFFFDC).pr12
\r
599 #define PR12_bit (*(volatile union un_pr12 *)0xFFFDC).BIT
\r
600 #define PR12L (*(volatile union un_pr12l *)0xFFFDC).pr12l
\r
601 #define PR12L_bit (*(volatile union un_pr12l *)0xFFFDC).BIT
\r
602 #define PR12H (*(volatile union un_pr12h *)0xFFFDD).pr12h
\r
603 #define PR12H_bit (*(volatile union un_pr12h *)0xFFFDD).BIT
\r
604 #define IF0 (*(volatile union un_if0 *)0xFFFE0).if0
\r
605 #define IF0_bit (*(volatile union un_if0 *)0xFFFE0).BIT
\r
606 #define IF0L (*(volatile union un_if0l *)0xFFFE0).if0l
\r
607 #define IF0L_bit (*(volatile union un_if0l *)0xFFFE0).BIT
\r
608 #define IF0H (*(volatile union un_if0h *)0xFFFE1).if0h
\r
609 #define IF0H_bit (*(volatile union un_if0h *)0xFFFE1).BIT
\r
610 #define IF1 (*(volatile union un_if1 *)0xFFFE2).if1
\r
611 #define IF1_bit (*(volatile union un_if1 *)0xFFFE2).BIT
\r
612 #define IF1L (*(volatile union un_if1l *)0xFFFE2).if1l
\r
613 #define IF1L_bit (*(volatile union un_if1l *)0xFFFE2).BIT
\r
614 #define IF1H (*(volatile union un_if1h *)0xFFFE3).if1h
\r
615 #define IF1H_bit (*(volatile union un_if1h *)0xFFFE3).BIT
\r
616 #define MK0 (*(volatile union un_mk0 *)0xFFFE4).mk0
\r
617 #define MK0_bit (*(volatile union un_mk0 *)0xFFFE4).BIT
\r
618 #define MK0L (*(volatile union un_mk0l *)0xFFFE4).mk0l
\r
619 #define MK0L_bit (*(volatile union un_mk0l *)0xFFFE4).BIT
\r
620 #define MK0H (*(volatile union un_mk0h *)0xFFFE5).mk0h
\r
621 #define MK0H_bit (*(volatile union un_mk0h *)0xFFFE5).BIT
\r
622 #define MK1 (*(volatile union un_mk1 *)0xFFFE6).mk1
\r
623 #define MK1_bit (*(volatile union un_mk1 *)0xFFFE6).BIT
\r
624 #define MK1L (*(volatile union un_mk1l *)0xFFFE6).mk1l
\r
625 #define MK1L_bit (*(volatile union un_mk1l *)0xFFFE6).BIT
\r
626 #define MK1H (*(volatile union un_mk1h *)0xFFFE7).mk1h
\r
627 #define MK1H_bit (*(volatile union un_mk1h *)0xFFFE7).BIT
\r
628 #define PR00 (*(volatile union un_pr00 *)0xFFFE8).pr00
\r
629 #define PR00_bit (*(volatile union un_pr00 *)0xFFFE8).BIT
\r
630 #define PR00L (*(volatile union un_pr00l *)0xFFFE8).pr00l
\r
631 #define PR00L_bit (*(volatile union un_pr00l *)0xFFFE8).BIT
\r
632 #define PR00H (*(volatile union un_pr00h *)0xFFFE9).pr00h
\r
633 #define PR00H_bit (*(volatile union un_pr00h *)0xFFFE9).BIT
\r
634 #define PR01 (*(volatile union un_pr01 *)0xFFFEA).pr01
\r
635 #define PR01_bit (*(volatile union un_pr01 *)0xFFFEA).BIT
\r
636 #define PR01L (*(volatile union un_pr01l *)0xFFFEA).pr01l
\r
637 #define PR01L_bit (*(volatile union un_pr01l *)0xFFFEA).BIT
\r
638 #define PR01H (*(volatile union un_pr01h *)0xFFFEB).pr01h
\r
639 #define PR01H_bit (*(volatile union un_pr01h *)0xFFFEB).BIT
\r
640 #define PR10 (*(volatile union un_pr10 *)0xFFFEC).pr10
\r
641 #define PR10_bit (*(volatile union un_pr10 *)0xFFFEC).BIT
\r
642 #define PR10L (*(volatile union un_pr10l *)0xFFFEC).pr10l
\r
643 #define PR10L_bit (*(volatile union un_pr10l *)0xFFFEC).BIT
\r
644 #define PR10H (*(volatile union un_pr10h *)0xFFFED).pr10h
\r
645 #define PR10H_bit (*(volatile union un_pr10h *)0xFFFED).BIT
\r
646 #define PR11 (*(volatile union un_pr11 *)0xFFFEE).pr11
\r
647 #define PR11_bit (*(volatile union un_pr11 *)0xFFFEE).BIT
\r
648 #define PR11L (*(volatile union un_pr11l *)0xFFFEE).pr11l
\r
649 #define PR11L_bit (*(volatile union un_pr11l *)0xFFFEE).BIT
\r
650 #define PR11H (*(volatile union un_pr11h *)0xFFFEF).pr11h
\r
651 #define PR11H_bit (*(volatile union un_pr11h *)0xFFFEF).BIT
\r
652 #define MDAL (*(volatile unsigned short *)0xFFFF0)
\r
653 #define MULA (*(volatile unsigned short *)0xFFFF0)
\r
654 #define MDAH (*(volatile unsigned short *)0xFFFF2)
\r
655 #define MULB (*(volatile unsigned short *)0xFFFF2)
\r
656 #define MDBH (*(volatile unsigned short *)0xFFFF4)
\r
657 #define MULOH (*(volatile unsigned short *)0xFFFF4)
\r
658 #define MDBL (*(volatile unsigned short *)0xFFFF6)
\r
659 #define MULOL (*(volatile unsigned short *)0xFFFF6)
\r
660 #define PMC (*(volatile union un_pmc *)0xFFFFE).pmc
\r
661 #define PMC_bit (*(volatile union un_pmc *)0xFFFFE).BIT
\r
666 #define ADCE ADM0_bit.no0
\r
667 #define ADCS ADM0_bit.no7
\r
668 #define SPD0 IICS0_bit.no0
\r
669 #define STD0 IICS0_bit.no1
\r
670 #define ACKD0 IICS0_bit.no2
\r
671 #define TRC0 IICS0_bit.no3
\r
672 #define COI0 IICS0_bit.no4
\r
673 #define EXC0 IICS0_bit.no5
\r
674 #define ALD0 IICS0_bit.no6
\r
675 #define MSTS0 IICS0_bit.no7
\r
676 #define IICRSV0 IICF0_bit.no0
\r
677 #define STCEN0 IICF0_bit.no1
\r
678 #define IICBSY0 IICF0_bit.no6
\r
679 #define STCF0 IICF0_bit.no7
\r
680 #define FSSTP FSSQ_bit.no6
\r
681 #define SQST FSSQ_bit.no7
\r
682 #define SQEND FSASTH_bit.no6
\r
683 #define ESQEND FSASTH_bit.no7
\r
684 #define RCLOE1 RTCC0_bit.no5
\r
685 #define RTCE RTCC0_bit.no7
\r
686 #define RWAIT RTCC1_bit.no0
\r
687 #define RWST RTCC1_bit.no1
\r
688 #define RIFG RTCC1_bit.no3
\r
689 #define WAFG RTCC1_bit.no4
\r
690 #define WALIE RTCC1_bit.no6
\r
691 #define WALE RTCC1_bit.no7
\r
692 #define HIOSTOP CSC_bit.no0
\r
693 #define XTSTOP CSC_bit.no6
\r
694 #define MSTOP CSC_bit.no7
\r
695 #define SDIV CKC_bit.no3
\r
696 #define MCM0 CKC_bit.no4
\r
697 #define MCS CKC_bit.no5
\r
698 #define CSS CKC_bit.no6
\r
699 #define CLS CKC_bit.no7
\r
700 #define PCLOE0 CKS0_bit.no7
\r
701 #define PCLOE1 CKS1_bit.no7
\r
702 #define LVIF LVIM_bit.no0
\r
703 #define LVIOMSK LVIM_bit.no1
\r
704 #define LVISEN LVIM_bit.no7
\r
705 #define LVILV LVIS_bit.no0
\r
706 #define LVIMD LVIS_bit.no7
\r
707 #define DWAIT0 DMC0_bit.no4
\r
708 #define DS0 DMC0_bit.no5
\r
709 #define DRS0 DMC0_bit.no6
\r
710 #define STG0 DMC0_bit.no7
\r
711 #define DWAIT1 DMC1_bit.no4
\r
712 #define DS1 DMC1_bit.no5
\r
713 #define DRS1 DMC1_bit.no6
\r
714 #define STG1 DMC1_bit.no7
\r
715 #define DST0 DRC0_bit.no0
\r
716 #define DEN0 DRC0_bit.no7
\r
717 #define DST1 DRC1_bit.no0
\r
718 #define DEN1 DRC1_bit.no7
\r
719 #define PIF6 IF2_bit.no3
\r
720 #define PIF8 IF2_bit.no5
\r
721 #define PIF9 IF2_bit.no6
\r
722 #define MDIF IF2H_bit.no5
\r
723 #define FLIF IF2H_bit.no7
\r
724 #define PMK6 MK2_bit.no3
\r
725 #define PMK8 MK2_bit.no5
\r
726 #define PMK9 MK2_bit.no6
\r
727 #define MDMK MK2H_bit.no5
\r
728 #define FLMK MK2H_bit.no7
\r
729 #define PPR06 PR02_bit.no3
\r
730 #define PPR08 PR02_bit.no5
\r
731 #define PPR09 PR02_bit.no6
\r
732 #define MDPR0 PR02H_bit.no5
\r
733 #define FLPR0 PR02H_bit.no7
\r
734 #define PPR16 PR12_bit.no3
\r
735 #define PPR18 PR12_bit.no5
\r
736 #define PPR19 PR12_bit.no6
\r
737 #define MDPR1 PR12H_bit.no5
\r
738 #define FLPR1 PR12H_bit.no7
\r
739 #define WDTIIF IF0_bit.no0
\r
740 #define LVIIF IF0_bit.no1
\r
741 #define PIF0 IF0_bit.no2
\r
742 #define PIF1 IF0_bit.no3
\r
743 #define PIF2 IF0_bit.no4
\r
744 #define PIF3 IF0_bit.no5
\r
745 #define PIF4 IF0_bit.no6
\r
746 #define PIF5 IF0_bit.no7
\r
747 #define DMAIF0 IF0H_bit.no3
\r
748 #define DMAIF1 IF0H_bit.no4
\r
749 #define CSIIF00 IF0H_bit.no5
\r
750 #define IICIF00 IF0H_bit.no5
\r
751 #define STIF0 IF0H_bit.no5
\r
752 #define TMIF00 IF0H_bit.no6
\r
753 #define CSIIF01 IF0H_bit.no7
\r
754 #define IICIF01 IF0H_bit.no7
\r
755 #define SRIF0 IF0H_bit.no7
\r
756 #define SREIF0 IF1_bit.no0
\r
757 #define TMIF01H IF1_bit.no0
\r
758 #define TMIF03H IF1_bit.no3
\r
759 #define IICAIF0 IF1_bit.no4
\r
760 #define TMIF01 IF1_bit.no5
\r
761 #define TMIF02 IF1_bit.no6
\r
762 #define TMIF03 IF1_bit.no7
\r
763 #define ADIF IF1H_bit.no0
\r
764 #define RTCIF IF1H_bit.no1
\r
765 #define ITIF IF1H_bit.no2
\r
766 #define KRIF IF1H_bit.no3
\r
767 #define USBIF IF1H_bit.no4
\r
768 #define RSUIF IF1H_bit.no5
\r
769 #define WDTIMK MK0_bit.no0
\r
770 #define LVIMK MK0_bit.no1
\r
771 #define PMK0 MK0_bit.no2
\r
772 #define PMK1 MK0_bit.no3
\r
773 #define PMK2 MK0_bit.no4
\r
774 #define PMK3 MK0_bit.no5
\r
775 #define PMK4 MK0_bit.no6
\r
776 #define PMK5 MK0_bit.no7
\r
777 #define DMAMK0 MK0H_bit.no3
\r
778 #define DMAMK1 MK0H_bit.no4
\r
779 #define CSIMK00 MK0H_bit.no5
\r
780 #define IICMK00 MK0H_bit.no5
\r
781 #define STMK0 MK0H_bit.no5
\r
782 #define TMMK00 MK0H_bit.no6
\r
783 #define CSIMK01 MK0H_bit.no7
\r
784 #define IICMK01 MK0H_bit.no7
\r
785 #define SRMK0 MK0H_bit.no7
\r
786 #define SREMK0 MK1_bit.no0
\r
787 #define TMMK01H MK1_bit.no0
\r
788 #define TMMK03H MK1_bit.no3
\r
789 #define IICAMK0 MK1_bit.no4
\r
790 #define TMMK01 MK1_bit.no5
\r
791 #define TMMK02 MK1_bit.no6
\r
792 #define TMMK03 MK1_bit.no7
\r
793 #define ADMK MK1H_bit.no0
\r
794 #define RTCMK MK1H_bit.no1
\r
795 #define ITMK MK1H_bit.no2
\r
796 #define KRMK MK1H_bit.no3
\r
797 #define USBMK MK1H_bit.no4
\r
798 #define RSUMK MK1H_bit.no5
\r
799 #define WDTIPR0 PR00_bit.no0
\r
800 #define LVIPR0 PR00_bit.no1
\r
801 #define PPR00 PR00_bit.no2
\r
802 #define PPR01 PR00_bit.no3
\r
803 #define PPR02 PR00_bit.no4
\r
804 #define PPR03 PR00_bit.no5
\r
805 #define PPR04 PR00_bit.no6
\r
806 #define PPR05 PR00_bit.no7
\r
807 #define DMAPR00 PR00H_bit.no3
\r
808 #define DMAPR01 PR00H_bit.no4
\r
809 #define CSIPR000 PR00H_bit.no5
\r
810 #define IICPR000 PR00H_bit.no5
\r
811 #define STPR00 PR00H_bit.no5
\r
812 #define TMPR000 PR00H_bit.no6
\r
813 #define CSIPR001 PR00H_bit.no7
\r
814 #define IICPR001 PR00H_bit.no7
\r
815 #define SRPR00 PR00H_bit.no7
\r
816 #define SREPR00 PR01_bit.no0
\r
817 #define TMPR001H PR01_bit.no0
\r
818 #define TMPR003H PR01_bit.no3
\r
819 #define IICAPR00 PR01_bit.no4
\r
820 #define TMPR001 PR01_bit.no5
\r
821 #define TMPR002 PR01_bit.no6
\r
822 #define TMPR003 PR01_bit.no7
\r
823 #define ADPR0 PR01H_bit.no0
\r
824 #define RTCPR0 PR01H_bit.no1
\r
825 #define ITPR0 PR01H_bit.no2
\r
826 #define KRPR0 PR01H_bit.no3
\r
827 #define USBPR0 PR01H_bit.no4
\r
828 #define RSUPR0 PR01H_bit.no5
\r
829 #define WDTIPR1 PR10_bit.no0
\r
830 #define LVIPR1 PR10_bit.no1
\r
831 #define PPR10 PR10_bit.no2
\r
832 #define PPR11 PR10_bit.no3
\r
833 #define PPR12 PR10_bit.no4
\r
834 #define PPR13 PR10_bit.no5
\r
835 #define PPR14 PR10_bit.no6
\r
836 #define PPR15 PR10_bit.no7
\r
837 #define DMAPR10 PR10H_bit.no3
\r
838 #define DMAPR11 PR10H_bit.no4
\r
839 #define CSIPR100 PR10H_bit.no5
\r
840 #define IICPR100 PR10H_bit.no5
\r
841 #define STPR10 PR10H_bit.no5
\r
842 #define TMPR100 PR10H_bit.no6
\r
843 #define CSIPR101 PR10H_bit.no7
\r
844 #define IICPR101 PR10H_bit.no7
\r
845 #define SRPR10 PR10H_bit.no7
\r
846 #define SREPR10 PR11_bit.no0
\r
847 #define TMPR101H PR11_bit.no0
\r
848 #define TMPR103H PR11_bit.no3
\r
849 #define IICAPR10 PR11_bit.no4
\r
850 #define TMPR101 PR11_bit.no5
\r
851 #define TMPR102 PR11_bit.no6
\r
852 #define TMPR103 PR11_bit.no7
\r
853 #define ADPR1 PR11H_bit.no0
\r
854 #define RTCPR1 PR11H_bit.no1
\r
855 #define ITPR1 PR11H_bit.no2
\r
856 #define KRPR1 PR11H_bit.no3
\r
857 #define USBPR1 PR11H_bit.no4
\r
858 #define RSUPR1 PR11H_bit.no5
\r
859 #define MAA PMC_bit.no0
\r
862 Interrupt vector addresses
\r
864 #define RST_vect (0x0)
\r
865 #define INTDBG_vect (0x2)
\r
866 #define INTSRO_vect (0x4)
\r
867 #define INTWDTI_vect (0x4)
\r
868 #define INTLVI_vect (0x6)
\r
869 #define INTP0_vect (0x8)
\r
870 #define INTP1_vect (0xA)
\r
871 #define INTP2_vect (0xC)
\r
872 #define INTP3_vect (0xE)
\r
873 #define INTP4_vect (0x10)
\r
874 #define INTP5_vect (0x12)
\r
875 #define INTDMA0_vect (0x1A)
\r
876 #define INTDMA1_vect (0x1C)
\r
877 #define INTCSI00_vect (0x1E)
\r
878 #define INTIIC00_vect (0x1E)
\r
879 #define INTST0_vect (0x1E)
\r
880 #define INTTM00_vect (0x20)
\r
881 #define INTCSI01_vect (0x22)
\r
882 #define INTIIC01_vect (0x22)
\r
883 #define INTSR0_vect (0x22)
\r
884 #define INTSRE0_vect (0x24)
\r
885 #define INTTM01H_vect (0x24)
\r
886 #define INTTM03H_vect (0x2A)
\r
887 #define INTIICA0_vect (0x2C)
\r
888 #define INTTM01_vect (0x2E)
\r
889 #define INTTM02_vect (0x30)
\r
890 #define INTTM03_vect (0x32)
\r
891 #define INTAD_vect (0x34)
\r
892 #define INTRTC_vect (0x36)
\r
893 #define INTIT_vect (0x38)
\r
894 #define INTKR_vect (0x3A)
\r
895 #define INTUSB_vect (0x3C)
\r
896 #define INTRSUM_vect (0x3E)
\r
897 #define INTP6_vect (0x4A)
\r
898 #define INTP8_vect (0x4E)
\r
899 #define INTP9_vect (0x50)
\r
900 #define INTMD_vect (0x5E)
\r
901 #define INTFL_vect (0x62)
\r
902 #define BRK_I_vect (0x7E)
\r