Reiko Randoja / Mbed 2 deprecated ut_bbr

Dependencies:   USBDevice mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pins.h Source File

pins.h

00001 #ifndef PINS_H_
00002 #define PINS_H_
00003 #include "mbed.h"
00004 
00005 // MOTOR0 (J5)
00006 #define M0_PWM P2_3
00007 #define M0_DIR1 P0_21
00008 #define M0_DIR2 P0_20
00009 #define M0_ENCA P0_19
00010 #define M0_ENCB P0_18
00011 #define M0_FAULT P0_22
00012 
00013 // MOTOR1 (J7)
00014 #define M1_PWM P2_2
00015 #define M1_DIR1 P0_15
00016 #define M1_DIR2 P0_16
00017 #define M1_ENCA P2_7
00018 #define M1_ENCB P2_6
00019 #define M1_FAULT P0_17
00020 
00021 // MOTOR2 (J8)
00022 #define M2_PWM P2_1
00023 #define M2_DIR1 P0_24
00024 #define M2_DIR2 P0_25
00025 #define M2_ENCA P0_26
00026 #define M2_ENCB P0_9
00027 #define M2_FAULT P0_23
00028 
00029 // MOTOR3 (J10)
00030 #define M3_PWM P2_0
00031 #define M3_DIR1 P0_7
00032 #define M3_DIR2 P0_6
00033 #define M3_ENCA P0_5
00034 #define M3_ENCB P0_4
00035 #define M3_FAULT P0_8
00036 
00037 // Coilgun
00038 #define C_CHARGE P0_10
00039 #define C_KICK P0_11
00040 #define C_DONE P1_29
00041 #define PWM0 P2_5
00042 
00043 // GPIO0 (J3)
00044 #define ADC0 P1_30
00045 #define ADC1 P1_31
00046 #define PWM1 P2_4
00047 
00048 // LED1
00049 #define LED1R P4_28
00050 #define LED1G P4_29
00051 #define LED1B P2_8
00052 
00053 // LED2
00054 #define LED2R P0_28
00055 #define LED2G P1_18
00056 #define LED2B P0_27
00057 
00058 // COM (J2)
00059 #define COMTX P0_0
00060 #define COMRX P0_1
00061 
00062 #endif