10
10
11
11
All rights reserved.
12
12
13
- Redistribution and use in source and binary forms, with or without modification,
13
+ Redistribution and use in source and binary forms, with or without modification,
14
14
are permitted provided that the following conditions are met:
15
15
16
- 1. Redistributions of source code must retain the above copyright notice, this
16
+ 1. Redistributions of source code must retain the above copyright notice, this
17
17
list of conditions and the following disclaimer.
18
- 2. Redistributions in binary form must reproduce the above copyright notice,
19
- this list of conditions and the following disclaimer in the documentation
18
+ 2. Redistributions in binary form must reproduce the above copyright notice,
19
+ this list of conditions and the following disclaimer in the documentation
20
20
and/or other materials provided with the distribution.
21
- 3. Neither the name of the copyright holder nor the names of its contributors
22
- may be used to endorse or promote products derived from this software without
21
+ 3. Neither the name of the copyright holder nor the names of its contributors
22
+ may be used to endorse or promote products derived from this software without
23
23
specific prior written permission.
24
24
25
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
29
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
30
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
25
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
28
+ IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
29
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
30
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
31
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
32
+ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
34
34
OF SUCH DAMAGE.
35
35
*/
36
36
@@ -333,50 +333,50 @@ void adc_tempsensor_vrefint_enable(void);
333
333
void adc_tempsensor_vrefint_disable (void );
334
334
335
335
/* configure ADC resolution */
336
- void adc_resolution_config (uint32_t adc_periph , uint32_t resolution );
336
+ void adc_resolution_config (uint32_t adc_periph , uint32_t resolution );
337
337
/* configure ADC discontinuous mode */
338
- void adc_discontinuous_mode_config (uint32_t adc_periph , uint8_t adc_channel_group , uint8_t length );
338
+ void adc_discontinuous_mode_config (uint32_t adc_periph , uint8_t adc_channel_group , uint8_t length );
339
339
340
340
/* configure the ADC mode */
341
341
void adc_mode_config (uint32_t mode );
342
342
/* enable or disable ADC special function */
343
- void adc_special_function_config (uint32_t adc_periph , uint32_t function , ControlStatus newvalue );
343
+ void adc_special_function_config (uint32_t adc_periph , uint32_t function , ControlStatus newvalue );
344
344
/* configure ADC data alignment */
345
- void adc_data_alignment_config (uint32_t adc_periph , uint32_t data_alignment );
345
+ void adc_data_alignment_config (uint32_t adc_periph , uint32_t data_alignment );
346
346
/* configure the length of regular channel group or inserted channel group */
347
- void adc_channel_length_config (uint32_t adc_periph , uint8_t adc_channel_group , uint32_t length );
347
+ void adc_channel_length_config (uint32_t adc_periph , uint8_t adc_channel_group , uint32_t length );
348
348
/* configure ADC regular channel */
349
- void adc_regular_channel_config (uint32_t adc_periph , uint8_t rank , uint8_t adc_channel , uint32_t sample_time );
349
+ void adc_regular_channel_config (uint32_t adc_periph , uint8_t rank , uint8_t adc_channel , uint32_t sample_time );
350
350
/* configure ADC inserted channel */
351
- void adc_inserted_channel_config (uint32_t adc_periph , uint8_t rank , uint8_t adc_channel , uint32_t sample_time );
351
+ void adc_inserted_channel_config (uint32_t adc_periph , uint8_t rank , uint8_t adc_channel , uint32_t sample_time );
352
352
/* configure ADC inserted channel offset */
353
- void adc_inserted_channel_offset_config (uint32_t adc_periph , uint8_t inserted_channel , uint16_t offset );
353
+ void adc_inserted_channel_offset_config (uint32_t adc_periph , uint8_t inserted_channel , uint16_t offset );
354
354
/* enable ADC external trigger */
355
355
void adc_external_trigger_config (uint32_t adc_periph , uint8_t adc_channel_group , ControlStatus newvalue );
356
356
/* configure ADC external trigger source */
357
357
void adc_external_trigger_source_config (uint32_t adc_periph , uint8_t adc_channel_group , uint32_t external_trigger_source );
358
358
/* enable ADC software trigger */
359
- void adc_software_trigger_enable (uint32_t adc_periph , uint8_t adc_channel_group );
359
+ void adc_software_trigger_enable (uint32_t adc_periph , uint8_t adc_channel_group );
360
360
361
361
/* read ADC regular group data register */
362
362
uint16_t adc_regular_data_read (uint32_t adc_periph );
363
363
/* read ADC inserted group data register */
364
- uint16_t adc_inserted_data_read (uint32_t adc_periph , uint8_t inserted_channel );
364
+ uint16_t adc_inserted_data_read (uint32_t adc_periph , uint8_t inserted_channel );
365
365
/* read the last ADC0 and ADC1 conversion result data in sync mode */
366
366
uint32_t adc_sync_mode_convert_value_read (void );
367
367
368
368
/* get the ADC flag bits */
369
- FlagStatus adc_flag_get (uint32_t adc_periph , uint32_t adc_flag );
369
+ FlagStatus adc_flag_get (uint32_t adc_periph , uint32_t adc_flag );
370
370
/* clear the ADC flag bits */
371
- void adc_flag_clear (uint32_t adc_periph , uint32_t adc_flag );
371
+ void adc_flag_clear (uint32_t adc_periph , uint32_t adc_flag );
372
372
/* get the ADC interrupt bits */
373
- FlagStatus adc_interrupt_flag_get (uint32_t adc_periph , uint32_t adc_interrupt );
373
+ FlagStatus adc_interrupt_flag_get (uint32_t adc_periph , uint32_t adc_interrupt );
374
374
/* clear the ADC flag */
375
- void adc_interrupt_flag_clear (uint32_t adc_periph , uint32_t adc_interrupt );
375
+ void adc_interrupt_flag_clear (uint32_t adc_periph , uint32_t adc_interrupt );
376
376
/* enable ADC interrupt */
377
- void adc_interrupt_enable (uint32_t adc_periph , uint32_t adc_interrupt );
377
+ void adc_interrupt_enable (uint32_t adc_periph , uint32_t adc_interrupt );
378
378
/* disable ADC interrupt */
379
- void adc_interrupt_disable (uint32_t adc_periph , uint32_t adc_interrupt );
379
+ void adc_interrupt_disable (uint32_t adc_periph , uint32_t adc_interrupt );
380
380
381
381
/* configure ADC analog watchdog single channel */
382
382
void adc_watchdog_single_channel_enable (uint32_t adc_periph , uint8_t adc_channel );
@@ -385,10 +385,10 @@ void adc_watchdog_group_channel_enable(uint32_t adc_periph, uint8_t adc_channel_
385
385
/* disable ADC analog watchdog */
386
386
void adc_watchdog_disable (uint32_t adc_periph );
387
387
/* configure ADC analog watchdog threshold */
388
- void adc_watchdog_threshold_config (uint32_t adc_periph , uint16_t low_threshold , uint16_t high_threshold );
388
+ void adc_watchdog_threshold_config (uint32_t adc_periph , uint16_t low_threshold , uint16_t high_threshold );
389
389
390
390
/* configure ADC oversample mode */
391
- void adc_oversample_mode_config (uint32_t adc_periph , uint8_t mode , uint16_t shift , uint8_t ratio );
391
+ void adc_oversample_mode_config (uint32_t adc_periph , uint8_t mode , uint16_t shift , uint8_t ratio );
392
392
/* enable ADC oversample mode */
393
393
void adc_oversample_mode_enable (uint32_t adc_periph );
394
394
/* disable ADC oversample mode */
0 commit comments