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 DSP_200kHz by
pdb.h@46:a015ebf4663b, 2015-01-31 (annotated)
- Committer:
- timmey9
- Date:
- Sat Jan 31 08:13:33 2015 +0000
- Revision:
- 46:a015ebf4663b
- Parent:
- 45:d591d138cdeb
- Child:
- 51:43143a3fc2d7
DMA is reading from FTM2_CNT. Still need to get PDB triggering the DMAs.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| timmey9 | 39:82dc3daecf32 | 1 | /* This app note explains what needs to be set for a PDB, ADC, DMA setup: http://cache.freescale.com/files/32bit/doc/app_note/AN4688.pdf |
| timmey9 | 39:82dc3daecf32 | 2 | * http://cache.freescale.com/files/microcontrollers/doc/app_note/AN3844.pdf |
| timmey9 | 39:82dc3daecf32 | 3 | */ |
| timmey9 | 39:82dc3daecf32 | 4 | |
| timmey9 | 39:82dc3daecf32 | 5 | #ifndef PDB_H_ |
| timmey9 | 39:82dc3daecf32 | 6 | #define PDB_H_ |
| timmey9 | 39:82dc3daecf32 | 7 | |
| timmey9 | 39:82dc3daecf32 | 8 | #include "mbed.h" |
| timmey9 | 39:82dc3daecf32 | 9 | |
| timmey9 | 46:a015ebf4663b | 10 | extern bool switcher; |
| timmey9 | 46:a015ebf4663b | 11 | |
| timmey9 | 45:d591d138cdeb | 12 | void pdb_init(); |
| timmey9 | 39:82dc3daecf32 | 13 | void pdb_start(); |
| timmey9 | 39:82dc3daecf32 | 14 | void pdb_stop(); |
| timmey9 | 39:82dc3daecf32 | 15 | |
| timmey9 | 46:a015ebf4663b | 16 | void PDB0_IRQHandler(); |
| timmey9 | 46:a015ebf4663b | 17 | |
| timmey9 | 39:82dc3daecf32 | 18 | #endif /* PDB_H_ */ |

