Duggle Posted March 9, 2014 Report Share Posted March 9, 2014 I'm considering an interesting midification. It requires 3 channels of audio bandwidth ADC. I'm using an STM32F103RE soldered to a low cost SMD adaptor PCB. Is it sufficient to #define MIOS32_AIN_CHANNEL_MASK 0 then I am free to call the ADC_*() and DMA_*() peripheral support routines and setup the hardware particular to my needs and define my own interrupt handlers in my own code? I'd also need to do similar thing (i.e custom code overriding MIOS32 functionality) with the 2 channels of DAC as well as a timer/PWM channel. The application has no LCD (I'll use a separate core running NG for the user interface), no SRIO, but will use 2 UARTS for MIDI. The hardware allocations I'll check myself, but I'm mainly asking about how to override/replace the existing software functionality of MIOS32 in those peripherals I'll be using. Quote Link to comment Share on other sites More sharing options...
TK. Posted March 9, 2014 Report Share Posted March 9, 2014 It's better to add #define MIOS32_DONT_USE_AIN 1 to the mios32_config.h file, this should disable the MIOS32_AIN code and calls to MIOS32_AIN driver (e.g. in main.c) completely. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Duggle Posted March 9, 2014 Author Report Share Posted March 9, 2014 That's great, just what I'm after, thanks. I take it that the MIOS32_DONT_USE_* are only referenced in the sources they apply to. Are they listed together anywhere (presumably encased by comment)? Quote Link to comment Share on other sites More sharing options...
TK. Posted March 9, 2014 Report Share Posted March 9, 2014 Yes, the #defines are listed here: http://svnmios.midibox.org/filedetails.php?repname=svn.mios32&path=%2Ftrunk%2Fdoc%2Fmios32%2FMIOS32_CONFIG.txt Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.