C Library for mbedWSE project based single board computer for hardware peripherals
Dependents: cts_matlab_interface
Diff: mbedWSEsbc.h
- Revision:
- 11:acf3fcc0d085
- Parent:
- 4:1aa4a75f6885
- Child:
- 12:9041603c430e
diff -r c8950d434ba8 -r acf3fcc0d085 mbedWSEsbc.h --- a/mbedWSEsbc.h Thu Oct 16 17:37:56 2014 +0000 +++ b/mbedWSEsbc.h Tue Feb 10 16:05:18 2015 +0000 @@ -30,24 +30,24 @@ // Set-up hardwired IO SPI spi_max1270(p5, p6, p7); SPI spi(p5, p6, p7); -DigitalOut max1270_cs(p8); //CS for MAX1270 ADC (U3) -DigitalOut max522_cs(p11); //CS for MAX522 DAC (U5) +DigitalOut max1270_cs(p8, 1); //CS for MAX1270 ADC (U3) +DigitalOut max522_cs(p11, 1); //CS for MAX522 DAC (U5) -DigitalOut ls7166_cs1(p19); //CS for LS7366-1 (U8) -DigitalOut ls7166_cs2(p20); //CS for LS7366-2 (U9) +DigitalOut ls7166_cs1(p19, 1); //CS for LS7366-1 (U8) +DigitalOut ls7166_cs2(p20, 1); //CS for LS7366-2 (U9) -DigitalOut mot1_ph1(p21); -DigitalOut mot1_ph2(p22); +DigitalOut mot1_ph1(p21, 0); +DigitalOut mot1_ph2(p22, 0); PwmOut mot_en1(p23); -DigitalOut mot2_ph1(p24); -DigitalOut mot2_ph2(p25); +DigitalOut mot2_ph1(p24, 0); +DigitalOut mot2_ph2(p25, 0); PwmOut mot_en2(p26); -DigitalOut led1(LED1); -DigitalOut led2(LED2); -DigitalOut led3(LED3); -DigitalOut led4(LED4); +DigitalOut led1(LED1, 0); +DigitalOut led2(LED2, 0); +DigitalOut led3(LED3, 0); +DigitalOut led4(LED4, 0); Serial pc(USBTX, USBRX); // tx, rx for serial USB interface to pc Serial xbee(p13, p14); // tx, rx for Xbee