[En-Nut-Discussion] Designing Interfaces, e.g. DMA

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Jul 3 13:36:03 CEST 2012

>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:

    Harald> Hi Ulrich, Hi Uwe,

    Harald> On 02.07.2012 22:00, Ulrich Prinz wrote:
    >> Am 29.06.2012 11:20, schrieb Uwe Bonnes:
    >>> void DMA_Enable(uint8_t ch); void DMA_Disable(uint8_t ch);

    Harald> I'm still not very familiar with LPC and STM32 chips. Still I'm
    Harald> wondering, who would want to enable or disable DMA.

    Harald> Are these functions usable by application code or are they just
    Harald> for drivers?

The first use case is for drivers internal. So no need for a public
interface. Larger memcpy could also be implemented with DMA. But probably
this is also architecture specific. So DMA was no good example. But maybe
ADC is an better example. But I will come up, when time allows with
something line stm32can.h modelled after atcan.h and stm32adc.h modelled
after adc.h  and at91_adc.h, as a base for discussions.


Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------

More information about the En-Nut-Discussion mailing list