direction commands updated to Up down RPM value

Dependencies:   MAX7219pot MCP23S17 mbed

Fork of POT_V_1_0 by Marine Electricals

Committer:
viewdeep51
Date:
Fri Jan 05 04:35:22 2018 +0000
Revision:
1:e116808d8b00
Parent:
0:ba33a62aea4e
Child:
3:ae45e29f5d4f
05/01/2018

Who changed what in which revision?

UserRevisionLine numberNew contents of line
viewdeep51 1:e116808d8b00 1 /*Pin defination for LED indication */
viewdeep51 0:ba33a62aea4e 2
viewdeep51 1:e116808d8b00 3 #define _AHEAD PB_8
viewdeep51 1:e116808d8b00 4 #define _ASTERN PB_9
viewdeep51 1:e116808d8b00 5 #define _REQ PC_5
viewdeep51 1:e116808d8b00 6 #define _ACK PA_12
viewdeep51 1:e116808d8b00 7 #define _CMD_ACK PA_11
viewdeep51 1:e116808d8b00 8 #define _WH PB_6
viewdeep51 1:e116808d8b00 9 #define _MCR PC_0
viewdeep51 1:e116808d8b00 10 #define _BRDG PC_3
viewdeep51 1:e116808d8b00 11 #define _ER PA_8
viewdeep51 1:e116808d8b00 12 #define _WP PB_1
viewdeep51 1:e116808d8b00 13 #define _WS PB_10
viewdeep51 1:e116808d8b00 14 #define _OPS PA_7
viewdeep51 1:e116808d8b00 15 #define _ASP PB_4
viewdeep51 0:ba33a62aea4e 16
viewdeep51 1:e116808d8b00 17 /*Pin defination for PWM based brightness control */
viewdeep51 1:e116808d8b00 18 #define _PWM PB_7
viewdeep51 1:e116808d8b00 19
viewdeep51 0:ba33a62aea4e 20
viewdeep51 1:e116808d8b00 21 /*Pin defination for alarm drivers */
viewdeep51 0:ba33a62aea4e 22 #define BUZ PC_6
viewdeep51 1:e116808d8b00 23 #define HTR PC_8
viewdeep51 0:ba33a62aea4e 24
viewdeep51 1:e116808d8b00 25 /*Pin defination for SPI bus Keyscan */
viewdeep51 0:ba33a62aea4e 26 #define SPI3_MOSI PC_12
viewdeep51 0:ba33a62aea4e 27 #define SPI3_MISO PC_11
viewdeep51 0:ba33a62aea4e 28 #define SPI3_SCK PC_10
viewdeep51 0:ba33a62aea4e 29 #define SPI3_CS1 PA_15
viewdeep51 0:ba33a62aea4e 30 #define SPI3_CS2 PA_4
viewdeep51 0:ba33a62aea4e 31 #define SPI3_RST PC_9
viewdeep51 0:ba33a62aea4e 32
viewdeep51 1:e116808d8b00 33 /*Pin defination for SPI bus Display */
viewdeep51 0:ba33a62aea4e 34 #define SPI2_MOSI PB_15
viewdeep51 0:ba33a62aea4e 35 #define SPI2_MISO PB_14
viewdeep51 0:ba33a62aea4e 36 #define SPI2_SCK PB_13
viewdeep51 0:ba33a62aea4e 37 #define SPI2_CS1 PB_2
viewdeep51 0:ba33a62aea4e 38 #define SPI2_CS2 PC_7
viewdeep51 0:ba33a62aea4e 39
viewdeep51 1:e116808d8b00 40 /*Pin defination for external interrupts */
viewdeep51 1:e116808d8b00 41 #define INT_A PC_4
viewdeep51 1:e116808d8b00 42 #define INT_B PA_9
viewdeep51 1:e116808d8b00 43 #define INT_C PA_0
viewdeep51 1:e116808d8b00 44
viewdeep51 1:e116808d8b00 45 /*Pin defination for UART config */
viewdeep51 0:ba33a62aea4e 46 #define SERIAL_TX PA_2
viewdeep51 0:ba33a62aea4e 47 #define SERIAL_RX PA_3
viewdeep51 0:ba33a62aea4e 48 #define Tx_EN PA_5
viewdeep51 1:e116808d8b00 49
viewdeep51 1:e116808d8b00 50 /*UART buffer settings */
viewdeep51 0:ba33a62aea4e 51 #define RX_BUFFER_SIZE 0x19 //25 bytes or char to be stored
viewdeep51 0:ba33a62aea4e 52 #define NO_MAX_POT 0x08 //maximum no. of of eot devices to be connected
viewdeep51 0:ba33a62aea4e 53 #define NMEA_END_CHAR_1 '\n'
viewdeep51 0:ba33a62aea4e 54 #define NMEA_MAX_LENGTH 30
viewdeep51 1:e116808d8b00 55
viewdeep51 0:ba33a62aea4e 56 //digit0, 1, 2, 3
viewdeep51 0:ba33a62aea4e 57 char print_FH[5] = {0x40,0x00,0x37,0x47};
viewdeep51 0:ba33a62aea4e 58 char print_HH[5] = {0x40,0x00,0x37,0x37};
viewdeep51 0:ba33a62aea4e 59 char print_SH[5] = {0x40,0x00,0x37,0x5b};
viewdeep51 0:ba33a62aea4e 60 char print_DSH[5] = {0x40,0x37,0x5b,0x3d};
viewdeep51 0:ba33a62aea4e 61 char print_FS[5] = {0x08,0x00,0x5b,0x47};
viewdeep51 0:ba33a62aea4e 62 char print_HS[5] = {0x08,0x00,0x5b,0x37};
viewdeep51 0:ba33a62aea4e 63 char print_SS[5] = {0x08,0x00,0x5b,0x5b};
viewdeep51 0:ba33a62aea4e 64 char print_DSS[5] = {0x08,0x5b,0x5b,0x3d};
viewdeep51 0:ba33a62aea4e 65 char print_FWE[5] = {0x00,0x4f,0x5d,0x47};
viewdeep51 0:ba33a62aea4e 66 char print_STOP[5] = {0x67,0x1d,0x0f,0x5b};
viewdeep51 0:ba33a62aea4e 67 char print_STBY[5] = {0x33,0x1f,0x0f,0x5b};
viewdeep51 0:ba33a62aea4e 68
viewdeep51 0:ba33a62aea4e 69 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};