K22 processor

Committer:
bosko001
Date:
Sat May 15 13:59:57 2021 +0200
Revision:
17:f99cdfd01d4e
Parent:
15:3429cdc6e5f4
Child:
18:6196688e2a94
pinovi za K64 i K22

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 15:3429cdc6e5f4 4 #define BROADCASTADDRESS (unsigned char)0xc0
bosko001 7:4aa3dac73b66 5
bosko001 7:4aa3dac73b66 6
bosko001 17:f99cdfd01d4e 7 //#define FRDMK22F
bosko001 17:f99cdfd01d4e 8 #define FRDMK64F
bosko001 17:f99cdfd01d4e 9
bosko001 17:f99cdfd01d4e 10
bosko001 17:f99cdfd01d4e 11 #ifdef FRDMK64F
bosko001 17:f99cdfd01d4e 12
bosko001 7:4aa3dac73b66 13 #define ZCOUT_TESTPIN PTE24
bosko001 7:4aa3dac73b66 14 #define ZC_PIN PTC12
bosko001 7:4aa3dac73b66 15
bosko001 12:ea2256d6c725 16
bosko001 7:4aa3dac73b66 17
bosko001 14:b63e4664e2a8 18 //#define IO_TEST PTC18
bosko001 7:4aa3dac73b66 19
bosko001 12:ea2256d6c725 20
bosko001 12:ea2256d6c725 21 #define Led_mosi PTD2
bosko001 12:ea2256d6c725 22 #define Led_miso PTD3
bosko001 12:ea2256d6c725 23 #define Led_sclk PTD1
bosko001 12:ea2256d6c725 24 #define Led_cs PTC4
bosko001 12:ea2256d6c725 25 // C_spiled::C_spiled():C_spi( PTD2, PTD3, PTD1, PTC4)//, C_thread()
bosko001 12:ea2256d6c725 26 //C_spi( PinName mosi, PinName miso, PinName sclk, PinName pin_csdata );
bosko001 12:ea2256d6c725 27
bosko001 7:4aa3dac73b66 28 /* gpio pinovi spi komunikacije ili SPI_1*/
bosko001 7:4aa3dac73b66 29
bosko001 7:4aa3dac73b66 30 #define Mosi PTD6
bosko001 7:4aa3dac73b66 31 #define Miso PTD7
bosko001 7:4aa3dac73b66 32 #define SpiClock PTD5
bosko001 7:4aa3dac73b66 33 #define SpiSel PTD4
bosko001 12:ea2256d6c725 34 #define SpiSel_out PTB18
bosko001 12:ea2256d6c725 35 #define IO_TELEGRAM_TAS_PIN PTB20
bosko001 12:ea2256d6c725 36
bosko001 12:ea2256d6c725 37
bosko001 12:ea2256d6c725 38
bosko001 7:4aa3dac73b66 39
bosko001 11:f46528c56b8f 40 #define PIN_OUT_1 PTC10
bosko001 11:f46528c56b8f 41 #define PIN_OUT_2 PTC11
bosko001 11:f46528c56b8f 42 #define PIN_OUT_3 PTB11
bosko001 11:f46528c56b8f 43 #define PIN_OUT_4 PTB10
bosko001 11:f46528c56b8f 44 #define PIN_OUT_5 PTB3
bosko001 11:f46528c56b8f 45 #define PIN_OUT_6 PTB2
bosko001 11:f46528c56b8f 46
bosko001 11:f46528c56b8f 47
bosko001 11:f46528c56b8f 48 #define PIN_IN_6 PTC5
bosko001 11:f46528c56b8f 49 #define PIN_IN_5 PTC7
bosko001 11:f46528c56b8f 50 #define PIN_IN_4 PTC0
bosko001 11:f46528c56b8f 51 #define PIN_IN_3 PTC9
bosko001 11:f46528c56b8f 52 #define PIN_IN_2 PTC8
bosko001 11:f46528c56b8f 53 #define PIN_IN_1 PTC1
bosko001 11:f46528c56b8f 54
bosko001 7:4aa3dac73b66 55 #endif
bosko001 17:f99cdfd01d4e 56
bosko001 17:f99cdfd01d4e 57 #ifdef FRDMK22F
bosko001 17:f99cdfd01d4e 58
bosko001 17:f99cdfd01d4e 59
bosko001 17:f99cdfd01d4e 60 #define ZCOUT_TESTPIN PTE1
bosko001 17:f99cdfd01d4e 61 #define ZC_PIN PTB19
bosko001 17:f99cdfd01d4e 62
bosko001 17:f99cdfd01d4e 63
bosko001 17:f99cdfd01d4e 64
bosko001 17:f99cdfd01d4e 65 //#define IO_TEST PTC18
bosko001 17:f99cdfd01d4e 66
bosko001 17:f99cdfd01d4e 67
bosko001 17:f99cdfd01d4e 68 #define Led_mosi PTD6
bosko001 17:f99cdfd01d4e 69 #define Led_miso PTD7
bosko001 17:f99cdfd01d4e 70 #define Led_sclk PTD8
bosko001 17:f99cdfd01d4e 71 #define Led_cs PTA1
bosko001 17:f99cdfd01d4e 72 // C_spiled::C_spiled():C_spi( PTD2, PTD3, PTD1, PTC4)//, C_thread()
bosko001 17:f99cdfd01d4e 73 //C_spi( PinName mosi, PinName miso, PinName sclk, PinName pin_csdata );
bosko001 17:f99cdfd01d4e 74
bosko001 17:f99cdfd01d4e 75 /* gpio pinovi spi komunikacije ili SPI_1*/
bosko001 17:f99cdfd01d4e 76
bosko001 17:f99cdfd01d4e 77 #define Mosi PTD2
bosko001 17:f99cdfd01d4e 78 #define Miso PTD3
bosko001 17:f99cdfd01d4e 79 #define SpiClock PTD1
bosko001 17:f99cdfd01d4e 80 #define SpiSel PTD4
bosko001 17:f99cdfd01d4e 81 #define SpiSel_out PTA5
bosko001 17:f99cdfd01d4e 82 #define IO_TELEGRAM_TAS_PIN PTC4
bosko001 17:f99cdfd01d4e 83
bosko001 17:f99cdfd01d4e 84
bosko001 17:f99cdfd01d4e 85
bosko001 17:f99cdfd01d4e 86
bosko001 17:f99cdfd01d4e 87 #define PIN_OUT_1 PTB2
bosko001 17:f99cdfd01d4e 88 #define PIN_OUT_2 PTB3
bosko001 17:f99cdfd01d4e 89 #define PIN_OUT_3 PTC2
bosko001 17:f99cdfd01d4e 90 #define PIN_OUT_4 PTC1
bosko001 17:f99cdfd01d4e 91 #define PIN_OUT_5 PTB1
bosko001 17:f99cdfd01d4e 92 #define PIN_OUT_6 PTB0
bosko001 17:f99cdfd01d4e 93
bosko001 17:f99cdfd01d4e 94
bosko001 17:f99cdfd01d4e 95 #define PIN_IN_6 PTC5
bosko001 17:f99cdfd01d4e 96 #define PIN_IN_5 PTC10
bosko001 17:f99cdfd01d4e 97 #define PIN_IN_4 PTC7
bosko001 17:f99cdfd01d4e 98 #define PIN_IN_3 PTC9
bosko001 17:f99cdfd01d4e 99 #define PIN_IN_2 PTC8
bosko001 17:f99cdfd01d4e 100 #define PIN_IN_1 PTA12
bosko001 17:f99cdfd01d4e 101
bosko001 17:f99cdfd01d4e 102 #endif
bosko001 17:f99cdfd01d4e 103
bosko001 17:f99cdfd01d4e 104
bosko001 17:f99cdfd01d4e 105
bosko001 17:f99cdfd01d4e 106
bosko001 17:f99cdfd01d4e 107 #endif