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.
Fork of Impedance_Fast_Circuitry by
Diff: main.cpp
- Revision:
- 48:29f14bc30ba6
- Parent:
- 47:54fafe151669
- Child:
- 49:4dcf4717a8bb
--- a/main.cpp Sat Jan 31 16:44:40 2015 +0000 +++ b/main.cpp Sat Jan 31 18:38:17 2015 +0000 @@ -1,18 +1,15 @@ -// Server code #include "mbed.h" #include "AngleEncoder.h" #include "adc.h" #include "pdb.h" -#include "quadrature.h" +#include "quad.h" // for debug purposes Serial pc(USBTX, USBRX); DigitalOut led_red(LED_RED); DigitalOut led_green(LED_GREEN); DigitalOut led_blue(LED_BLUE); -//DigitalOut test1(PTB19); -//DigitalOut test2(PTB18); AngleEncoder angle_encoder(PTD2, PTD3, PTD1, PTD0, 8, 0, 1000000); // mosi, miso, sclk, cs, bit_width, mode, hz DigitalOut quadA(PTC17); @@ -23,7 +20,6 @@ extern uint16_t angle_array[]; bool switcher = false; -// Declaration of functions using namespace std; @@ -33,7 +29,6 @@ led_red = 1; quadA = 0; quadB = 0; - int counter = 0; pc.baud(230400); pc.printf("Starting\r\n");