Lab 6 code.
Dependencies: mbed
Fork of WaG by
io_pins.h@18:0e281922212c, 2018-03-02 (annotated)
- Committer:
- spm71
- Date:
- Fri Mar 02 22:18:47 2018 +0000
- Revision:
- 18:0e281922212c
- Parent:
- 17:75d567b60214
- Child:
- 22:09dd6977576b
More implementation on SPI and started stepper files.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
phn10 | 8:d8bc78bda829 | 1 | /****************************************************************************** |
phn10 | 8:d8bc78bda829 | 2 | * EECS 397 |
phn10 | 8:d8bc78bda829 | 3 | * |
spm71 | 17:75d567b60214 | 4 | * Assignment Name: Lab 5: WaG |
phn10 | 8:d8bc78bda829 | 5 | * |
phn10 | 8:d8bc78bda829 | 6 | * Authors: Sam Morrison and Phong Nguyen |
phn10 | 8:d8bc78bda829 | 7 | * File name: io_pins.h |
phn10 | 8:d8bc78bda829 | 8 | * Purpose: Declare symbolic constants for each of I/O pins |
phn10 | 8:d8bc78bda829 | 9 | * |
spm71 | 17:75d567b60214 | 10 | * Created: 03/01/2018 |
spm71 | 18:0e281922212c | 11 | * Last Modified: 03/02/2018 |
phn10 | 8:d8bc78bda829 | 12 | * |
phn10 | 8:d8bc78bda829 | 13 | ******************************************************************************/ |
phn10 | 8:d8bc78bda829 | 14 | |
spm71 | 17:75d567b60214 | 15 | //SPI |
spm71 | 17:75d567b60214 | 16 | #define MISO PA_6 |
spm71 | 17:75d567b60214 | 17 | #define SCLK PA_5 |
phn10 | 8:d8bc78bda829 | 18 | #define MOSI PA_7 |
spm71 | 17:75d567b60214 | 19 | |
spm71 | 17:75d567b60214 | 20 | //Laser |
spm71 | 17:75d567b60214 | 21 | #define LZR_ENABLE PB_5 |
spm71 | 17:75d567b60214 | 22 | |
spm71 | 17:75d567b60214 | 23 | //Stepper |
spm71 | 17:75d567b60214 | 24 | #define STP_HOME_SENSOR PE_11 |
spm71 | 17:75d567b60214 | 25 | #define STP_DRV8806_NCS PE_15 |
spm71 | 17:75d567b60214 | 26 | |
spm71 | 17:75d567b60214 | 27 | //Display |
spm71 | 17:75d567b60214 | 28 | #define DSP_AS1107_NCS PC_7 |
spm71 | 17:75d567b60214 | 29 | |
spm71 | 17:75d567b60214 | 30 | //Analog |
spm71 | 17:75d567b60214 | 31 | #define MUX_S0 PC_6 |
spm71 | 17:75d567b60214 | 32 | #define MUX_S1 PB_15 |
spm71 | 17:75d567b60214 | 33 | #define MUX_S2 PB_13 |
spm71 | 17:75d567b60214 | 34 | #define MUX_S3 PB_12 |
spm71 | 17:75d567b60214 | 35 | #define MUX_OUT PC_1 |
spm71 | 17:75d567b60214 | 36 | |
spm71 | 17:75d567b60214 | 37 | //UI |
spm71 | 17:75d567b60214 | 38 | #define UI_CAL_BUTTON PG_9 |
spm71 | 17:75d567b60214 | 39 | #define UI_START_BUTTON PG_14 |
spm71 | 17:75d567b60214 | 40 | #define UI_GNOLL_SELECT PF_15 |
spm71 | 17:75d567b60214 | 41 | #define UI_JOG_LEFT_BUTTON PE_13 |
spm71 | 17:75d567b60214 | 42 | #define UI_JOG_RIGHT_BUTTON PF_14 |