GroupA / Mbed 2 deprecated Lab_6_WaG

Dependencies:   mbed

Fork of WaG by GroupA

io_pins.h

Committer:
spm71
Date:
2018-03-23
Revision:
39:abf211b17e3c
Parent:
23:3da1d39c1ae9
Child:
42:6cba679a4ee4

File content as of revision 39:abf211b17e3c:

/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 5: WaG
* 
* Authors: Sam Morrison and Phong Nguyen 
* File name: io_pins.h
* Purpose: Declare symbolic constants for each of I/O pins
* 
* Created: 03/01/2018
* Last Modified: 03/08/2018
*
******************************************************************************/
#ifndef IO_PINS_H
#define IO_PINS_H

//SPI
#define MISO PA_6
#define SCLK PA_5
#define MOSI PA_7

//Laser
#define LZR_ENABLE PB_5

//Stepper
#define STP_HOME_SENSOR PE_11
#define STP_DRV8806_NCS PA_15

//Display
#define DSP_AS1107_NCS PC_7
#define SPI_MOSI PA_7
#define SPI_SCLK PA_5

//Analog
#define MUX_S0 PC_6
#define MUX_S1 PB_15
#define MUX_S2 PB_13
#define MUX_S3 PB_12
#define MUX_OUT PB_1

//UI
#define UI_CAL_BUTTON PG_9
#define UI_START_BUTTON PG_14
#define UI_STATION_SELECT PF_15
#define UI_JOG_LEFT_BUTTON PE_13
#define UI_JOG_RIGHT_BUTTON PF_14

#endif