]> rtime.felk.cvut.cz Git - eurobot/public.git/blob - src/eb_jaws_11/vhn.h
add bumper can msg def, add bumper funcionality to jaws, not pin to bumper asigment...
[eurobot/public.git] / src / eb_jaws_11 / vhn.h
1 /* VHN2SP30 H-bridge control */
2
3 #ifndef  __VHN_H
4 #define  __VHN_H
5
6   #include "def.h"
7
8   #define VHN_EN_A              (1<<16) /* P1.16 = GPIO1 = GPIO port 2 */
9   #define VHN_EN_B              (1<<17) /* P1.17 = GPIO2 = GPIO port 1 */
10   #define VHN_IN_A              (1<<18) /* P1.18 = GPIO3 = GPIO port 4 */
11   #define VHN_IN_B              (1<<19) /* P1.19 = GPIO4 = GPIO port 3 */
12
13
14     void vhn_init(void);
15     void vhn_reset(void);
16     void vhn_speed(uint8_t speed, uint8_t dir);
17
18         
19         
20
21
22 #endif /*__VHN_H*/