K22 processor

Pinovi.h

Committer:
bosko001
Date:
2021-03-30
Revision:
11:f46528c56b8f
Parent:
7:4aa3dac73b66
Child:
12:ea2256d6c725

File content as of revision 11:f46528c56b8f:

#ifndef PINOVI_H 
#define PINOVI_H

#define BROADCASTADDRESS 0xc0


#define ZCOUT_TESTPIN   PTE24
#define ZC_PIN  PTC12

#define IO_TELEGRAM_TAS_PIN   PTB20  

#define IO_TEST    PTC18

/* gpio pinovi spi komunikacije  ili SPI_1*/

#define Mosi PTD6
#define Miso PTD7
#define SpiClock PTD5
#define SpiSel PTD4

#define PIN_OUT_1   PTC10
#define PIN_OUT_2   PTC11
#define PIN_OUT_3   PTB11
#define PIN_OUT_4   PTB10
#define PIN_OUT_5   PTB3
#define PIN_OUT_6   PTB2


#define PIN_IN_6    PTC5
#define PIN_IN_5    PTC7
#define PIN_IN_4    PTC0
#define PIN_IN_3    PTC9
#define PIN_IN_2    PTC8
#define PIN_IN_1    PTC1

#endif