Dheeraj M Pai
/
ADF7023_mbed_Rolling_Buffer_5
ADF7023 Mbed
Revision 5:0b8f6029c127, committed 2015-07-09
- Comitter:
- dheerajmpai23
- Date:
- Thu Jul 09 06:45:11 2015 +0000
- Parent:
- 4:59971eae6b21
- Commit message:
- For Publoshing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 59971eae6b21 -r 0b8f6029c127 main.cpp --- a/main.cpp Sat Jul 04 06:10:33 2015 +0000 +++ b/main.cpp Thu Jul 09 06:45:11 2015 +0000 @@ -250,7 +250,7 @@ } - else if(j<=sizeof(data)/122){ + else if(j<=sizeof(data)/112){ // if(src == 1){ if(j%2){ //src== Buffer Half Full src == 1 adf.write(0x18); @@ -319,11 +319,11 @@ adf.write(0xFF); CS=1; wait_us(20); - poll(); +// poll(); // t.attach_us(&poll,45000); // int x = IRQ; /* */ -// IRQ.rise(&write_data); + IRQ.rise(&write_data); } @@ -334,12 +334,13 @@ int main() { - +// IRQ.disable_irq(); // IRQ.mode(PullDown); - cout<<"in MAin"<<ENDL; +// cout<<"in MAin"<<ENDL; adf.format(8,0); adf.frequency(1000000); bbram_write(); initiate(); + IRQ.enable_irq(); send_data(); } \ No newline at end of file