K22 processor

Revision:
17:f99cdfd01d4e
Parent:
15:3429cdc6e5f4
Child:
18:6196688e2a94
diff -r a3085300cac3 -r f99cdfd01d4e Pinovi.h
--- a/Pinovi.h	Fri Apr 30 00:08:07 2021 +0200
+++ b/Pinovi.h	Sat May 15 13:59:57 2021 +0200
@@ -4,6 +4,12 @@
 #define BROADCASTADDRESS (unsigned char)0xc0
 
 
+//#define FRDMK22F
+#define FRDMK64F
+
+
+#ifdef FRDMK64F
+
 #define ZCOUT_TESTPIN   PTE24
 #define ZC_PIN  PTC12
 
@@ -47,3 +53,55 @@
 #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    PTD8
+#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
+#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