DSP program for the Surfboard hardware (PCB to be open sourced) http://www.avbotz.com/ourauv/electrical/signal-processing/
Dependencies: MODDMA SimpleIOMacros mbed-dsp mbed
surfboard.h@1:f69ec4c889ff, 2013-08-02 (annotated)
- Committer:
- avbotz
- Date:
- Fri Aug 02 02:25:12 2013 +0000
- Revision:
- 1:f69ec4c889ff
- Parent:
- 0:2381a319fc35
Initial commit. Not working. MODDMA makes DMA setup slow, and the mbed SPI peripheral corrupts data sometimes. I will write my own SPI and DMA classes and see how it goes.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
avbotz | 0:2381a319fc35 | 1 | #ifndef SURFBOARD_H__ |
avbotz | 0:2381a319fc35 | 2 | #define SURFBOARD_H__ |
avbotz | 0:2381a319fc35 | 3 | |
avbotz | 0:2381a319fc35 | 4 | #include "mbed.h" |
avbotz | 0:2381a319fc35 | 5 | #include "dsp.h" |
avbotz | 0:2381a319fc35 | 6 | |
avbotz | 0:2381a319fc35 | 7 | #include "dma.h" |
avbotz | 0:2381a319fc35 | 8 | #include "hydro_dsp.h" |
avbotz | 0:2381a319fc35 | 9 | |
avbotz | 0:2381a319fc35 | 10 | void pre_setup(); |
avbotz | 0:2381a319fc35 | 11 | int setup(); |
avbotz | 0:2381a319fc35 | 12 | int setup_ads1274(); |
avbotz | 0:2381a319fc35 | 13 | |
avbotz | 0:2381a319fc35 | 14 | void teardown(); |
avbotz | 0:2381a319fc35 | 15 | void teardown_ads1274(); |
avbotz | 0:2381a319fc35 | 16 | |
avbotz | 0:2381a319fc35 | 17 | void submarine_cb(); |
avbotz | 0:2381a319fc35 | 18 | void abat_cb(); |
avbotz | 0:2381a319fc35 | 19 | void led1_cb(); |
avbotz | 0:2381a319fc35 | 20 | |
avbotz | 0:2381a319fc35 | 21 | extern Serial submarine; |
avbotz | 0:2381a319fc35 | 22 | extern DigitalOut led1, led2, led3, led4; |
avbotz | 0:2381a319fc35 | 23 | extern uint32_t led1num, led2num, led3num, led4num; |
avbotz | 0:2381a319fc35 | 24 | |
avbotz | 0:2381a319fc35 | 25 | #endif |