Jared's DAC Code

Dependencies:   mbed

Dependents:   DCS_FINAL_CODE

Fork of Chemical_Sensor_DMA by Jared Baxter

Committer:
DeWayneDennis
Date:
Sat Dec 19 21:47:52 2015 +0000
Revision:
7:af255a90505e
Parent:
4:9fd291254686
Final Code

Who changed what in which revision?

UserRevisionLine numberNew 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 4:9fd291254686 7 #define TOTAL_SAMPLES 2000//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 4:9fd291254686 10 extern uint16_t out_val_pre[TOTAL_SAMPLES];
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_ */