Skip to content

Commit c32c2c7

Browse files
authoredApr 21, 2020
Fix DAC for F103RF and RG (#1040)
* Enable DAC for F103RF and RG
1 parent ab99a7b commit c32c2c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎variants/Generic_F103Rx/variant.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,15 @@ extern "C" {
119119
// Define here Serial instance number to map on Serial generic name
120120
#define SERIAL_UART_INSTANCE 1
121121

122-
/* Extra HAL modules */
123-
#ifdef STM32F103xE
124-
#define HAL_DAC_MODULE_ENABLED
125-
#endif
126-
127122
// Default pin used for 'Serial1' instance
128123
#define PIN_SERIAL_RX PA10
129124
#define PIN_SERIAL_TX PA9
130125

126+
/* Extra HAL modules */
127+
#if defined(STM32F103xE) || defined(STM32F103xG)
128+
#define HAL_DAC_MODULE_ENABLED
129+
#endif
130+
131131
#ifdef __cplusplus
132132
} // extern "C"
133133
#endif

0 commit comments

Comments
 (0)
Please sign in to comment.