Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

ADC Libraries #11

Closed
palmerr23 opened this issue Apr 26, 2017 · 4 comments
Closed

ADC Libraries #11

palmerr23 opened this issue Apr 26, 2017 · 4 comments

Comments

@palmerr23
Copy link

palmerr23 commented Apr 26, 2017

Frederic,

I've been testing the advanced ADC\DAC modes (beyond single conversion, polling) using the templates from STM32Cube_FW_F4_V1.15.0\Projects\STM324x9I_EVAL\Examples\ADC\ and \DAC\

When using these other analog routines, HAL_ADC_MspInit() etc need to be customised for each configuration.

Now I'm trying out the dual-interleaved mode, it has become clear that the code in analog.c is just an initial test.

As HAL_ADC_MspInit() needs to be customised for each configuration, I'm looking at hiding the MSP_Init functions in analog.c at the system level and moving the code up to a library. The Init functions can then be customised for each mode.

When I tried this, other functions break - like dac_stop() and pwm_stop(). I think I'll be able to leave them in analog.c

Give me a few days and I'll have something workable.

Single-Polling and Single-interrupt are working already, using pretty much standard code from the Cube libraries, next up is dual-interleaved

Richard

@palmerr23 palmerr23 changed the title Analog.c - g_current_pin only initialised by high level functions ADC Libraries May 5, 2017
@palmerr23
Copy link
Author

palmerr23 commented May 6, 2017

Frederic,

I've tested a number of ADC modes - polling, interrupt, DMA.

Example files are in https://github.com/palmerr23/Black-F407VET6-cube/tree/master/examples

Currently debugging Dual Mode Interleaved (edit: now working).

@fpistm
Copy link
Owner

fpistm commented May 24, 2017

Proposed to move on the new repo Arduino_Core_STM32 as this one is deprecated. (same code).

@palmerr23
Copy link
Author

Frederic, Fine by me. I'm shifting across to the new core also.

@fpistm
Copy link
Owner

fpistm commented Jun 2, 2017

This issue was moved to stm32duino/Arduino_Core_STM32#5

@fpistm fpistm closed this as completed Jun 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants