direction commands updated to Up down RPM value

Dependencies:   MAX7219pot MCP23S17 mbed

Fork of POT_V_1_0 by Marine Electricals

Revision:
0:ba33a62aea4e
Child:
1:e116808d8b00
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pot.h	Thu Sep 28 05:10:42 2017 +0000
@@ -0,0 +1,77 @@
+#define _AHEAD               PB_1
+#define _ASTERN              PB_8
+
+/*
+#define _SH                  PB_9
+#define _DSH                 PB_7
+
+#define _FS                  PB_6
+#define _HS                  PC_5      //not used in POT
+#define _SS                  PA_8
+#define _DSS                 PC_13
+
+#define _STOP                PB_4
+#define _STBY                PB_5
+#define _FWE                 PA_6
+*/
+
+#define _REQ                 PC_0
+#define _ACK                 PC_3
+
+#define _TEST                PA_7
+
+#define _WH                  PC_2
+#define _MCR                 PA_10
+#define _BRDG                PA_11
+#define _ER                  PA_12
+
+#define _ASP                 PC_1
+#define _OPS                 PB_0
+#define _WP                  PA_1
+#define _WS                  PB_10
+
+#define BUZ                 PC_6
+#define HTR                 PC_8                                //in Slave
+//#define ALRM                PC_8                            //in Master
+
+#define SPI3_MOSI           PC_12
+#define SPI3_MISO           PC_11
+#define SPI3_SCK            PC_10
+#define SPI3_CS1            PA_15
+#define SPI3_CS2            PA_4
+
+#define SPI3_RST            PC_9    
+
+#define INT_A               PC_4
+#define INT_B               PA_9
+#define INT_C               PA_0
+
+#define SPI2_MOSI           PB_15
+#define SPI2_MISO           PB_14
+#define SPI2_SCK            PB_13
+#define SPI2_CS1            PB_2
+#define SPI2_CS2            PC_7 
+
+#define SERIAL_TX           PA_2
+#define SERIAL_RX           PA_3
+#define Tx_EN               PA_5
+#define RX_BUFFER_SIZE      0x19           //25 bytes or char to be stored
+
+#define NO_MAX_POT          0x08           //maximum no. of of eot devices to be connected
+
+#define NMEA_END_CHAR_1     '\n'
+#define NMEA_MAX_LENGTH     30
+                    //digit0, 1,   2,   3
+char print_FH[5]     = {0x40,0x00,0x37,0x47};
+char print_HH[5]     = {0x40,0x00,0x37,0x37};
+char print_SH[5]     = {0x40,0x00,0x37,0x5b};
+char print_DSH[5]    = {0x40,0x37,0x5b,0x3d};
+char print_FS[5]     = {0x08,0x00,0x5b,0x47};
+char print_HS[5]     = {0x08,0x00,0x5b,0x37};
+char print_SS[5]     = {0x08,0x00,0x5b,0x5b};
+char print_DSS[5]    = {0x08,0x5b,0x5b,0x3d};
+char print_FWE[5]    = {0x00,0x4f,0x5d,0x47};
+char print_STOP[5]   = {0x67,0x1d,0x0f,0x5b};
+char print_STBY[5]   = {0x33,0x1f,0x0f,0x5b};
+
+char *commands[11] = {print_FH,print_HH,print_SH,print_DSH,print_FS,print_HS,print_SS,print_DSS,print_FWE,print_STOP,print_STBY};