Blame | Last modification | View Log | Download | RSS feed
ifndef __st7spi2inc ; avoid multiple inclusion__st7spi2inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File SPI.INC *;* *;* contains SFR and Bit Definitions for ST72xxx SPI *;* *;****************************************************************************__defspi macro BaseSPIDR label Base+$00 ; Data I/O RegisterSPICR label Base+$01 ; Control RegisterSPIE bit SPICR,7 ; Serial peripheral interrupt enableSPE bit SPICR,6 ; Serial peripheral output enableSPR2 bit SPICR,5 ; Divider EnableMSTR bit SPICR,4 ; MasterCPOL bit SPICR,3 ; Clock polarityCPHA bit SPICR,2 ; Clock phaseSPR1 bit SPICR,1 ; Serial peripheral rateSPR0 bit SPICR,0SPICSR label Base+$02 ; Control/Status RegisterSPIF bit SPICSR,7 ; Serial Peripheral data transfer flagWCOL bit SPICSR,6 ; Write Collision statusOVR bit SPICSR,5 ; Overrun errorMODF bit SPICSR,4 ; Mode Fault flagSOD bit SPICSR,2 ; SPI Output DisableSSM bit SPICSR,1 ; /SS ManagementSSI bit SPICSR,0 ; /SS Internal Modeendmrestoreendif ; __st7spi2inc