Jared's DAC Code
Dependencies: mbed
Fork of Chemical_Sensor_DMA by
Sample/dma.h@2:3771b3195c7b, 2015-10-29 (annotated)
- Committer:
- baxterja
- Date:
- Thu Oct 29 17:15:20 2015 +0000
- Revision:
- 2:3771b3195c7b
- Child:
- 4:9fd291254686
Accessible Sample folder
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
baxterja | 2:3771b3195c7b | 1 | #ifndef DMA_H_ |
baxterja | 2:3771b3195c7b | 2 | #define DMA_H_ |
baxterja | 2:3771b3195c7b | 3 | |
baxterja | 2:3771b3195c7b | 4 | #include "mbed.h" |
baxterja | 2:3771b3195c7b | 5 | |
baxterja | 2:3771b3195c7b | 6 | #define FILENAME_SIZE 26 |
baxterja | 2:3771b3195c7b | 7 | #define TOTAL_SAMPLES 18980 // a multiple of 1460 (tcp payload length within a packet) |
baxterja | 2:3771b3195c7b | 8 | extern uint16_t sample_array0[TOTAL_SAMPLES]; |
baxterja | 2:3771b3195c7b | 9 | extern uint16_t sample_array1[TOTAL_SAMPLES]; |
baxterja | 2:3771b3195c7b | 10 | extern uint16_t angle_array[TOTAL_SAMPLES+FILENAME_SIZE]; |
baxterja | 2:3771b3195c7b | 11 | extern bool dma_done; |
baxterja | 2:3771b3195c7b | 12 | extern bool dma_half_done; |
baxterja | 2:3771b3195c7b | 13 | |
baxterja | 2:3771b3195c7b | 14 | void dma_reset(); |
baxterja | 2:3771b3195c7b | 15 | void dma_init(); |
baxterja | 2:3771b3195c7b | 16 | void dma_enable_interrupt(); |
baxterja | 2:3771b3195c7b | 17 | void DMA_IRQHandler(); |
baxterja | 2:3771b3195c7b | 18 | void dma_print_registers(); |
baxterja | 2:3771b3195c7b | 19 | |
baxterja | 2:3771b3195c7b | 20 | #endif /* DMA_H_ */ |