Skip to content

Commit c8d628b

Browse files
committed
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 a0fa0b6 commit c8d628b

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
@@ -724,7 +724,7 @@
724724
"public": false,
725725
"extra_labels": ["STM"],
726726
"supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"],
727-
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2", "LPTICKER_DELAY_TICKS=3"],
727+
"macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
728728
"config": {
729729
"lse_available": {
730730
"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",
@@ -868,6 +868,11 @@
868868
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
869869
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
870870
"macro_name": "CLOCK_SOURCE"
871+
},
872+
"lpticker_delay_ticks": {
873+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
874+
"value": 1,
875+
"macro_name": "LPTICKER_DELAY_TICKS"
871876
}
872877
},
873878
"detect_code": ["0755"],
@@ -886,6 +891,11 @@
886891
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
887892
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
888893
"macro_name": "CLOCK_SOURCE"
894+
},
895+
"lpticker_delay_ticks": {
896+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
897+
"value": 1,
898+
"macro_name": "LPTICKER_DELAY_TICKS"
889899
}
890900
},
891901
"detect_code": ["0730"],
@@ -904,6 +914,11 @@
904914
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
905915
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
906916
"macro_name": "CLOCK_SOURCE"
917+
},
918+
"lpticker_delay_ticks": {
919+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
920+
"value": 1,
921+
"macro_name": "LPTICKER_DELAY_TICKS"
907922
}
908923
},
909924
"detect_code": ["0750"],
@@ -1100,6 +1115,11 @@
11001115
"lpticker_lptim": {
11011116
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
11021117
"value": 1
1118+
},
1119+
"lpticker_delay_ticks": {
1120+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1121+
"value": 3,
1122+
"macro_name": "LPTICKER_DELAY_TICKS"
11031123
}
11041124
},
11051125
"detect_code": ["0744"],
@@ -1224,6 +1244,11 @@
12241244
"lpticker_lptim": {
12251245
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
12261246
"value": 1
1247+
},
1248+
"lpticker_delay_ticks": {
1249+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1250+
"value": 3,
1251+
"macro_name": "LPTICKER_DELAY_TICKS"
12271252
}
12281253
},
12291254
"detect_code": ["0743"],
@@ -1246,6 +1271,11 @@
12461271
"lpticker_lptim": {
12471272
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
12481273
"value": 1
1274+
},
1275+
"lpticker_delay_ticks": {
1276+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1277+
"value": 3,
1278+
"macro_name": "LPTICKER_DELAY_TICKS"
12491279
}
12501280
},
12511281
"detect_code": ["0743"],
@@ -1396,12 +1426,17 @@
13961426
"lpticker_lptim": {
13971427
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
13981428
"value": 1
1429+
},
1430+
"lpticker_delay_ticks": {
1431+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1432+
"value": 3,
1433+
"macro_name": "LPTICKER_DELAY_TICKS"
13991434
}
14001435
},
14011436
"macros_add": ["USBHOST_OTHER"],
14021437
"supported_form_factors": ["ARDUINO"],
14031438
"detect_code": ["0816"],
1404-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
1439+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14051440
"release_versions": ["2", "5"],
14061441
"device_name": "STM32F746ZG",
14071442
"bootloader_supported": true,
@@ -1427,12 +1462,17 @@
14271462
"lpticker_lptim": {
14281463
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14291464
"value": 1
1465+
},
1466+
"lpticker_delay_ticks": {
1467+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1468+
"value": 3,
1469+
"macro_name": "LPTICKER_DELAY_TICKS"
14301470
}
14311471
},
14321472
"macros_add": ["TRANSACTION_QUEUE_SIZE_SPI=2", "USBHOST_OTHER", "MBEDTLS_CONFIG_HW_SUPPORT"],
14331473
"supported_form_factors": ["ARDUINO"],
14341474
"detect_code": ["0819"],
1435-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
1475+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14361476
"release_versions": ["2", "5"],
14371477
"device_name": "STM32F756ZG",
14381478
"overrides": {
@@ -1461,12 +1501,17 @@
14611501
"lpticker_lptim": {
14621502
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14631503
"value": 1
1504+
},
1505+
"lpticker_delay_ticks": {
1506+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1507+
"value": 3,
1508+
"macro_name": "LPTICKER_DELAY_TICKS"
14641509
}
14651510
},
14661511
"supported_form_factors": ["ARDUINO"],
14671512
"macros_add": ["USBHOST_OTHER"],
14681513
"detect_code": ["0818"],
1469-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
1514+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
14701515
"release_versions": ["2", "5"],
14711516
"device_name": "STM32F767ZI",
14721517
"bootloader_supported": true,
@@ -1490,6 +1535,11 @@
14901535
"lpticker_lptim": {
14911536
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
14921537
"value": 1
1538+
},
1539+
"lpticker_delay_ticks": {
1540+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1541+
"value": 3,
1542+
"macro_name": "LPTICKER_DELAY_TICKS"
14931543
}
14941544
},
14951545
"detect_code": ["0780"],
@@ -1513,6 +1563,11 @@
15131563
"lpticker_lptim": {
15141564
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15151565
"value": 1
1566+
},
1567+
"lpticker_delay_ticks": {
1568+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1569+
"value": 3,
1570+
"macro_name": "LPTICKER_DELAY_TICKS"
15161571
}
15171572
},
15181573
"detect_code": ["0790"],
@@ -1535,6 +1590,11 @@
15351590
"lpticker_lptim": {
15361591
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15371592
"value": 1
1593+
},
1594+
"lpticker_delay_ticks": {
1595+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1596+
"value": 3,
1597+
"macro_name": "LPTICKER_DELAY_TICKS"
15381598
}
15391599
},
15401600
"detect_code": ["0715"],
@@ -1557,6 +1617,11 @@
15571617
"lpticker_lptim": {
15581618
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15591619
"value": 1
1620+
},
1621+
"lpticker_delay_ticks": {
1622+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1623+
"value": 3,
1624+
"macro_name": "LPTICKER_DELAY_TICKS"
15601625
}
15611626
},
15621627
"detect_code": ["0760"],
@@ -1574,6 +1639,11 @@
15741639
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
15751640
"value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
15761641
"macro_name": "CLOCK_SOURCE"
1642+
},
1643+
"lpticker_delay_ticks": {
1644+
"help": "For targets with low frequency system clock, set lpticker_delay_ticks value to 1",
1645+
"value": 1,
1646+
"macro_name": "LPTICKER_DELAY_TICKS"
15771647
}
15781648
},
15791649
"detect_code": ["0710"],
@@ -1595,6 +1665,11 @@
15951665
"lpticker_lptim": {
15961666
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
15971667
"value": 1
1668+
},
1669+
"lpticker_delay_ticks": {
1670+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1671+
"value": 3,
1672+
"macro_name": "LPTICKER_DELAY_TICKS"
15981673
}
15991674
},
16001675
"detect_code": ["0770"],
@@ -1617,6 +1692,11 @@
16171692
"lpticker_lptim": {
16181693
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
16191694
"value": 1
1695+
},
1696+
"lpticker_delay_ticks": {
1697+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1698+
"value": 3,
1699+
"macro_name": "LPTICKER_DELAY_TICKS"
16201700
}
16211701
},
16221702
"detect_code": ["0779"],
@@ -1660,6 +1740,11 @@
16601740
"lpticker_lptim": {
16611741
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
16621742
"value": 1
1743+
},
1744+
"lpticker_delay_ticks": {
1745+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1746+
"value": 3,
1747+
"macro_name": "LPTICKER_DELAY_TICKS"
16631748
}
16641749
},
16651750
"detect_code": ["0765"],
@@ -1701,6 +1786,11 @@
17011786
"lpticker_lptim": {
17021787
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
17031788
"value": 1
1789+
},
1790+
"lpticker_delay_ticks": {
1791+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
1792+
"value": 3,
1793+
"macro_name": "LPTICKER_DELAY_TICKS"
17041794
}
17051795
},
17061796
"detect_code": ["0827"],
@@ -1908,6 +1998,11 @@
19081998
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19091999
"value": 1
19102000

2001+
},
2002+
"lpticker_delay_ticks": {
2003+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2004+
"value": 3,
2005+
"macro_name": "LPTICKER_DELAY_TICKS"
19112006
}
19122007
},
19132008
"overrides": {"lse_available": 0},
@@ -1930,6 +2025,11 @@
19302025
"lpticker_lptim": {
19312026
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19322027
"value": 1
2028+
},
2029+
"lpticker_delay_ticks": {
2030+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2031+
"value": 3,
2032+
"macro_name": "LPTICKER_DELAY_TICKS"
19332033
}
19342034
},
19352035
"detect_code": ["0833"],
@@ -1965,11 +2065,16 @@
19652065
"lpticker_lptim": {
19662066
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19672067
"value": 1
2068+
},
2069+
"lpticker_delay_ticks": {
2070+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2071+
"value": 3,
2072+
"macro_name": "LPTICKER_DELAY_TICKS"
19682073
}
19692074
},
19702075
"detect_code": ["0815"],
19712076
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1972-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
2077+
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
19732078
"release_versions": ["2", "5"],
19742079
"device_name": "STM32F746NG",
19752080
"overrides": {
@@ -1994,11 +2099,16 @@
19942099
"lpticker_lptim": {
19952100
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
19962101
"value": 1
2102+
},
2103+
"lpticker_delay_ticks": {
2104+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2105+
"value": 3,
2106+
"macro_name": "LPTICKER_DELAY_TICKS"
19972107
}
19982108
},
19992109
"detect_code": ["0817"],
20002110
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
2001-
"device_has_add": ["LPTICKER", "ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
2111+
"device_has_add": ["ANALOGOUT", "CAN", "EMAC", "SERIAL_ASYNCH", "TRNG", "FLASH"],
20022112
"release_versions": ["2", "5"],
20032113
"device_name": "STM32F769NI",
20042114
"overrides": {
@@ -2018,6 +2128,11 @@
20182128
"lpticker_lptim": {
20192129
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
20202130
"value": 1
2131+
},
2132+
"lpticker_delay_ticks": {
2133+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2134+
"value": 3,
2135+
"macro_name": "LPTICKER_DELAY_TICKS"
20212136
}
20222137
},
20232138
"supported_form_factors": ["ARDUINO"],
@@ -2041,6 +2156,11 @@
20412156
"lpticker_lptim": {
20422157
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
20432158
"value": 1
2159+
},
2160+
"lpticker_delay_ticks": {
2161+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
2162+
"value": 3,
2163+
"macro_name": "LPTICKER_DELAY_TICKS"
20442164
}
20452165
},
20462166
"detect_code": ["0820"],
@@ -4100,6 +4220,11 @@
41004220
"lpticker_lptim": {
41014221
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
41024222
"value": 1
4223+
},
4224+
"lpticker_delay_ticks": {
4225+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
4226+
"value": 3,
4227+
"macro_name": "LPTICKER_DELAY_TICKS"
41034228
}
41044229
},
41054230
"detect_code": ["0822"],
@@ -4121,6 +4246,11 @@
41214246
"lpticker_lptim": {
41224247
"help": "This target supports LPTIM. Set value 1 to use LPTIM for LPTICKER, or 0 to use RTC wakeup timer",
41234248
"value": 1
4249+
},
4250+
"lpticker_delay_ticks": {
4251+
"help": "In case of lpticker_lptim=1, set lpticker_delay_ticks=3",
4252+
"value": 3,
4253+
"macro_name": "LPTICKER_DELAY_TICKS"
41244254
}
41254255
},
41264256
"detect_code": ["0823"],

0 commit comments

Comments
 (0)