Martin Kojtal
92f3529e2f
CMake: fix baremetal, core-obj links to core and target
2021-03-15 10:05:56 +00:00
Martin Kojtal
86f1ad74cc
CMake: core should expose also compile defs from target
2021-03-15 10:05:55 +00:00
Martin Kojtal
79fac4f62e
CMake: expose targets includes to mbed-core
...
We do not want an app to link core and also targets. As both actually create one core component.
Therefore expose include dirs from targets to core.
mbed-events for instance should just link to mbed-core and it should get all it needs.
2021-03-15 10:05:55 +00:00
Martin Kojtal
b0b242eba0
CMake: remove util function, link object libs regularly
2021-03-15 10:05:55 +00:00
Martin Kojtal
5e5da9be9a
CMake: simplify internal object libraries
...
Link what we can link with CMake. We still need copy core sources to mbed-os-obj. And expose
also link options to app as linker flags are provided via them. Normally, we would link to
target library but as it's interface, we would copy the sources as well, this is not what we want.
2021-03-15 10:05:53 +00:00
Martin Kojtal
ca1fa9f3c1
CMake: add comments for the magic we do around core/rtos libraries
2021-03-15 10:05:53 +00:00
Martin Kojtal
a20c531fb1
CMake linker: fix change from the latest rebase
2021-03-15 10:05:53 +00:00
Martin Kojtal
f3ad31da05
events: use OBJECT library
...
User facing targets should be just object libraries
2021-03-15 10:05:53 +00:00
Martin Kojtal
5dfedfca52
CMake readme: fix typos in the comment
2021-03-15 10:05:52 +00:00
Martin Kojtal
8cefac01b5
CMake linker: move linker to mbed-core - upstream it to an app
...
Otherwise this would not be visible to an app.
2021-03-15 10:05:52 +00:00
Martin Kojtal
73471fa026
CMake: copy compile defs and link options to core from targets
2021-03-15 10:05:52 +00:00
Martin Kojtal
b0950da049
CMake readme: add libraries section
2021-03-15 10:05:51 +00:00
Martin Kojtal
5236f5009f
CMake: fix exposing target includes for mbed-os/baremetal
2021-03-15 10:05:51 +00:00
Martin Kojtal
15c5f79224
CMake: core exports target includes for other components to be available
2021-03-15 10:05:51 +00:00
Martin Kojtal
ea2715d05e
events: remove target, core should get these in
2021-03-15 10:05:50 +00:00
Martin Kojtal
29dc6a72f4
CMake: fix baremetal build
2021-03-15 10:05:50 +00:00
Martin Kojtal
6c47a19daf
CMake: add util.cmake file
2021-03-15 10:05:50 +00:00
Martin Kojtal
c1f15c4f9f
Maxim: revert unrelated change
2021-03-15 10:05:50 +00:00
Martin Kojtal
34cfda05bc
CMake: use Jamies trick to copy core files and build with Mbed OS
2021-03-15 10:05:49 +00:00
Martin Kojtal
c3e0534820
CMake cmsis: add only headers from targets, not everything
2021-03-15 10:05:49 +00:00
Martin Kojtal
3d66d0ff7d
CMake Maxim: turn maxim targets to interface libs
...
Copy over what core and app needs. This still does not build though, target objects
are copied to multiple places.
2021-03-15 10:05:48 +00:00
Martin Kojtal
6b18cb3923
CMake cmsis: use util function
2021-03-15 10:05:48 +00:00
Martin Kojtal
d6041a00de
CMake: expose what core needs from a target via MBED_TARGET_CONVERTED-core
...
Use `${MBED_TARGET_CONVERTED}-core` target for exposing cmsis/device headers to the core. This breaks
the circular dependency between core and targets.
I also attempt to break building objects per each level in targets hieararchy. The top level target - public facing target, needs to gather sources and create object library.
2021-03-15 10:05:47 +00:00
Martin Kojtal
ab0be209f0
CMake: provide util function to connect object with interface lib
2021-03-15 10:05:47 +00:00
Martin Kojtal
11cd2820b2
CMake: hit object library cyclic deps error
2021-03-15 10:05:47 +00:00
Martin Kojtal
ba884a468a
CMake Maxim: fix private obj files
2021-03-15 10:05:46 +00:00
Martin Kojtal
3d36e28307
CMake: mbed target converted is cached variable
2021-03-15 10:05:46 +00:00
Martin Kojtal
f0d67431ff
CMake: fix deps on other libraries
2021-03-15 10:05:45 +00:00
Martin Kojtal
192858e6d0
Maxim: turn max32630 into interface + object libraries
2021-03-15 10:05:44 +00:00
Martin Kojtal
07d702b8f9
cmsis: fix private link for core
2021-03-15 10:05:44 +00:00
Martin Kojtal
0f2b6d676a
Events: create interface + obj library
2021-03-15 10:05:44 +00:00
Martin Kojtal
494d0c0711
CMake: turn mbed-core into interface + obj libraries
2021-03-15 10:05:43 +00:00
Martin Kojtal
68fb11e912
Merge pull request #14418 from hugueskamba/hk_cmake_fix_ep_atlas
...
EP_ATLAS: Fix mbedtools build errors
2021-03-15 10:06:59 +01:00
Martin Kojtal
9d48bfecb7
Merge pull request #14411 from hugueskamba/hk_cmake_fix_cortex_a9_warning
...
CMake: Fix Cortex-A9 flags for GCC_ARM toolchain
2021-03-12 15:12:05 +00:00
Martin Kojtal
8947e3cbeb
Merge pull request #14403 from saheerb/CY8CKIT064B0S2_4343W-115200
...
update baud rate of CY8CKIT064B0S2_4343W to 115200
2021-03-12 13:28:21 +00:00
Martin Kojtal
a63bd12706
Merge pull request #14416 from hugueskamba/hk_cmake_fix_ff1705-l151cc
...
CMake: Fix FF1705_L151CC build
2021-03-12 13:26:41 +00:00
Hugues Kamba
b193d97532
CMake: Fix Cortex-A9 flags for GCC_ARM toolchain
...
The -mcpu=cortex-a9 flag conflicts with the march=armv7-a flag.
Opted to keep mcpu=cortex-a9 as it is more specific and
allows GCC to perform better optimization.
The compiler is also changed to use soft-float ABI as it
was necessary to successfully build. Without it the application
appears to be built with soft-float ABI and it conflicts with
the previous setting which was built with hard-float ABI.
This may be related to: https://gitlab.kitware.com/cmake/cmake/-/issues/21173
2021-03-12 13:21:04 +00:00
Martin Kojtal
b4abfe6709
Merge pull request #14422 from pan-/lora-cancellation
...
Fix Lora timer cancellation
2021-03-12 13:17:21 +00:00
Martin Kojtal
09eac13ffb
Merge pull request #14423 from mczerski/stm32_faster_analog_out
...
STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
2021-03-12 13:14:13 +00:00
Hugues Kamba
811a72af88
EP_ATLAS: Remove requirement for USB library if not required
...
Move inclusion of USB header file within the existing
conditional pre-processor directive so the USB library
is not required if USB stdio console is disable
2021-03-12 12:19:17 +00:00
Hugues Kamba
2da1972012
CMake: Fix EP_ATLAS build
...
Enable Onboard TELIT ME310 driver only when cellular library is included.
This allows us to remove the cellular library as a requirement
to build applications that do not require it (i.e Blinky).
2021-03-12 12:19:17 +00:00
Martin Kojtal
1cb25da7ae
Merge pull request #14419 from jeromecoutant/PR_MBEDH
...
STM32: remove mbed.h include in connectivity
2021-03-12 10:55:32 +00:00
Vincent Coubard
70920d442f
Lora: Add LoRaWANTimer::clear in stubs
2021-03-12 09:48:50 +00:00
Marek Czerski
f64e64dc9d
STM32: AnalogOut: do not call HAL_DAC_Start in dac_write
...
dac_write (used by AnalogOut.write) calls HAL_DAC_Start
every time. It is required to call HAL_DAC_Start only once.
HAL_DAC_Start uses internally HAL_Delay(1) making AnalogOut
not suitable for use in high speed application.
This change removes call to HAL_DAC_Start in dac_write and
moves it to analogout_init.
2021-03-12 09:56:41 +01:00
Martin Kojtal
6aef1af9e0
Merge pull request #14342 from JojoS62/fix-lwIP-add_dns_server
...
use calloc for new_interface_server
2021-03-12 08:44:50 +00:00
Martin Kojtal
9e0495a770
LoRaWANTimer: add new line at the end of the file
2021-03-12 08:24:16 +00:00
Vincent Coubard
9781418e31
Lora: Clear callback ID when timer callback is executed.
2021-03-11 21:00:43 +00:00
Vincent Coubard
4885739c4e
Lora: Add clear method to LoRaWANTimer.
...
This function must be called by the callback registered in init.
It clears the timer_id to prevent abusive use of the stop methods on expired timer.
2021-03-11 20:59:45 +00:00
Martin Kojtal
eec320c991
Merge pull request #14339 from jeromecoutant/PR_F4_1260
...
STM32F4 update drivers version to CUBE V1.26.0
2021-03-11 17:14:28 +00:00
Martin Kojtal
306172570a
Merge pull request #14379 from OpenNuvoton/nvt_high_res_pwm
...
Nuvoton: Enlarge NuMaker PWM duty cycle range
2021-03-11 17:12:25 +00:00