This is a program to drive a stepper servomotor from SerialUSB without any other interrution but the serial one.

Dependencies:   mbed

main.cpp

Committer:
Yo_Robot
Date:
2012-04-09
Revision:
0:da3eb35a2787

File content as of revision 0:da3eb35a2787:

// This code is for controlling a bipolar stepper motor
// using an L293D driver
 
#include "mbed.h"
#include "config.h"

Serial     pc( USBTX, USBRX );

void Setup_PTO_Timer2();
void ISR_Serial();

int main() {
    
    Setup_PTO_Timer2();
    pc.attach( &ISR_Serial );

    while(1) {
   
    
     }
}