Dont know if this will show up twice but nothing happend when I clicked - submit -
#define __HAL_RCC_SYSCFG_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_SYSCFGEN))
#define __HAL_RCC_ADC1_CLK_DISABLE() (RCC->APB2ENR &= ~(RCC_APB2ENR_ADC1EN))
#define __HAL_RCC_TIM1_CLK_DISABLE() (RCC->APB2ENR ...
Search found 5 matches
- Sat Aug 28, 2021 4:15 pm
- Forum: General discussion
- Topic: STM32F Arduino register setup
- Replies: 7
- Views: 7793
- Sat Aug 28, 2021 1:57 pm
- Forum: General discussion
- Topic: STM32F Arduino register setup
- Replies: 7
- Views: 7793
Re: STM32F Arduino register setup
Thanks I will do some searching.
- Sat Aug 28, 2021 1:44 pm
- Forum: General discussion
- Topic: STM32F Arduino register setup
- Replies: 7
- Views: 7793
Re: STM32F Arduino register setup
Thanks ... But.
This code:
Must somehow do this:
How is the HAL_ instruction converted to set the ADON bit in the ADC1 Register?
This code:
Code: Select all
HAL_ADC_MODULE_ENABLED
Code: Select all
ADC1->CR2 |= 1 << 0; // ADON =1 enable ADC1
- Sat Aug 28, 2021 1:21 pm
- Forum: General discussion
- Topic: STM32F Arduino register setup
- Replies: 7
- Views: 7793
Re: STM32F Arduino register setup
Where is adc_read_value();
This is the Library path on my pc.
This is the Library path on my pc.
Code: Select all
C:\Users\me\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.0.0\cores\arduino
- Sat Aug 28, 2021 1:01 pm
- Forum: General discussion
- Topic: STM32F Arduino register setup
- Replies: 7
- Views: 7793
STM32F Arduino register setup
Arduino with the Official ST micro core.
I would like to know where the actual registers is setup.
This is a small snippet of code in "wiring_analog.c"
#if defined(HAL_ADC_MODULE_ENABLED) && !defined(HAL_ADC_MODULE_ONLY)
PinName p = analogInputToPinName(ulPin);
if (p != NC) {
value = adc_read ...
I would like to know where the actual registers is setup.
This is a small snippet of code in "wiring_analog.c"
#if defined(HAL_ADC_MODULE_ENABLED) && !defined(HAL_ADC_MODULE_ONLY)
PinName p = analogInputToPinName(ulPin);
if (p != NC) {
value = adc_read ...