Testing Linija
Dependencies: JoystickLinija IRremote mbed Tipkalo UniServ_linijapogona umotor_linijapogona
global_nazivi.h
- Committer:
- mario_meh
- Date:
- 2017-11-22
- Revision:
- 2:9d19b20a60a9
File content as of revision 2:9d19b20a60a9:
/** * Definirani globalni nazivi */ #ifndef GLOBAL_NAZIVI_H #define GLOBAL_NAZIVI_H // Linija pogona typedef enum { LINIJA_RADI = 0, LINIJA_STOP = 1, LINIJA_START = 2, LINIJA_MOTOR, } LinijaPogona; // Joystick /* I2C */ #define PIN_SCL PTE1 #define PIN_SDA PTE0 /* SPI */ #define PIN_SCK PTD1 #define PIN_MISO PTD3 #define PIN_MOSI PTD2 #define PIN_CS0 PTD0 /* Interrupt */ #define PIN_INT0 PTD5 #define PIN_INT1 PTA13 #define PIN_INT2 PTC9 /* This pin does not support interrupt */ #define PIN_INT3 PTC8 /* This pin does not support interrupt */ #define PIN_INT4 PTA5 #define PIN_INT5 PTA4 /* Analog Input */ #define PIN_AN0 PTB0 #define PIN_AN1 PTB1 #define PIN_AN2 PTB2 #define PIN_AN3 PTB3 #define PIN_AN4 PTC2 #define PIN_AN5 PTC1 #endif