Skip to content

Commit 838a69d

Browse files
jeromecoutantCruz Monrreal II
authored andcommitted
STM32 : update LPTICKER_DELAY_TICKS value
- decreased to 1 for low freq targets - removed for high freq targets - not changed for targets with LPTIM
1 parent c158112 commit 838a69d

File tree

1 file changed

+136
-6
lines changed

1 file changed

+136
-6
lines changed

targets/targets.json

Lines changed: 136 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
"public": false,
730730
"extra_labels": ["STM"],
731731
"supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"],
732-
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2", "LPTICKER_DELAY_TICKS=3"],
732+
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
733733
"config": {
734734
"lse_available": {
735735
"help": "Define if a Low Speed External xtal (LSE) is available on the board (0 = No, 1 = Yes). If Yes, the LSE will be used to clock the RTC, LPUART, ... otherwise the Low Speed Internal clock (LSI) will be used",
@@ -874,6 +874,11 @@
874874
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
875875
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
876876
"macro_name": "CLOCK_SOURCE"
877+
},
878+
"lpticker_delay_ticks": {
879+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
880+
"value": 1,
881+
"macro_name": "LPTICKER_DELAY_TICKS"
877882
}
878883
},
879884
"detect_code": ["0755"],
@@ -892,6 +897,11 @@
892897
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
893898
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
894899
"macro_name": "CLOCK_SOURCE"
900+
},
901+
"lpticker_delay_ticks": {
902+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
903+
"value": 1,
904+
"macro_name": "LPTICKER_DELAY_TICKS"
895905
}
896906
},
897907
"detect_code": ["0730"],
@@ -910,6 +920,11 @@
910920
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
911921
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
912922
"macro_name": "CLOCK_SOURCE"
923+
},
924+
"lpticker_delay_ticks": {
925+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
926+
"value": 1,
927+
"macro_name": "LPTICKER_DELAY_TICKS"
913928
}
914929
},
915930
"detect_code": ["0750"],
@@ -1108,6 +1123,11 @@
11081123
"lpticker_lptim": {
11091124
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
11101125
"value": 1
1126+
},
1127+
"lpticker_delay_ticks": {
1128+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1129+
"value": 3,
1130+
"macro_name": "LPTICKER_DELAY_TICKS"
11111131
}
11121132
},
11131133
"detect_code": ["0744"],
@@ -1233,6 +1253,11 @@
12331253
"lpticker_lptim": {
12341254
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
12351255
"value": 1
1256+
},
1257+
"lpticker_delay_ticks": {
1258+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1259+
"value": 3,
1260+
"macro_name": "LPTICKER_DELAY_TICKS"
12361261
}
12371262
},
12381263
"detect_code": ["0743"],
@@ -1255,6 +1280,11 @@
12551280
"lpticker_lptim": {
12561281
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
12571282
"value": 1
1283+
},
1284+
"lpticker_delay_ticks": {
1285+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1286+
"value": 3,
1287+
"macro_name": "LPTICKER_DELAY_TICKS"
12581288
}
12591289
},
12601290
"detect_code": ["0743"],
@@ -1407,13 +1437,18 @@
14071437
"lpticker_lptim": {
14081438
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14091439
"value": 1
1440+
},
1441+
"lpticker_delay_ticks": {
1442+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1443+
"value": 3,
1444+
"macro_name": "LPTICKER_DELAY_TICKS"
14101445
}
14111446
},
14121447
"macros_add": ["USBHOST_OTHER"],
14131448
"supported_form_factors": ["ARDUINO"],
14141449
"detect_code": ["0816"],
1415-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14161450
"features": ["LWIP"],
1451+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14171452
"release_versions": ["2", "5"],
14181453
"device_name": "STM32F746ZG",
14191454
"bootloader_supported": true,
@@ -1439,13 +1474,18 @@
14391474
"lpticker_lptim": {
14401475
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14411476
"value": 1
1477+
},
1478+
"lpticker_delay_ticks": {
1479+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1480+
"value": 3,
1481+
"macro_name": "LPTICKER_DELAY_TICKS"
14421482
}
14431483
},
14441484
"macros_add": ["TRANSACTION_QUEUE_SIZE_SPI=2", "USBHOST_OTHER", "MBEDTLS_CONFIG_HW_SUPPORT"],
14451485
"supported_form_factors": ["ARDUINO"],
14461486
"detect_code": ["0819"],
1447-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14481487
"features": ["LWIP"],
1488+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14491489
"release_versions": ["2", "5"],
14501490
"device_name": "STM32F756ZG",
14511491
"overrides": {
@@ -1474,13 +1514,18 @@
14741514
"lpticker_lptim": {
14751515
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14761516
"value": 1
1517+
},
1518+
"lpticker_delay_ticks": {
1519+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1520+
"value": 3,
1521+
"macro_name": "LPTICKER_DELAY_TICKS"
14771522
}
14781523
},
14791524
"supported_form_factors": ["ARDUINO"],
14801525
"macros_add": ["USBHOST_OTHER"],
14811526
"detect_code": ["0818"],
1482-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14831527
"features": ["LWIP"],
1528+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14841529
"release_versions": ["2", "5"],
14851530
"device_name": "STM32F767ZI",
14861531
"bootloader_supported": true,
@@ -1504,6 +1549,11 @@
15041549
"lpticker_lptim": {
15051550
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15061551
"value": 1
1552+
},
1553+
"lpticker_delay_ticks": {
1554+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1555+
"value": 3,
1556+
"macro_name": "LPTICKER_DELAY_TICKS"
15071557
}
15081558
},
15091559
"detect_code": ["0780"],
@@ -1527,6 +1577,11 @@
15271577
"lpticker_lptim": {
15281578
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15291579
"value": 1
1580+
},
1581+
"lpticker_delay_ticks": {
1582+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1583+
"value": 3,
1584+
"macro_name": "LPTICKER_DELAY_TICKS"
15301585
}
15311586
},
15321587
"detect_code": ["0790"],
@@ -1549,6 +1604,11 @@
15491604
"lpticker_lptim": {
15501605
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15511606
"value": 1
1607+
},
1608+
"lpticker_delay_ticks": {
1609+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1610+
"value": 3,
1611+
"macro_name": "LPTICKER_DELAY_TICKS"
15521612
}
15531613
},
15541614
"detect_code": ["0715"],
@@ -1571,6 +1631,11 @@
15711631
"lpticker_lptim": {
15721632
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15731633
"value": 1
1634+
},
1635+
"lpticker_delay_ticks": {
1636+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1637+
"value": 3,
1638+
"macro_name": "LPTICKER_DELAY_TICKS"
15741639
}
15751640
},
15761641
"detect_code": ["0760"],
@@ -1588,6 +1653,11 @@
15881653
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
15891654
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
15901655
"macro_name": "CLOCK_SOURCE"
1656+
},
1657+
"lpticker_delay_ticks": {
1658+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
1659+
"value": 1,
1660+
"macro_name": "LPTICKER_DELAY_TICKS"
15911661
}
15921662
},
15931663
"detect_code": ["0710"],
@@ -1609,6 +1679,11 @@
16091679
"lpticker_lptim": {
16101680
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
16111681
"value": 1
1682+
},
1683+
"lpticker_delay_ticks": {
1684+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1685+
"value": 3,
1686+
"macro_name": "LPTICKER_DELAY_TICKS"
16121687
}
16131688
},
16141689
"detect_code": ["0770"],
@@ -1631,6 +1706,11 @@
16311706
"lpticker_lptim": {
16321707
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
16331708
"value": 1
1709+
},
1710+
"lpticker_delay_ticks": {
1711+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1712+
"value": 3,
1713+
"macro_name": "LPTICKER_DELAY_TICKS"
16341714
}
16351715
},
16361716
"detect_code": ["0779"],
@@ -1674,6 +1754,11 @@
16741754
"lpticker_lptim": {
16751755
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
16761756
"value": 1
1757+
},
1758+
"lpticker_delay_ticks": {
1759+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1760+
"value": 3,
1761+
"macro_name": "LPTICKER_DELAY_TICKS"
16771762
}
16781763
},
16791764
"detect_code": ["0765"],
@@ -1715,6 +1800,11 @@
17151800
"lpticker_lptim": {
17161801
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
17171802
"value": 1
1803+
},
1804+
"lpticker_delay_ticks": {
1805+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1806+
"value": 3,
1807+
"macro_name": "LPTICKER_DELAY_TICKS"
17181808
}
17191809
},
17201810
"detect_code": ["0827"],
@@ -1923,6 +2013,11 @@
19232013
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19242014
"value": 1
19252015

2016+
},
2017+
"lpticker_delay_ticks": {
2018+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2019+
"value": 3,
2020+
"macro_name": "LPTICKER_DELAY_TICKS"
19262021
}
19272022
},
19282023
"overrides": {"lse_available": 0},
@@ -1945,6 +2040,11 @@
19452040
"lpticker_lptim": {
19462041
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19472042
"value": 1
2043+
},
2044+
"lpticker_delay_ticks": {
2045+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2046+
"value": 3,
2047+
"macro_name": "LPTICKER_DELAY_TICKS"
19482048
}
19492049
},
19502050
"detect_code": ["0833"],
@@ -1980,12 +2080,17 @@
19802080
"lpticker_lptim": {
19812081
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19822082
"value": 1
2083+
},
2084+
"lpticker_delay_ticks": {
2085+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2086+
"value": 3,
2087+
"macro_name": "LPTICKER_DELAY_TICKS"
19832088
}
19842089
},
19852090
"detect_code": ["0815"],
19862091
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1987-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
19882092
"features": ["LWIP"],
2093+
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
19892094
"release_versions": ["2", "5"],
19902095
"device_name": "STM32F746NG",
19912096
"overrides": {
@@ -2010,12 +2115,17 @@
20102115
"lpticker_lptim": {
20112116
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
20122117
"value": 1
2118+
},
2119+
"lpticker_delay_ticks": {
2120+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2121+
"value": 3,
2122+
"macro_name": "LPTICKER_DELAY_TICKS"
20132123
}
20142124
},
20152125
"detect_code": ["0817"],
20162126
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
2017-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
20182127
"features": ["LWIP"],
2128+
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
20192129
"release_versions": ["2", "5"],
20202130
"device_name": "STM32F769NI",
20212131
"overrides": {
@@ -2035,6 +2145,11 @@
20352145
"lpticker_lptim": {
20362146
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
20372147
"value": 1
2148+
},
2149+
"lpticker_delay_ticks": {
2150+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2151+
"value": 3,
2152+
"macro_name": "LPTICKER_DELAY_TICKS"
20382153
}
20392154
},
20402155
"supported_form_factors": ["ARDUINO"],
@@ -2058,6 +2173,11 @@
20582173
"lpticker_lptim": {
20592174
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
20602175
"value": 1
2176+
},
2177+
"lpticker_delay_ticks": {
2178+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2179+
"value": 3,
2180+
"macro_name": "LPTICKER_DELAY_TICKS"
20612181
}
20622182
},
20632183
"detect_code": ["0820"],
@@ -4136,6 +4256,11 @@
41364256
"lpticker_lptim": {
41374257
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
41384258
"value": 1
4259+
},
4260+
"lpticker_delay_ticks": {
4261+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
4262+
"value": 3,
4263+
"macro_name": "LPTICKER_DELAY_TICKS"
41394264
}
41404265
},
41414266
"detect_code": ["0822"],
@@ -4157,6 +4282,11 @@
41574282
"lpticker_lptim": {
41584283
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
41594284
"value": 1
4285+
},
4286+
"lpticker_delay_ticks": {
4287+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
4288+
"value": 3,
4289+
"macro_name": "LPTICKER_DELAY_TICKS"
41604290
}
41614291
},
41624292
"detect_code": ["0823"],

0 commit comments

Comments
 (0)