-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
callback from DSP for reporting analysis parameters #244
Comments
is there an example available how to use this to report a register value? would like to take a second look at the DMA registers. |
yes, you can use inline ASM to read registers.
|
thanks! trying to read registers defined in defBF532.h, like
but I get undefined reference errors, am I missing something obvious here? |
had some time to try again, apparently register defines can be used outside the asm code, moving on without assembly. edit, oh and I had to include defBF532.h |
@electropourlaction - so have you made any headway on this feature from avr32 side? Did you spot my 'analyser' module? I could quite easily add some 'trigger' type of dsp code if there's something to hook into. schmidtt triger emitting pulses on leading edge of an envelope follower would be cool for starters... |
I managed to get a value back from the bfin, didn't get to verify that it was correct, having trouble with avr debug output to OS X, sometimes I just get scrambled output. actually I haven't thought about using this creatively! haven't seen the analyser module, need to educate myself on these things, it looks like! |
Had a look at your module, looks cool. I go about it in a similar way but may aim is a little bit different atm as I wrote earlier. inside a handle_switch on the avr;
and on the bfin, when receiving a eParamDebug parameter change message;
there could be a race condition here between updating the value on the bfin and outputing the debug message on the avr, but it looks like the values from debug are consistent. |
there is a currently-unused pin between avr32 and bfin just for this purpose. could be used to signal when analysis results are ready.
https://github.com/tehn/aleph/blob/dev/bfin_lib_block/src/gpio.h#L45
https://github.com/tehn/aleph/blob/dev/avr32_lib/conf/aleph_board.h#L143
The text was updated successfully, but these errors were encountered: