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 Lab_6_WaG by
stepper.h
- Committer:
- spm71
- Date:
- 2018-03-22
- Revision:
- 35:ad2b3d6f0e5a
- Parent:
- 20:d23bcd97f2c5
- Child:
- 39:abf211b17e3c
File content as of revision 35:ad2b3d6f0e5a:
/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 5: WaG
*
* Authors: Sam Morrison and Phong Nguyen
* File name: stepper.h
* Purpose: Header for stepper driver
*
* Created: 03/02/2018
* Last Modified: 03/02/2018
*
******************************************************************************/
#ifndef STEPPER_H
#define STEPPER_H
#define SPI_DRV8806_ID 2
#define DRV8806_SPI_NO_BITS 8
#define DRV8806_SPI_MODE 0
#define DRV8806_SPI_FREQ 1000000
#define STP_CW 0
#define STP_CCW 1
#define STP_POS_UNKN -5
#define NUM_SENSORS 8
#include "mbed.h"
#include "io_pins.h"
void stp_init();
void stp_step(int direction);
void step_test();
void stp_find_home()
#endif
