|
706 | 706 | "extra_labels": ["STM"],
|
707 | 707 | "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"],
|
708 | 708 | "macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"],
|
| 709 | + "config": { |
| 710 | + "lse_available": { |
| 711 | + "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", |
| 712 | + "value": "1" |
| 713 | + } |
| 714 | + }, |
709 | 715 | "device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"]
|
710 | 716 | },
|
711 | 717 | "LPC54114": {
|
|
772 | 778 | "help": "Mask value : USE_PLL_HSE_EXTC (need HW patch) | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
|
773 | 779 | "value": "USE_PLL_HSI",
|
774 | 780 | "macro_name": "CLOCK_SOURCE"
|
775 |
| - }, |
776 |
| - "rtc_lsi": { |
777 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
778 |
| - "value": "1", |
779 |
| - "macro_name": "RTC_LSI" |
780 |
| - } |
| 781 | + } |
781 | 782 | },
|
782 | 783 | "detect_code": ["0791"],
|
| 784 | + "overrides": {"lse_available": 0}, |
783 | 785 | "macros_add": ["CMSIS_VECTAB_VIRTUAL", "CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\""],
|
784 | 786 | "device_has_add": ["SERIAL_FC"],
|
785 | 787 | "default_lib": "small",
|
|
797 | 799 | "help": "Mask value : USE_PLL_HSE_EXTC (need HW patch) | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
|
798 | 800 | "value": "USE_PLL_HSI",
|
799 | 801 | "macro_name": "CLOCK_SOURCE"
|
800 |
| - }, |
801 |
| - "rtc_lsi": { |
802 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
803 |
| - "value": "1", |
804 |
| - "macro_name": "RTC_LSI" |
805 |
| - } |
| 802 | + } |
806 | 803 | },
|
807 | 804 | "detect_code": ["0785"],
|
| 805 | + "overrides": {"lse_available": 0}, |
808 | 806 | "macros_add": ["CMSIS_VECTAB_VIRTUAL", "CMSIS_VECTAB_VIRTUAL_HEADER_FILE=\"cmsis_nvic.h\""],
|
809 | 807 | "device_has_add": ["CAN", "SERIAL_FC"],
|
810 | 808 | "default_lib": "small",
|
|
939 | 937 | "help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
|
940 | 938 | "value": "USE_PLL_HSI",
|
941 | 939 | "macro_name": "CLOCK_SOURCE"
|
942 |
| - }, |
943 |
| - "rtc_lsi": { |
944 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
945 |
| - "value": "1", |
946 |
| - "macro_name": "RTC_LSI" |
947 |
| - } |
| 940 | + } |
948 | 941 | },
|
| 942 | + "overrides": {"lse_available": 0}, |
949 | 943 | "detect_code": ["0775"],
|
950 | 944 | "default_lib": "small",
|
951 | 945 | "device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "SERIAL_FC"],
|
|
1512 | 1506 | "inherits": ["FAMILY_STM32"],
|
1513 | 1507 | "core": "Cortex-M4F",
|
1514 | 1508 | "extra_labels_add": ["STM32F3", "STM32F303", "STM32F303xC", "STM32F303VC"],
|
1515 |
| - "macros_add": ["RTC_LSI=1"], |
| 1509 | + "overrides": {"lse_available": 0}, |
1516 | 1510 | "supported_toolchains": ["GCC_ARM"],
|
1517 | 1511 | "device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "SERIAL_FC"],
|
1518 | 1512 | "device_name": "STM32F303VC"
|
|
1526 | 1520 | "help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
|
1527 | 1521 | "value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
|
1528 | 1522 | "macro_name": "CLOCK_SOURCE"
|
1529 |
| - }, |
1530 |
| - "rtc_lsi": { |
1531 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
1532 |
| - "value": "1", |
1533 |
| - "macro_name": "RTC_LSI" |
1534 |
| - } |
| 1523 | + } |
1535 | 1524 | },
|
| 1525 | + "overrides": {"lse_available": 0}, |
1536 | 1526 | "detect_code": ["0810"],
|
1537 | 1527 | "device_has_add": ["ANALOGOUT", "LOWPOWERTIMER", "SERIAL_ASYNCH", "SERIAL_FC"],
|
1538 | 1528 | "default_lib": "small",
|
|
1544 | 1534 | "core": "Cortex-M4F",
|
1545 | 1535 | "extra_labels_add": ["STM32F4", "STM32F407", "STM32F407xG", "STM32F407VG"],
|
1546 | 1536 | "supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
|
1547 |
| - "macros_add": ["RTC_LSI=1", "USB_STM_HAL"], |
| 1537 | + "macros_add": ["USB_STM_HAL"], |
| 1538 | + "overrides": {"lse_available": 0}, |
1548 | 1539 | "device_has_add": ["ANALOGOUT"],
|
1549 | 1540 | "device_name": "STM32F407VG"
|
1550 | 1541 | },
|
|
1562 | 1553 | "help": "As 48 Mhz clock is configured for USB, SYSCLK has to be reduced from 180 to 168 MHz (set 0 for the max SYSCLK value)",
|
1563 | 1554 | "value": "1",
|
1564 | 1555 | "macro_name": "CLOCK_SOURCE_USB"
|
1565 |
| - }, |
1566 |
| - "rtc_lsi": { |
1567 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
1568 |
| - "value": "1", |
1569 |
| - "macro_name": "RTC_LSI" |
1570 |
| - } |
| 1556 | + } |
1571 | 1557 | },
|
| 1558 | + "overrides": {"lse_available": 0}, |
1572 | 1559 | "macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
|
1573 | 1560 | "device_has_add": ["ANALOGOUT", "CAN", "SERIAL_ASYNCH", "SERIAL_FC", "TRNG", "FLASH"],
|
1574 | 1561 | "release_versions": ["2", "5"],
|
|
1602 | 1589 | "help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
|
1603 | 1590 | "value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
|
1604 | 1591 | "macro_name": "CLOCK_SOURCE"
|
1605 |
| - }, |
1606 |
| - "rtc_lsi": { |
1607 |
| - "help": "Use internal low speed clock (default clock is LSE)", |
1608 |
| - "value": "1", |
1609 |
| - "macro_name": "RTC_LSI" |
1610 |
| - } |
| 1592 | + } |
1611 | 1593 | },
|
| 1594 | + "overrides": {"lse_available": 0}, |
1612 | 1595 | "device_has_add": ["ANALOGOUT", "LOWPOWERTIMER", "SERIAL_FC", "FLASH"],
|
1613 | 1596 | "default_lib": "small",
|
1614 | 1597 | "release_versions": ["2"],
|
|
1747 | 1730 | "macro_name": "MODEM_ON_BOARD_UART"
|
1748 | 1731 | }
|
1749 | 1732 | },
|
1750 |
| - "macros_add": ["HSE_VALUE=26000000", "VECT_TAB_OFFSET=0x08010000", "RTC_LSI=1"], |
| 1733 | + "overrides": {"lse_available": 0}, |
| 1734 | + "macros_add": ["HSE_VALUE=26000000", "VECT_TAB_OFFSET=0x08010000"], |
1751 | 1735 | "post_binary_hook": {
|
1752 | 1736 | "function": "MTSCode.combine_bins_mts_dragonfly",
|
1753 | 1737 | "toolchains": ["GCC_ARM", "ARM_STD", "ARM_MICRO", "IAR"]
|
|
1783 | 1767 | "core": "Cortex-M3",
|
1784 | 1768 | "default_toolchain": "uARM",
|
1785 | 1769 | "extra_labels_add": ["STM32L1", "STM32L152RC"],
|
1786 |
| - "macros": ["RTC_LSI=1"], |
| 1770 | + "overrides": {"lse_available": 0}, |
1787 | 1771 | "detect_code": ["4100"],
|
1788 | 1772 | "device_has_add": ["ANALOGOUT"],
|
1789 | 1773 | "default_lib": "small",
|
|
1867 | 1851 | "macro_name": "MODEM_ON_BOARD_UART"
|
1868 | 1852 | }
|
1869 | 1853 | },
|
1870 |
| - "macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "RTC_LSI=1", "HSE_VALUE=12000000", "GNSSBAUD=9600"], |
| 1854 | + "macros_add": ["MBEDTLS_CONFIG_HW_SUPPORT", "HSE_VALUE=12000000", "GNSSBAUD=9600"], |
| 1855 | + "overrides": {"lse_available": 0}, |
1871 | 1856 | "device_has_add": ["ANALOGOUT", "SERIAL_FC", "TRNG", "FLASH"],
|
1872 | 1857 | "features": ["LWIP"],
|
1873 | 1858 | "public": false,
|
|
1888 | 1873 | "default_toolchain": "uARM",
|
1889 | 1874 | "program_cycle_s": 1.5,
|
1890 | 1875 | "extra_labels_add": ["STM32L1", "STM32L151RC"],
|
1891 |
| - "macros": ["RTC_LSI=1"], |
| 1876 | + "overrides": {"lse_available": 0}, |
1892 | 1877 | "supported_toolchains": ["ARM", "uARM", "GCC_ARM"],
|
1893 | 1878 | "device_has_add": ["ANALOGOUT"],
|
1894 | 1879 | "default_lib": "small",
|
|
0 commit comments