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-07-25
- Revision:
- 5:f7b7ee0702cc
- Parent:
- 4:710464cb44fc
File content as of revision 5:f7b7ee0702cc:
/*Pin defination for LED indication */ //#define _AHEAD PB_8 / direction leds not required //#define _ASTERN PB_9 / direction leds not required #define _REQ PC_5 #define _ACK PA_12 #define _CMD_ACK PA_11 #define _WH PB_6 #define _BRDG PC_0 #define _MCR 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 PA_5 //PC_13 #define INT_B PA_9 #define INT_C PA_0 #define SERIAL_TX PA_2 #define SERIAL_RX PA_3 #define TX_EN PC_4 //PA_5 /*UART buffer settings */ #define RX_BUFFER_SIZE 0x2D // origional 0x1e=25 bytes or char to be stored #define TX_BUFFER_SIZE 0x2D // to store 37 chars #define NO_MAX_POT 0x08 //maximum no. of of pot devices to be connected #define NMEA_END_CHAR_1 '\n' #define NMEA_MAX_LENGTH 45 //maximum setence length #define Max_RPM 2000