Skip to content

Commit b6930bf

Browse files
committed
2 parents 6972019 + 4b515fb commit b6930bf

File tree

137 files changed

+10057
-4220
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+10057
-4220
lines changed

Diff for: CI/build/conf/cores_config.json

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"HY_TinySTM103TB",
6767
"MALYANM200_F070CB",
6868
"MALYANM200_F103CB",
69+
"MALYANM300_F070CB",
6970
"MAPLEMINI_F103CB",
7071
"NUCLEO_L031K6",
7172
"NUCLEO_L412KB",
@@ -160,6 +161,7 @@
160161
"HY_TinySTM103TB",
161162
"MALYANM200_F070CB",
162163
"MALYANM200_F103CB",
164+
"MALYANM300_F070CB",
163165
"MAPLEMINI_F103CB",
164166
"NUCLEO_F303K8",
165167
"NUCLEO_G431KB",

Diff for: README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
134134
| :---: | --- | :---: | :--- |
135135
| :green_heart: | [ARMED V1](https://github.com/ktand/Armed) | *1.5.0* | |
136136
| :green_heart: | [EExtruder F030 V1](https://github.com/ghent360/PrntrBoard/tree/tmc2130-redesign/EExtruder) | *1.5.0* | Small companion board for Prntr Board V1 |
137-
| :green_heart: | Malyan M200 V1 | *1.5.0* | |
138-
| :green_heart: | Malyan M200 V2 | *1.5.0* | |
137+
| :green_heart: | [Malyan M200 V1](http://malyansys.com/product/m200-v1/) | *1.5.0* | |
138+
| :green_heart: | [Malyan M200 V2](http://malyansys.com/product/m200-v2/) | *1.5.0* | |
139+
| :yellow_heart: | [Malyan M300](http://malyansys.com/product/m300/) | **1.8.0** | |
139140
| :green_heart: | [Prntr Board V1](https://github.com/ghent360/PrntrBoard) | *1.5.0* | |
140141
| :green_heart: | [RemRam v1](https://github.com/hasenbanck/remram) | *1.4.0* | |
141142
| :green_heart: | [RUMBA32](https://github.com/Aus3D/RUMBA32) | *1.5.0* | |

Diff for: boards.txt

+19-3
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,8 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
13131313
3dprinter.menu.pnum.MALYANM200_F103CB.build.variant=MALYANM200_F103CB
13141314
3dprinter.menu.pnum.MALYANM200_F103CB.build.cmsis_lib_gcc=arm_cortexM3l_math
13151315
3dprinter.menu.pnum.MALYANM200_F103CB.build.startup_file=-DCUSTOM_STARTUP_FILE
1316-
3dprinter.menu.pnum.MALYANM200_F103CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET=0x2000
1316+
3dprinter.menu.pnum.MALYANM200_F103CB.build.flash_offset=0x2000
1317+
3dprinter.menu.pnum.MALYANM200_F103CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset}
13171318

13181319
# MALYANM200_F070CB board
13191320
3dprinter.menu.pnum.MALYANM200_F070CB=Malyan M200 V2
@@ -1323,10 +1324,25 @@ LoRa.menu.upload_method.dfuMethod.upload.tool=stm32CubeProg
13231324
3dprinter.menu.pnum.MALYANM200_F070CB.build.board=MALYANM200_F070CB
13241325
3dprinter.menu.pnum.MALYANM200_F070CB.build.series=STM32F0xx
13251326
3dprinter.menu.pnum.MALYANM200_F070CB.build.product_line=STM32F070xB
1326-
3dprinter.menu.pnum.MALYANM200_F070CB.build.variant=MALYANM200_F070CB
1327+
3dprinter.menu.pnum.MALYANM200_F070CB.build.variant=MALYANMx00_F070CB
13271328
3dprinter.menu.pnum.MALYANM200_F070CB.build.cmsis_lib_gcc=arm_cortexM0l_math
13281329
3dprinter.menu.pnum.MALYANM200_F070CB.build.startup_file=-DCUSTOM_STARTUP_FILE
1329-
3dprinter.menu.pnum.MALYANM200_F070CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET=0x2000
1330+
3dprinter.menu.pnum.MALYANM200_F070CB.build.flash_offset=0x2000
1331+
3dprinter.menu.pnum.MALYANM200_F070CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset}
1332+
1333+
# MALYANM300_F070CB board
1334+
3dprinter.menu.pnum.MALYANM300_F070CB=Malyan M300
1335+
3dprinter.menu.pnum.MALYANM300_F070CB.upload.maximum_size=122880
1336+
3dprinter.menu.pnum.MALYANM300_F070CB.upload.maximum_data_size=15168
1337+
3dprinter.menu.pnum.MALYANM300_F070CB.build.mcu=cortex-m0
1338+
3dprinter.menu.pnum.MALYANM300_F070CB.build.board=MALYANM300_F070CB
1339+
3dprinter.menu.pnum.MALYANM300_F070CB.build.series=STM32F0xx
1340+
3dprinter.menu.pnum.MALYANM300_F070CB.build.product_line=STM32F070xB
1341+
3dprinter.menu.pnum.MALYANM300_F070CB.build.variant=MALYANMx00_F070CB
1342+
3dprinter.menu.pnum.MALYANM300_F070CB.build.cmsis_lib_gcc=arm_cortexM0l_math
1343+
3dprinter.menu.pnum.MALYANM300_F070CB.build.startup_file=-DCUSTOM_STARTUP_FILE
1344+
3dprinter.menu.pnum.MALYANM300_F070CB.build.flash_offset=0x2000
1345+
3dprinter.menu.pnum.MALYANM300_F070CB.build.extra_flags=-D{build.product_line} {build.enable_usb} {build.xSerial} -DVECT_TAB_OFFSET={build.flash_offset}
13301346

13311347
# VAkE v1.0
13321348
3dprinter.menu.pnum.VAKE_F446VE=VAkE v1.0

Diff for: cores/arduino/pins_arduino.h

+9-3
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,20 @@ PinName analogInputToPinName(uint32_t pin);
307307

308308
// Default Definitions, could be redefined in variant.h
309309
#ifndef ADC_RESOLUTION
310-
#define ADC_RESOLUTION 12
310+
#define ADC_RESOLUTION 10
311311
#endif
312-
#ifndef DACC_RESOLUTION
312+
313313
#define DACC_RESOLUTION 12
314-
#endif
314+
315315
#ifndef PWM_RESOLUTION
316316
#define PWM_RESOLUTION 8
317317
#endif
318+
319+
_Static_assert((ADC_RESOLUTION > 0) &&(ADC_RESOLUTION <= 32),
320+
"ADC_RESOLUTION must be 0 < x <= 32!");
321+
_Static_assert((PWM_RESOLUTION > 0) &&(PWM_RESOLUTION <= 32),
322+
"PWM_RESOLUTION must be 0 < x <= 32!");
323+
318324
#ifndef PWM_FREQUENCY
319325
#define PWM_FREQUENCY 1000
320326
#endif

Diff for: cores/arduino/stm32/analog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ extern "C" {
5151
/* Exported functions ------------------------------------------------------- */
5252
void dac_write_value(PinName pin, uint32_t value, uint8_t do_init);
5353
void dac_stop(PinName pin);
54-
uint16_t adc_read_value(PinName pin);
54+
uint16_t adc_read_value(PinName pin, uint32_t resolution);
5555
void pwm_start(PinName pin, uint32_t clock_freq, uint32_t value, TimerCompareFormat_t resolution);
5656
void pwm_stop(PinName pin);
5757
uint32_t get_pwm_channel(PinName pin);

Diff for: cores/arduino/wiring_analog.c

+96-9
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,104 @@ extern "C" {
2929
uint32_t g_anOutputPinConfigured[MAX_NB_PORT] = {0};
3030
#endif
3131

32-
static int _readResolution = 10;
33-
int _writeResolution = PWM_RESOLUTION;
32+
#if !defined(ADC_RESOLUTION_16B)
33+
#define MAX_ADC_RESOLUTION 12
34+
#else
35+
#define MAX_ADC_RESOLUTION 16
36+
#endif
37+
#define MAX_PWM_RESOLUTION 16
38+
39+
static int _readResolution = ADC_RESOLUTION;
40+
static int _internalReadResolution =
41+
#if ADC_RESOLUTION > MAX_ADC_RESOLUTION
42+
MAX_ADC_RESOLUTION
43+
#else
44+
45+
#ifdef ADC_RESOLUTION_12B
46+
47+
#if ADC_RESOLUTION <= 6 && defined(ADC_RESOLUTION_6B)
48+
6
49+
#elif ADC_RESOLUTION <= 8
50+
8
51+
#elif ADC_RESOLUTION <= 10
52+
10
53+
#elif ADC_RESOLUTION <= 12
54+
12
55+
#elif ADC_RESOLUTION <= 14 && defined(ADC_RESOLUTION_14B)
56+
14
57+
#elif defined(ADC_RESOLUTION_16B)
58+
16
59+
#endif
60+
#else /* ADC_RESOLUTION_12B */
61+
12
62+
#endif /* ADC_RESOLUTION_12B */
63+
#endif /* ADC_RESOLUTION > MAX_ADC_RESOLUTION */
64+
;
65+
66+
static int _writeResolution = PWM_RESOLUTION;
67+
static int _internalWriteResolution =
68+
#if PWM_RESOLUTION > MAX_PWM_RESOLUTION
69+
MAX_PWM_RESOLUTION
70+
#else
71+
PWM_RESOLUTION
72+
#endif
73+
;
74+
3475
static uint32_t _writeFreq = PWM_FREQUENCY;
3576

3677
void analogReadResolution(int res)
3778
{
38-
_readResolution = res;
79+
if ((res > 0) && (res <= 32)) {
80+
_readResolution = res;
81+
_internalReadResolution = _readResolution;
82+
if (_readResolution > MAX_ADC_RESOLUTION) {
83+
_internalReadResolution = MAX_ADC_RESOLUTION;
84+
} else {
85+
#ifdef ADC_RESOLUTION_12B
86+
#ifdef ADC_RESOLUTION_6B
87+
if (_internalReadResolution <= 6) {
88+
_internalReadResolution = 6;
89+
} else
90+
#endif
91+
if (_internalReadResolution <= 8) {
92+
_internalReadResolution = 8;
93+
} else if (_internalReadResolution <= 10) {
94+
_internalReadResolution = 10;
95+
} else if (_internalReadResolution <= 12) {
96+
_internalReadResolution = 12;
97+
}
98+
#ifdef ADC_RESOLUTION_14B
99+
else if (_internalReadResolution <= 14) {
100+
_internalReadResolution = 14;
101+
}
102+
#endif
103+
#ifdef ADC_RESOLUTION_16B
104+
else if (_internalReadResolution <= 16) {
105+
_internalReadResolution = 16;
106+
}
107+
#endif
108+
#else
109+
/* STM32F1xx have no ADC_RESOLUTION_xB */
110+
_internalReadResolution = 12;
111+
#endif
112+
}
113+
} else {
114+
Error_Handler();
115+
}
39116
}
40117

41118
void analogWriteResolution(int res)
42119
{
43-
_writeResolution = res;
120+
if ((res > 0) && (res <= 32)) {
121+
_writeResolution = res;
122+
if (_writeResolution > MAX_ADC_RESOLUTION) {
123+
_internalWriteResolution = MAX_ADC_RESOLUTION;
124+
} else {
125+
_internalWriteResolution = _writeResolution;
126+
}
127+
} else {
128+
Error_Handler();
129+
}
44130
}
45131

46132
void analogWriteFrequency(uint32_t freq)
@@ -67,16 +153,16 @@ void analogReference(eAnalogReference ulMode)
67153
UNUSED(ulMode);
68154
}
69155

70-
//perform the read operation on the selected analog pin.
71-
//the initialization of the analog PIN is done through this function
156+
// Perform the read operation on the selected analog pin.
157+
// the initialization of the analog PIN is done through this function
72158
uint32_t analogRead(uint32_t ulPin)
73159
{
74160
uint32_t value = 0;
75161
#if defined(HAL_ADC_MODULE_ENABLED) && !defined(HAL_ADC_MODULE_ONLY)
76162
PinName p = analogInputToPinName(ulPin);
77163
if (p != NC) {
78-
value = adc_read_value(p);
79-
value = mapResolution(value, ADC_RESOLUTION, _readResolution);
164+
value = adc_read_value(p, _internalReadResolution);
165+
value = mapResolution(value, _internalReadResolution, _readResolution);
80166
}
81167
#else
82168
UNUSED(ulPin);
@@ -115,7 +201,8 @@ void analogWrite(uint32_t ulPin, uint32_t ulValue)
115201
if (is_pin_configured(p, g_anOutputPinConfigured) == false) {
116202
set_pin_configured(p, g_anOutputPinConfigured);
117203
}
118-
pwm_start(p, _writeFreq, ulValue, _writeResolution);
204+
ulValue = mapResolution(ulValue, _writeResolution, _internalWriteResolution);
205+
pwm_start(p, _writeFreq, ulValue, _internalWriteResolution);
119206
} else
120207
#endif /* HAL_TIM_MODULE_ENABLED && !HAL_TIM_MODULE_ONLY */
121208
{

Diff for: libraries/SrcWrapper/src/stm32/analog.cpp

+31-2
Original file line numberDiff line numberDiff line change
@@ -758,9 +758,10 @@ void HAL_ADC_MspDeInit(ADC_HandleTypeDef *hadc)
758758
/**
759759
* @brief This function will set the ADC to the required value
760760
* @param pin : the pin to use
761+
* @param resolution : resolution for converted data: 6/8/10/12/14/16
761762
* @retval the value of the adc
762763
*/
763-
uint16_t adc_read_value(PinName pin)
764+
uint16_t adc_read_value(PinName pin, uint32_t resolution)
764765
{
765766
ADC_HandleTypeDef AdcHandle = {};
766767
ADC_ChannelConfTypeDef AdcChannelConf = {};
@@ -794,7 +795,35 @@ uint16_t adc_read_value(PinName pin)
794795
AdcHandle.Init.ClockPrescaler = ADC_CLOCK_DIV; /* (A)synchronous clock mode, input ADC clock divided */
795796
#endif
796797
#ifdef ADC_RESOLUTION_12B
797-
AdcHandle.Init.Resolution = ADC_RESOLUTION_12B; /* 12-bit resolution for converted data */
798+
switch (resolution) {
799+
#ifdef ADC_RESOLUTION_6B
800+
case 6:
801+
AdcHandle.Init.Resolution = ADC_RESOLUTION_6B; /* resolution for converted data */
802+
break;
803+
#endif
804+
case 8:
805+
AdcHandle.Init.Resolution = ADC_RESOLUTION_8B; /* resolution for converted data */
806+
break;
807+
case 10:
808+
AdcHandle.Init.Resolution = ADC_RESOLUTION_10B; /* resolution for converted data */
809+
break;
810+
case 12:
811+
default:
812+
AdcHandle.Init.Resolution = ADC_RESOLUTION_12B; /* resolution for converted data */
813+
break;
814+
#ifdef ADC_RESOLUTION_14B
815+
case 14:
816+
AdcHandle.Init.Resolution = ADC_RESOLUTION_14B; /* resolution for converted data */
817+
break;
818+
#endif
819+
#ifdef ADC_RESOLUTION_16B
820+
case 16:
821+
AdcHandle.Init.Resolution = ADC_RESOLUTION_16B; /* resolution for converted data */
822+
break;
823+
#endif
824+
}
825+
#else
826+
UNUSED(resolution);
798827
#endif
799828
#ifdef ADC_DATAALIGN_RIGHT
800829
AdcHandle.Init.DataAlign = ADC_DATAALIGN_RIGHT; /* Right-alignment for converted data */

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f401xc.h

-4
Original file line numberDiff line numberDiff line change
@@ -8408,10 +8408,6 @@ typedef struct
84088408
((INSTANCE) == TIM4) || \
84098409
((INSTANCE) == TIM5) || \
84108410
((INSTANCE) == TIM9))
8411-
8412-
/****************** TIM Instances : supporting synchronization ****************/
8413-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
8414-
84158411
/********************** TIM Instances : 32 bit Counter ************************/
84168412
#define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)(((INSTANCE) == TIM2) || \
84178413
((INSTANCE) == TIM5))

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f401xe.h

-4
Original file line numberDiff line numberDiff line change
@@ -8408,10 +8408,6 @@ typedef struct
84088408
((INSTANCE) == TIM4) || \
84098409
((INSTANCE) == TIM5) || \
84108410
((INSTANCE) == TIM9))
8411-
8412-
/****************** TIM Instances : supporting synchronization ****************/
8413-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
8414-
84158411
/********************** TIM Instances : 32 bit Counter ************************/
84168412
#define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)(((INSTANCE) == TIM2) || \
84178413
((INSTANCE) == TIM5))

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f405xx.h

-4
Original file line numberDiff line numberDiff line change
@@ -14004,10 +14004,6 @@ typedef struct
1400414004
((INSTANCE) == TIM8) || \
1400514005
((INSTANCE) == TIM9) || \
1400614006
((INSTANCE) == TIM12))
14007-
14008-
/****************** TIM Instances : supporting synchronization ****************/
14009-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
14010-
1401114007
/********************** TIM Instances : 32 bit Counter ************************/
1401214008
#define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)(((INSTANCE) == TIM2) || \
1401314009
((INSTANCE) == TIM5))

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h

+2-6
Original file line numberDiff line numberDiff line change
@@ -13576,7 +13576,7 @@ typedef struct
1357613576
#define ETH_DMASR_TPS_Reading ETH_DMASR_TPS_Reading_Msk /* Running - reading the data from host memory */
1357713577
#define ETH_DMASR_TPS_Suspended_Pos (21U)
1357813578
#define ETH_DMASR_TPS_Suspended_Msk (0x3UL << ETH_DMASR_TPS_Suspended_Pos) /*!< 0x00600000 */
13579-
#define ETH_DMASR_TPS_Suspended ETH_DMASR_TPS_Suspended_Msk /* Suspended - Tx Descriptor unavailabe */
13579+
#define ETH_DMASR_TPS_Suspended ETH_DMASR_TPS_Suspended_Msk /* Suspended - Tx Descriptor unavailable */
1358013580
#define ETH_DMASR_TPS_Closing_Pos (20U)
1358113581
#define ETH_DMASR_TPS_Closing_Msk (0x7UL << ETH_DMASR_TPS_Closing_Pos) /*!< 0x00700000 */
1358213582
#define ETH_DMASR_TPS_Closing ETH_DMASR_TPS_Closing_Msk /* Running - closing Rx descriptor */
@@ -13598,7 +13598,7 @@ typedef struct
1359813598
#define ETH_DMASR_RPS_Closing ETH_DMASR_RPS_Closing_Msk /* Running - closing descriptor */
1359913599
#define ETH_DMASR_RPS_Queuing_Pos (17U)
1360013600
#define ETH_DMASR_RPS_Queuing_Msk (0x7UL << ETH_DMASR_RPS_Queuing_Pos) /*!< 0x000E0000 */
13601-
#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the recieve frame into host memory */
13601+
#define ETH_DMASR_RPS_Queuing ETH_DMASR_RPS_Queuing_Msk /* Running - queuing the receive frame into host memory */
1360213602
#define ETH_DMASR_NIS_Pos (16U)
1360313603
#define ETH_DMASR_NIS_Msk (0x1UL << ETH_DMASR_NIS_Pos) /*!< 0x00010000 */
1360413604
#define ETH_DMASR_NIS ETH_DMASR_NIS_Msk /* Normal interrupt summary */
@@ -15295,10 +15295,6 @@ typedef struct
1529515295
((INSTANCE) == TIM8) || \
1529615296
((INSTANCE) == TIM9) || \
1529715297
((INSTANCE) == TIM12))
15298-
15299-
/****************** TIM Instances : supporting synchronization ****************/
15300-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
15301-
1530215298
/********************** TIM Instances : 32 bit Counter ************************/
1530315299
#define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)(((INSTANCE) == TIM2) || \
1530415300
((INSTANCE) == TIM5))

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f410cx.h

-3
Original file line numberDiff line numberDiff line change
@@ -7132,9 +7132,6 @@ typedef struct
71327132
((INSTANCE) == TIM9) || \
71337133
((INSTANCE) == TIM11))
71347134

7135-
/****************** TIM Instances : supporting synchronization ****************/
7136-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
7137-
71387135
/************* TIM Instances : at least 1 capture/compare channel *************/
71397136
#define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
71407137
((INSTANCE) == TIM5) || \

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f410rx.h

-3
Original file line numberDiff line numberDiff line change
@@ -7136,9 +7136,6 @@ typedef struct
71367136
((INSTANCE) == TIM9) || \
71377137
((INSTANCE) == TIM11))
71387138

7139-
/****************** TIM Instances : supporting synchronization ****************/
7140-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
7141-
71427139
/************* TIM Instances : at least 1 capture/compare channel *************/
71437140
#define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
71447141
((INSTANCE) == TIM5) || \

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f410tx.h

-3
Original file line numberDiff line numberDiff line change
@@ -7080,9 +7080,6 @@ typedef struct
70807080
((INSTANCE) == TIM9) || \
70817081
((INSTANCE) == TIM11))
70827082

7083-
/****************** TIM Instances : supporting synchronization ****************/
7084-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
7085-
70867083
/************* TIM Instances : at least 1 capture/compare channel *************/
70877084
#define IS_TIM_CC1_INSTANCE(INSTANCE) (((INSTANCE) == TIM1) || \
70887085
((INSTANCE) == TIM5) || \

Diff for: system/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f411xe.h

-4
Original file line numberDiff line numberDiff line change
@@ -8443,10 +8443,6 @@ typedef struct
84438443
((INSTANCE) == TIM4) || \
84448444
((INSTANCE) == TIM5) || \
84458445
((INSTANCE) == TIM9))
8446-
8447-
/****************** TIM Instances : supporting synchronization ****************/
8448-
#define IS_TIM_SYNCHRO_INSTANCE(INSTANCE) IS_TIM_MASTER_INSTANCE(INSTANCE)
8449-
84508446
/********************** TIM Instances : 32 bit Counter ************************/
84518447
#define IS_TIM_32B_COUNTER_INSTANCE(INSTANCE)(((INSTANCE) == TIM2) || \
84528448
((INSTANCE) == TIM5))

0 commit comments

Comments
 (0)