direction commands updated to Up down RPM value
Dependencies: MAX7219pot MCP23S17 mbed
Fork of POT_V_1_0 by
pot.h@3:ae45e29f5d4f, 2018-01-13 (annotated)
- Committer:
- viewdeep51
- Date:
- Sat Jan 13 11:49:18 2018 +0000
- Revision:
- 3:ae45e29f5d4f
- Parent:
- 1:e116808d8b00
- Child:
- 4:710464cb44fc
13/01/2018
Who changed what in which revision?
User | Revision | Line number | New 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 | 1:e116808d8b00 | 20 | /*Pin defination for alarm drivers */ |
viewdeep51 | 0:ba33a62aea4e | 21 | #define BUZ PC_6 |
viewdeep51 | 1:e116808d8b00 | 22 | #define HTR PC_8 |
viewdeep51 | 0:ba33a62aea4e | 23 | |
viewdeep51 | 1:e116808d8b00 | 24 | /*Pin defination for SPI bus Keyscan */ |
viewdeep51 | 0:ba33a62aea4e | 25 | #define SPI3_MOSI PC_12 |
viewdeep51 | 0:ba33a62aea4e | 26 | #define SPI3_MISO PC_11 |
viewdeep51 | 0:ba33a62aea4e | 27 | #define SPI3_SCK PC_10 |
viewdeep51 | 0:ba33a62aea4e | 28 | #define SPI3_CS1 PA_15 |
viewdeep51 | 0:ba33a62aea4e | 29 | #define SPI3_CS2 PA_4 |
viewdeep51 | 0:ba33a62aea4e | 30 | #define SPI3_RST PC_9 |
viewdeep51 | 0:ba33a62aea4e | 31 | |
viewdeep51 | 1:e116808d8b00 | 32 | /*Pin defination for SPI bus Display */ |
viewdeep51 | 0:ba33a62aea4e | 33 | #define SPI2_MOSI PB_15 |
viewdeep51 | 0:ba33a62aea4e | 34 | #define SPI2_MISO PB_14 |
viewdeep51 | 0:ba33a62aea4e | 35 | #define SPI2_SCK PB_13 |
viewdeep51 | 0:ba33a62aea4e | 36 | #define SPI2_CS1 PB_2 |
viewdeep51 | 0:ba33a62aea4e | 37 | #define SPI2_CS2 PC_7 |
viewdeep51 | 0:ba33a62aea4e | 38 | |
viewdeep51 | 1:e116808d8b00 | 39 | /*Pin defination for external interrupts */ |
viewdeep51 | 1:e116808d8b00 | 40 | #define INT_A PC_4 |
viewdeep51 | 1:e116808d8b00 | 41 | #define INT_B PA_9 |
viewdeep51 | 1:e116808d8b00 | 42 | #define INT_C PA_0 |
viewdeep51 | 1:e116808d8b00 | 43 | |
viewdeep51 | 1:e116808d8b00 | 44 | /*Pin defination for UART config */ |
viewdeep51 | 0:ba33a62aea4e | 45 | #define SERIAL_TX PA_2 |
viewdeep51 | 0:ba33a62aea4e | 46 | #define SERIAL_RX PA_3 |
viewdeep51 | 0:ba33a62aea4e | 47 | #define Tx_EN PA_5 |
viewdeep51 | 1:e116808d8b00 | 48 | |
viewdeep51 | 1:e116808d8b00 | 49 | /*UART buffer settings */ |
viewdeep51 | 0:ba33a62aea4e | 50 | #define RX_BUFFER_SIZE 0x19 //25 bytes or char to be stored |
viewdeep51 | 3:ae45e29f5d4f | 51 | #define TX_BUFFER_SIZE 0x19 |
viewdeep51 | 3:ae45e29f5d4f | 52 | |
viewdeep51 | 0:ba33a62aea4e | 53 | #define NO_MAX_POT 0x08 //maximum no. of of eot devices to be connected |
viewdeep51 | 0:ba33a62aea4e | 54 | #define NMEA_END_CHAR_1 '\n' |
viewdeep51 | 0:ba33a62aea4e | 55 | #define NMEA_MAX_LENGTH 30 |