K22 processor

Pinovi.h

Committer:
bosko001
Date:
2021-04-24
Revision:
12:ea2256d6c725
Parent:
11:f46528c56b8f
Child:
14:b63e4664e2a8

File content as of revision 12:ea2256d6c725:

#ifndef PINOVI_H 
#define PINOVI_H

#define BROADCASTADDRESS 0xc0


#define ZCOUT_TESTPIN   PTE24
#define ZC_PIN  PTC12

 

#define IO_TEST    PTC18


#define Led_mosi    PTD2
#define Led_miso    PTD3
#define Led_sclk    PTD1
#define Led_cs      PTC4
 //  C_spiled::C_spiled():C_spi(  PTD2, PTD3, PTD1, PTC4)//, C_thread()
//C_spi( PinName mosi, PinName miso, PinName sclk, PinName pin_csdata ); 

/* gpio pinovi spi komunikacije  ili SPI_1*/

#define Mosi PTD6
#define Miso PTD7
#define SpiClock PTD5
#define SpiSel PTD4
#define SpiSel_out   PTB18
#define IO_TELEGRAM_TAS_PIN   PTB20 




#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