K22 processor

Pinovi.h

Committer:
bosko001
Date:
2021-05-16
Revision:
18:6196688e2a94
Parent:
17:f99cdfd01d4e

File content as of revision 18:6196688e2a94:

#ifndef PINOVI_H 
#define PINOVI_H

#define BROADCASTADDRESS (unsigned char)0xc0


#define FRDMK22F
//#define FRDMK64F


#ifdef FRDMK64F

#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

#ifdef FRDMK22F


#define ZCOUT_TESTPIN   PTE1
#define ZC_PIN  PTB19

 

//#define IO_TEST    PTC18


#define Led_mosi    PTD6
#define Led_miso    PTD7
#define Led_sclk    PTD5
#define Led_cs      PTA1
 //  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 PTD2
#define Miso PTD3
#define SpiClock PTD1
#define SpiSel PTD4   /*PTD0*/
#define SpiSel_out   PTA5
#define IO_TELEGRAM_TAS_PIN   PTC4 




#define PIN_OUT_1   PTB2
#define PIN_OUT_2   PTB3
#define PIN_OUT_3   PTC2
#define PIN_OUT_4   PTC1
#define PIN_OUT_5   PTB1
#define PIN_OUT_6   PTB0


#define PIN_IN_6    PTC5
#define PIN_IN_5    PTC10
#define PIN_IN_4    PTC7
#define PIN_IN_3    PTC9
#define PIN_IN_2    PTC8
#define PIN_IN_1    PTA12

#endif




#endif