pwm gen works.new pins assigned to all except interrupt. everything works except beacon spi.
Fork of pcb_test_v1_1 by
Diff: beacon.cpp
- Revision:
- 1:bbddd1763652
- Parent:
- 0:e91ee0e99213
diff -r e91ee0e99213 -r bbddd1763652 beacon.cpp --- a/beacon.cpp Tue Apr 07 16:11:54 2015 +0000 +++ b/beacon.cpp Tue Apr 07 18:10:19 2015 +0000 @@ -17,9 +17,12 @@ //set all values as FF for checking on spectrum analyzer #include "beacon.h" #include "HK.h" +#include "pin_config.h" Serial chavan(USBTX, USBRX); // tx, rx -SPI spi(PIN2,PIN1,PIN3); // mosi, miso, sclk +//SPI spi(PIN2,PIN1,PIN3); // mosi, miso, sclk DigitalOut cs_bar(PIN6); //slave select or chip select +SPI spi(PTD6,PTD7,PTD5); // mosi, miso, sclk +//DigitalOut cs_bar(PTC11); //slave select or chip select //InterruptIn button(p9); //#define TIMES 16 //Timer t;