Blame | Last modification | View Log | Download | RSS feed
ifndef __stm8sitcinc ; avoid multiple inclusion__stm8sitcinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File ITC.INC *;* *;* contains SFR and Bit Definitions for STM8S Interrupt Controller *;* *;****************************************************************************__defexti macro Base,NumPorts__B set 0__N set 0__P set 0rept NumPortsif __B=0__decstr __NS,__N+1EXTI_CR{__NS} label Base+__Nendif__PS set substr("ABCDEFGHI",__P,1)P{__PS}IS bfield ITC_SPR{__NS},__B,2__P set __P+1__B set __B+2if __B=8__B set 0__N set __N+1endifendmendm__defitc macro PrioBase,NumPrio__B set 0__N set 0__V set 0rept NumPrioif __B=0__decstr __NS,__N+1ITC_SPR{__NS} label PrioBase+__Nendif__decstr __VS,__VVECT{__VS}SPR bfield ITC_SPR{__NS},__B,2__V set __V+1__B set __B+2if __B=8__B set 0__N set __N+1endifendmendmrestoreendif ; __stm8sitcinc