Skip to content

Commit b717def

Browse files
committed
changed ADC conversion mode
1 parent ddc72bd commit b717def

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Bootcamp.ioc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#MicroXplorer Configuration settings - do not modify
22
ADC.ClockPrescaler=ADC_CLOCK_ASYNC_DIV1
3-
ADC.ContinuousConvMode=DISABLE
3+
ADC.ContinuousConvMode=ENABLE
44
ADC.DMAContinuousRequests=DISABLE
55
ADC.DataAlign=ADC_DATAALIGN_RIGHT
66
ADC.DiscontinuousConvMode=DISABLE
@@ -106,7 +106,7 @@ ProjectManager.BackupPrevious=false
106106
ProjectManager.CompilerOptimize=2
107107
ProjectManager.ComputerToolchain=false
108108
ProjectManager.CoupleFile=true
109-
ProjectManager.CustomerFirmwarePackage=C\:/Users/ianjf/STM32Cube/Repository/STM32Cube_FW_F0_V1.9.0
109+
ProjectManager.CustomerFirmwarePackage=
110110
ProjectManager.DefaultFWLocation=true
111111
ProjectManager.DeletePrevious=true
112112
ProjectManager.DeviceId=STM32F030RCTx

Src/adc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* inserted by the user or by software development tools
1111
* are owned by their respective copyright owners.
1212
*
13-
* COPYRIGHT(c) 2017 STMicroelectronics
13+
* COPYRIGHT(c) 2018 STMicroelectronics
1414
*
1515
* Redistribution and use in source and binary forms, with or without modification,
1616
* are permitted provided that the following conditions are met:
@@ -63,7 +63,7 @@ void MX_ADC_Init(void)
6363
hadc.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
6464
hadc.Init.LowPowerAutoWait = DISABLE;
6565
hadc.Init.LowPowerAutoPowerOff = DISABLE;
66-
hadc.Init.ContinuousConvMode = DISABLE;
66+
hadc.Init.ContinuousConvMode = ENABLE;
6767
hadc.Init.DiscontinuousConvMode = DISABLE;
6868
hadc.Init.ExternalTrigConv = ADC_SOFTWARE_START;
6969
hadc.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;

0 commit comments

Comments
 (0)