direction commands updated to Up down RPM value

Dependencies:   MAX7219pot MCP23S17 mbed

Fork of POT_V_1_0 by Marine Electricals

Committer:
viewdeep51
Date:
Sat Apr 28 10:22:22 2018 +0000
Revision:
4:710464cb44fc
Parent:
3:ae45e29f5d4f
Child:
5:f7b7ee0702cc
POT final code dated 28/04/18

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 4:710464cb44fc 9 #define _BRDG PC_0
viewdeep51 4:710464cb44fc 10
viewdeep51 4:710464cb44fc 11 #define _MCR PC_3
viewdeep51 1:e116808d8b00 12 #define _ER PA_8
viewdeep51 1:e116808d8b00 13 #define _WP PB_1
viewdeep51 1:e116808d8b00 14 #define _WS PB_10
viewdeep51 1:e116808d8b00 15 #define _OPS PA_7
viewdeep51 1:e116808d8b00 16 #define _ASP PB_4
viewdeep51 0:ba33a62aea4e 17
viewdeep51 1:e116808d8b00 18 /*Pin defination for PWM based brightness control */
viewdeep51 1:e116808d8b00 19 #define _PWM PB_7
viewdeep51 1:e116808d8b00 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 4:710464cb44fc 41 #define INT_A PA_5 //PC_13
viewdeep51 1:e116808d8b00 42 #define INT_B PA_9
viewdeep51 1:e116808d8b00 43 #define INT_C PA_0
viewdeep51 1:e116808d8b00 44
viewdeep51 4:710464cb44fc 45
viewdeep51 0:ba33a62aea4e 46 #define SERIAL_TX PA_2
viewdeep51 0:ba33a62aea4e 47 #define SERIAL_RX PA_3
viewdeep51 4:710464cb44fc 48 #define TX_EN PC_4 //PA_5
viewdeep51 1:e116808d8b00 49
viewdeep51 1:e116808d8b00 50 /*UART buffer settings */
viewdeep51 4:710464cb44fc 51 #define RX_BUFFER_SIZE 0x2D // origional 0x1e=25 bytes or char to be stored
viewdeep51 4:710464cb44fc 52 #define TX_BUFFER_SIZE 0x2D // to store 37 chars
viewdeep51 3:ae45e29f5d4f 53
viewdeep51 4:710464cb44fc 54 #define NO_MAX_POT 0x08 //maximum no. of of pot devices to be connected
viewdeep51 0:ba33a62aea4e 55 #define NMEA_END_CHAR_1 '\n'
viewdeep51 4:710464cb44fc 56 #define NMEA_MAX_LENGTH 45 //maximum setence length
viewdeep51 4:710464cb44fc 57