IO plocana FRDM K64

Committer:
bosko001
Date:
Sat Apr 24 17:41:16 2021 +0200
Revision:
12:ea2256d6c725
Parent:
11:f46528c56b8f
Child:
14:b63e4664e2a8
sredjeni pinovi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bosko001 7:4aa3dac73b66 1 #ifndef PINOVI_H
bosko001 7:4aa3dac73b66 2 #define PINOVI_H
bosko001 7:4aa3dac73b66 3
bosko001 7:4aa3dac73b66 4 #define BROADCASTADDRESS 0xc0
bosko001 7:4aa3dac73b66 5
bosko001 7:4aa3dac73b66 6
bosko001 7:4aa3dac73b66 7 #define ZCOUT_TESTPIN PTE24
bosko001 7:4aa3dac73b66 8 #define ZC_PIN PTC12
bosko001 7:4aa3dac73b66 9
bosko001 12:ea2256d6c725 10
bosko001 7:4aa3dac73b66 11
bosko001 7:4aa3dac73b66 12 #define IO_TEST PTC18
bosko001 7:4aa3dac73b66 13
bosko001 12:ea2256d6c725 14
bosko001 12:ea2256d6c725 15 #define Led_mosi PTD2
bosko001 12:ea2256d6c725 16 #define Led_miso PTD3
bosko001 12:ea2256d6c725 17 #define Led_sclk PTD1
bosko001 12:ea2256d6c725 18 #define Led_cs PTC4
bosko001 12:ea2256d6c725 19 // C_spiled::C_spiled():C_spi( PTD2, PTD3, PTD1, PTC4)//, C_thread()
bosko001 12:ea2256d6c725 20 //C_spi( PinName mosi, PinName miso, PinName sclk, PinName pin_csdata );
bosko001 12:ea2256d6c725 21
bosko001 7:4aa3dac73b66 22 /* gpio pinovi spi komunikacije ili SPI_1*/
bosko001 7:4aa3dac73b66 23
bosko001 7:4aa3dac73b66 24 #define Mosi PTD6
bosko001 7:4aa3dac73b66 25 #define Miso PTD7
bosko001 7:4aa3dac73b66 26 #define SpiClock PTD5
bosko001 7:4aa3dac73b66 27 #define SpiSel PTD4
bosko001 12:ea2256d6c725 28 #define SpiSel_out PTB18
bosko001 12:ea2256d6c725 29 #define IO_TELEGRAM_TAS_PIN PTB20
bosko001 12:ea2256d6c725 30
bosko001 12:ea2256d6c725 31
bosko001 12:ea2256d6c725 32
bosko001 7:4aa3dac73b66 33
bosko001 11:f46528c56b8f 34 #define PIN_OUT_1 PTC10
bosko001 11:f46528c56b8f 35 #define PIN_OUT_2 PTC11
bosko001 11:f46528c56b8f 36 #define PIN_OUT_3 PTB11
bosko001 11:f46528c56b8f 37 #define PIN_OUT_4 PTB10
bosko001 11:f46528c56b8f 38 #define PIN_OUT_5 PTB3
bosko001 11:f46528c56b8f 39 #define PIN_OUT_6 PTB2
bosko001 11:f46528c56b8f 40
bosko001 11:f46528c56b8f 41
bosko001 11:f46528c56b8f 42 #define PIN_IN_6 PTC5
bosko001 11:f46528c56b8f 43 #define PIN_IN_5 PTC7
bosko001 11:f46528c56b8f 44 #define PIN_IN_4 PTC0
bosko001 11:f46528c56b8f 45 #define PIN_IN_3 PTC9
bosko001 11:f46528c56b8f 46 #define PIN_IN_2 PTC8
bosko001 11:f46528c56b8f 47 #define PIN_IN_1 PTC1
bosko001 11:f46528c56b8f 48
bosko001 7:4aa3dac73b66 49 #endif