Jump to content

Recommended Posts

Posted

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.  

Posted

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.

Posted

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)? 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...