direction commands updated to Up down RPM value
Dependencies: MAX7219pot MCP23S17 mbed
Fork of POT_V_1_0 by
pot.h
- Committer:
- viewdeep51
- Date:
- 2018-01-05
- Revision:
- 1:e116808d8b00
- Parent:
- 0:ba33a62aea4e
- Child:
- 3:ae45e29f5d4f
File content as of revision 1:e116808d8b00:
/*Pin defination for LED indication */ #define _AHEAD PB_8 #define _ASTERN PB_9 #define _REQ PC_5 #define _ACK PA_12 #define _CMD_ACK PA_11 #define _WH PB_6 #define _MCR PC_0 #define _BRDG PC_3 #define _ER PA_8 #define _WP PB_1 #define _WS PB_10 #define _OPS PA_7 #define _ASP PB_4 /*Pin defination for PWM based brightness control */ #define _PWM PB_7 /*Pin defination for alarm drivers */ #define BUZ PC_6 #define HTR PC_8 /*Pin defination for SPI bus Keyscan */ #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 /*Pin defination for SPI bus Display */ #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 /*Pin defination for external interrupts */ #define INT_A PC_4 #define INT_B PA_9 #define INT_C PA_0 /*Pin defination for UART config */ #define SERIAL_TX PA_2 #define SERIAL_RX PA_3 #define Tx_EN PA_5 /*UART buffer settings */ #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};