diff options
| author | Bdale Garbee <bdale@gag.com> | 2012-05-16 09:13:53 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2012-05-16 09:13:53 -0600 | 
| commit | 6a973f788563ccc66b01cc7557a004dabef18d09 (patch) | |
| tree | ffbc8faad73cde7934c4050deb840092430a311f /src/stm/ao_dma_stm.c | |
| parent | d387f246b24502642b76aad04eb3e0f1a5b78a05 (diff) | |
| parent | da2c920b9f3378d5a18551e008c1da5dace1e0ef (diff) | |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'src/stm/ao_dma_stm.c')
| -rw-r--r-- | src/stm/ao_dma_stm.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stm/ao_dma_stm.c b/src/stm/ao_dma_stm.c index e76c8e8c..8379a1a5 100644 --- a/src/stm/ao_dma_stm.c +++ b/src/stm/ao_dma_stm.c @@ -20,7 +20,7 @@  #define NUM_DMA	7  struct ao_dma_config { -	void		(*isr)(void); +	void		(*isr)(int index);  };  uint8_t ao_dma_done[NUM_DMA]; @@ -39,7 +39,7 @@ ao_dma_isr(uint8_t index) {  	/* Ack them */  	stm_dma.ifcr = isr;  	if (ao_dma_config[index].isr) -		(*ao_dma_config[index].isr)(); +		(*ao_dma_config[index].isr)(index);  	else {  		ao_dma_done[index] = 1;  		ao_wakeup(&ao_dma_done[index]); @@ -79,7 +79,7 @@ ao_dma_set_transfer(uint8_t 		index,  }  void -ao_dma_set_isr(uint8_t index, void (*isr)(void)) +ao_dma_set_isr(uint8_t index, void (*isr)(int))  {  	ao_dma_config[index].isr = isr;  }  | 
