Commit Graph

401 Commits (1d6843e5382a7f8e5be890c9511868f137e0277a)

Author SHA1 Message Date
Lingkai Dong 61989e106a K64F: Fix pin names and migrate to Arduino Uno form factor
Fix pin names of K64F with the following from the latest guidelines:
* LEDs and buttons are defined as macros, digital and analog pins as
enums.
* No duplicated pin names with the same value.
* The Arduino form factor is deprecated in favour of Arduino Uno.

Note: The pins `SPI_xxx` are for SD card only, but the names are kept
for backward compatibility (i.e. no breaking change until the next
Mbed OS major version). The general purpose Arduino Uno SPI pins
(`ARDUINO_UNO_SPI_xxx`) are different and also available.
2021-06-28 17:47:25 +01:00
George Psimenos 61cfaa15cd Update UART pin names & add MBED_CONF_TARGET_STDIO_UART overrides 2021-03-23 11:17:17 +00:00
Martin Kojtal b7f1acff44
Merge pull request #14428 from 0xc0170/cmake-fix-targets-labels
CMake targets: remove labels usage, not required anymore
2021-03-22 10:56:55 +01:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
Martin Kojtal a0ee432279 CMake Freescale: add freescale prefix to avoid conflict with NXP 2021-03-16 17:30:09 +00:00
mark-psl 2dc73149ec Update serial_api.c 2021-03-05 11:57:00 -05:00
Martin Kojtal e2a5f8f8ba
Merge pull request #14291 from harmut01/baremetal_freescale
Add bare metal support to freescale targets
2021-03-02 09:40:17 +00:00
Martin Kojtal 88a242f749
Merge pull request #14306 from hugueskamba/hk_cmake_create_cmsis_cortex_libs
CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
2021-02-23 08:36:49 +00:00
Hugues Kamba 7d49d4bce1 Create FLASH CMSIS ALGO target to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 16:56:37 +00:00
Hugues Kamba 2c3481297c CMake: Create CMSIS library targets to remove dependency on MBED_TARGET_LABELS
This goes towards eventually removing reliance on targets.json to specify
the requirements of Mbed targets.
2021-02-19 13:39:32 +00:00
Harrison Mutai b265ae854e uARM: Remove dependencies from Freescale targets 2021-02-17 12:00:23 +00:00
Martin Kojtal c4bcd432cf
Fix copyright in TARGET_KW41Z/CMakeLists.txt
Co-authored-by: Harrison Mutai <70651665+harmut01@users.noreply.github.com>
2021-02-11 13:17:22 +00:00
Hugues Kamba ac44f1c3c5 CMake: Refactor Freescale targets
Refactor all Freescale targets to be CMake buildsystem targets. This removes
the need for checking MBED_TARGET_LABELS repeatedly and allows us to be
more flexible in the way we include MBED_TARGET source in the build.

A side effect of this is it will allow us to support custom targets
without breaking the build for 'standard' targets, as we use CMake's
standard mechanism for adding build rules to the build system, rather
than implementing our own layer of logic to exclude files not needed for
the target being built. Using this approach, if an MBED_TARGET is not
linked to using `target_link_libraries` its source files will not be
added to the build. This means custom target source can be added to the
user's application CMakeLists.txt without polluting the build system
when trying to compile for a standard MBED_TARGET.
2021-02-11 11:02:18 +00:00
Hugues Kamba 1ca4b1a34f NXP: Fix heap size formula in scatter files
The heap size was incorrectly calculated.
This fixes it by subtracting the Stack size, any memory chunks allocated
before the start of the application (for vectors and/or crash report), and
finally the size of the application from the total RAM size.
2021-01-08 18:29:03 +00:00
Martin Kojtal e77b1d8a17
Merge pull request #13952 from hugueskamba/hk_cmake_freescale_support
CMake: Add support for all Freescale Mbed targets
2020-12-01 14:35:11 +00:00
Martin Kojtal 3fa8897f66
Merge pull request #13950 from hugueskamba/hk_remove_freescale_kl27z
Freescale: Remove KL27Z files
2020-12-01 13:57:59 +00:00
Hugues Kamba 43fb514832 CMake: Add support for Freescale MCUXpresso_MCUS targets
All Freescale MCUXpresso_MCUS targets supported by Mbed OS
can now be built with CMake.
2020-11-26 16:13:25 +00:00
Hugues Kamba 8ef0087314 CMake: Add support for Freescale KLXX targets
All Freescale KLXX targets supported by Mbed OS
can now be built with CMake.
2020-11-26 16:13:24 +00:00
Hugues Kamba 6a6864b6df Freescale: Remove KL27Z files
Mbed OS 6 does not support the KL27Z target
2020-11-23 17:02:03 +00:00
Hugues Kamba 942f62c148 Freescale: Remove K20XX files
Mbed OS 6 does not support K20XX targets
2020-11-23 14:34:27 +00:00
Moshe Shahar ca39f9588a fix incorrect condition 2020-11-12 17:20:08 +02:00
Moshe Shahar 157788e6a0 fix #error condition and message to include interrupts and flash config 2020-11-12 17:14:23 +02:00
Moshe Shahar e70ee75a6e K64F, K66F - Remove flash_config area if MBED_APP_START isn't zero
This will also fix GCC_ARM non-contiguous FW:
Issue: https://github.com/ARMmbed/mbed-os/issues/13831
2020-11-12 17:14:22 +02:00
Hugues Kamba 794e32df74 CMake: Use relative paths to list source files and directories
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Rajkumar Kanagaraj e7c0d93ad4 CMake: add mbed-os and mbed-baremetal targets
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core

The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.

This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba bf84a5b329 CMake: Rename CMake targets
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Rajkumar Kanagaraj 8016a53400 CMake: replace usage of the mbed_add_cmake_directory_if_labels() function (#13754)
Directories that start with special prefixes (TARGET_, FEATURE_, COMPONENT_)  are added to the build based on Mbed target configuration from targets.json instead of calling utility function mbed_add_cmake_directory_if_labels().
2020-11-06 17:25:21 +00:00
Hugues Kamba 3ab8179b1e CMake: Add support for K66F 2020-11-06 17:25:20 +00:00
Hugues Kamba 8b21238e08 CMake: Fix failure due to events and netsocket dirs changes 2020-11-06 17:25:17 +00:00
Hugues Kamba 70d92298b8 CMake: Add support for K64F target 2020-11-06 17:25:15 +00:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Harrison Mutai d1d6bf51b3 Add license notice to Arm copyrighted source files
Scancode found missing license notices in our source files. This commit
addresses those issues by adding an Apache-2.0 notice to source files
highlighted.
2020-10-15 10:46:35 +01:00
Martin Kojtal 468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Jaeden Amero 612b148fd4 stack: armc: Workaround config passing bug
Workaround a bug where the boot stack size configuration option is not
passed on to armlink, the Arm Compiler's linker. Prefer
MBED_CONF_TARGET_BOOT_STACK_SIZE if present, as this is what the
configuration system should provide. Fall back to MBED_BOOT_STACK_SIZE
if MBED_CONF_TARGET_BOOT_STACK_SIZE is not defined, as in the case of
buggy tools. If both MBED_CONF_TARGET_BOOT_STACK_SIZE and
MBED_BOOT_STACK_SIZE are not defined, then we fall back to a hard-coded
value provided by the linkerscript. See
https://github.com/ARMmbed/mbed-os/issues/13474 for more information.
2020-09-10 10:08:38 +01:00
Jaeden Amero 39e69d328d Use boot stack size from config system
To allow overriding of the boot stack size from the Mbed configuration
system, consistently use MBED_CONF_TARGET_BOOT_STACK_SIZE rather than
MBED_BOOT_STACK_SIZE.

Fixes #10319
2020-09-10 10:08:38 +01:00
talorion e117ef5c3c use descriptive variable names 2020-09-08 10:54:09 +02:00
talorion b03d80fd08 pwmout - fixed compile errors 2020-09-02 13:39:17 +02:00
talorion 659bd2098d pwmout - K64F - add read methods for period and pulsewidth 2020-09-02 13:39:11 +02:00
talorion 009191ea6b pwmout - K22F - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion 8aab37c721 pwmout - KW41Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion cbe9129dca pwmout - KL43Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion ac648170a4 pwmout - KL27Z - add read methods for period and pulsewidth 2020-09-02 13:39:10 +02:00
talorion 32bcd62e76 pwmout - K82F - add read methods for period and pulsewidth 2020-09-02 13:39:09 +02:00
talorion 8c2c7bddb8 pwmout - K66F - add read methods for period and pulsewidth 2020-09-02 13:39:09 +02:00
talorion 5763b3a136 pwmout - KLXX - add read methods for period and pulsewidth 2020-09-02 13:39:09 +02:00
talorion 091e40ee04 pwmout - K20XX - add read methods for period and pulsewidth 2020-09-02 13:39:09 +02:00
Martin Kojtal a34dfea24e kinetis: fix headers for usbphy 2020-08-21 15:03:27 +01:00
Martin Kojtal 78a3785423
USBPhyHw: remove mbed.h inclusion
Remove user facing header file, it should not be included within a library. The header itself does not need anything from Mbed.

It could possibly fail if targets which implement usb are not including what is required for their implementation.
2020-08-18 15:36:24 +01:00
Martin Kojtal 41995a7427 nxp: fix vector redefinition from CMSIS
Since 5.7 CMSIS update to Mbed OS, __VECTOR_TABLE is defined in cmsis_gcc header
file. Many MCU in NXP uses this symbol as linker definition, therefore we should
check if already defined and undefined it.

Fixes #13062
2020-06-04 09:10:08 +01:00
Marcelo Salazar 81a92e3cb5 Re-enable K82F target 2020-04-30 09:56:37 +01:00