Testing Linija
Dependencies: JoystickLinija IRremote mbed Tipkalo UniServ_linijapogona umotor_linijapogona
Diff: global_nazivi.h
- Revision:
- 2:9d19b20a60a9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/global_nazivi.h Wed Nov 22 08:54:16 2017 +0000 @@ -0,0 +1,37 @@ +/** +* 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 \ No newline at end of file