Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of WaG by
io_pins.h@56:048b30c9f2a1, 2018-04-06 (annotated)
- Committer:
- spm71
- Date:
- Fri Apr 06 18:25:19 2018 +0000
- Revision:
- 56:048b30c9f2a1
- Parent:
- 42:6cba679a4ee4
Final update
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 | 42:6cba679a4ee4 | 4 | * Assignment Name: Lab 6: 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 | 42:6cba679a4ee4 | 11 | * Last Modified: 03/29/2018 |
| phn10 | 8:d8bc78bda829 | 12 | * |
| phn10 | 8:d8bc78bda829 | 13 | ******************************************************************************/ |
| spm71 | 39:abf211b17e3c | 14 | #ifndef IO_PINS_H |
| spm71 | 39:abf211b17e3c | 15 | #define IO_PINS_H |
| phn10 | 8:d8bc78bda829 | 16 | |
| spm71 | 17:75d567b60214 | 17 | //SPI |
| spm71 | 17:75d567b60214 | 18 | #define MISO PA_6 |
| spm71 | 17:75d567b60214 | 19 | #define SCLK PA_5 |
| phn10 | 8:d8bc78bda829 | 20 | #define MOSI PA_7 |
| spm71 | 17:75d567b60214 | 21 | |
| spm71 | 17:75d567b60214 | 22 | //Laser |
| spm71 | 17:75d567b60214 | 23 | #define LZR_ENABLE PB_5 |
| spm71 | 17:75d567b60214 | 24 | |
| spm71 | 17:75d567b60214 | 25 | //Stepper |
| spm71 | 17:75d567b60214 | 26 | #define STP_HOME_SENSOR PE_11 |
| spm71 | 22:09dd6977576b | 27 | #define STP_DRV8806_NCS PA_15 |
| spm71 | 17:75d567b60214 | 28 | |
| spm71 | 17:75d567b60214 | 29 | //Display |
| spm71 | 17:75d567b60214 | 30 | #define DSP_AS1107_NCS PC_7 |
| spm71 | 39:abf211b17e3c | 31 | #define SPI_MOSI PA_7 |
| spm71 | 39:abf211b17e3c | 32 | #define SPI_SCLK PA_5 |
| spm71 | 17:75d567b60214 | 33 | |
| spm71 | 17:75d567b60214 | 34 | //Analog |
| spm71 | 17:75d567b60214 | 35 | #define MUX_S0 PC_6 |
| spm71 | 17:75d567b60214 | 36 | #define MUX_S1 PB_15 |
| spm71 | 17:75d567b60214 | 37 | #define MUX_S2 PB_13 |
| spm71 | 17:75d567b60214 | 38 | #define MUX_S3 PB_12 |
| spm71 | 39:abf211b17e3c | 39 | #define MUX_OUT PB_1 |
| spm71 | 17:75d567b60214 | 40 | |
| spm71 | 17:75d567b60214 | 41 | //UI |
| spm71 | 17:75d567b60214 | 42 | #define UI_CAL_BUTTON PG_9 |
| spm71 | 17:75d567b60214 | 43 | #define UI_START_BUTTON PG_14 |
| spm71 | 23:3da1d39c1ae9 | 44 | #define UI_STATION_SELECT PF_15 |
| spm71 | 17:75d567b60214 | 45 | #define UI_JOG_LEFT_BUTTON PE_13 |
| spm71 | 39:abf211b17e3c | 46 | #define UI_JOG_RIGHT_BUTTON PF_14 |
| spm71 | 39:abf211b17e3c | 47 | |
| spm71 | 39:abf211b17e3c | 48 | #endif |
