Lingkai Dong
6b5e467f96
HeapBlockDevice::erase(): free up heap memory
...
`HeapBlockDevice::erase()` previously performed a range and alignment
check only. This commit adds freeing of heap memory.
2021-04-14 17:00:17 +01:00
Lingkai Dong
7ef9e6175f
HeapBlockDevice: allocate with std::nothrow
...
Mbed OS does not enable C++ exceptions, so we should call `new` with
`std::nothrow` which returns a C-style NULL pointer when allocation
fails to allow error handling.
For consistency of style within the same file, this commit also
replaces `malloc()` and `free()` to `new (std::nothrow)` and `delete`.
2021-04-14 17:00:17 +01:00
Martin Kojtal
bedd5727af
Merge pull request #14486 from jeromecoutant/PR_CLI2_BLE
...
CMake COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-14 16:27:25 +02:00
Anna Bridge
68eff877ca
Merge pull request #14545 from Patater/deprecate-bootloader-example
...
examples: Deprecate mbed-os-example-bootloader
2021-04-14 13:21:53 +01:00
Jaeden Amero
f02fbaa061
examples: Deprecate mbed-os-example-bootloader
...
We no longer support the mbed-os-example-bootloader example.
2021-04-14 11:57:14 +01:00
Martin Kojtal
f4f8d8fd3f
Merge pull request #14543 from praveenCY/pr/fix_uart_enable
...
Fix Unbuffered serial enable/disable issue on Cypress kits
2021-04-14 11:09:24 +02:00
Martin Kojtal
c5f28e6037
Merge pull request #14481 from jeromecoutant/PR_LORA_ERROR
...
STM32WL: update "lora.max-sys-rx-error"
2021-04-14 09:54:53 +02:00
Martin Kojtal
033094f84d
Merge pull request #14467 from LDong-Arm/b1_fix
...
Musca targets: align and clean up configurations
2021-04-14 09:54:46 +02:00
Martin Kojtal
8b8f4e52a0
Merge pull request #14521 from AnishKumarHCL/pwm_gpiopull_fix
...
Updated TARGET_STM32 board pinMap_PWM table with GPIO_NOPULL
2021-04-14 09:54:22 +02:00
Chandran Praveen Babu (CYSC CSS ICW SW PSW)
af44532ca4
Fix Unbuffered serial enable/disable issue on Cypress kits
2021-04-13 15:33:25 -07:00
Martin Kojtal
06a33d37f8
Merge pull request #14436 from paul-szczepanek-arm/remove-services
...
BLE: replace obsolete services with the new services repo
2021-04-13 16:00:58 +02:00
Martin Kojtal
b1e26c6f35
Merge pull request #14435 from LDong-Arm/CRYPTOCELL310_linking
...
Fix missing linkage of mbed-mbedtls-cryptocell310 to mbed-mbedtls
2021-04-13 16:00:43 +02:00
Martin Kojtal
bfdd9163e0
Merge pull request #14532 from kjbracey-arm/ticker_log1
...
Make ticker computation use shift-by-0
2021-04-13 12:07:16 +02:00
Martin Kojtal
291beda749
Merge pull request #14359 from harmut01/baremetal_nxp
...
Add bare metal support to NXP targets
2021-04-13 10:58:46 +02:00
Martin Kojtal
38796d0a88
Merge pull request #14424 from 0xc0170/fix-wio-bg96-cellular
...
WIO_BG96: fix macro exclusion - use cellular
2021-04-12 16:17:54 +02:00
Martin Kojtal
1aa38b49ba
Merge pull request #14524 from OpenNuvoton/nuvoton_m487_adjust-wdt-reset-reglock
...
M487: Adjust placement of SYS_UnlockReg in WDT reset code
2021-04-12 14:54:35 +02:00
Martin Kojtal
f2b2f42616
Merge pull request #14527 from LDong-Arm/nfc_example_target
...
Tests: use only NUCLEO_F401RE for the NFC examples
2021-04-12 14:54:23 +02:00
jeromecoutant
57ce710119
[CMAKE] COMPONENT_BlueNRG_MS: fix mbed-ble
2021-04-12 11:33:57 +02:00
Kevin Bracey
904d4e4d2b
Make ticker computation use shift-by-0
...
Runtime code that analysed clock frequency to determine numerator and
denominator for conversion to standard 1MHz failed to handle the case
of either being 1 correctly.
Although it would spot other values that could be performed as shifts,
it failed to spot that 1 is "shift by 0", so would end up doing runtime
multiply and/or divide by 1. The runtime divide by 1 could be slow on a
Cortex-M0 device, increasing interrupt latency.
UART character loss on STM32F0 devices has been traced to this incorrect
code.
Correct the `exact_log2` routine so that `exact_log2(1)` returns 0 to
fix this.
Original code had a single special no-multiply-or-divide case for
hardware clock frequency being exactly 1MHz, as USTICKER is on STM32F0 -
this code lacks that but has a more general special case that covers all
shift-convertible frequencies like 500kHz or 8MHz, which should be
similar speed as shifts are cheap.
2021-04-12 09:46:42 +03:00
Lingkai Dong
e6610bd111
Use only NUCLEO_F401RE for the NFC examples
...
The repository mbed-os-example-nfc contains two examples: NFC_EEPROM
and NFC_SmartPoster. According to their respective `mbed_app.json`,
only NUCLEO_F401RE supports both examples, so we limit the compilation
test to this target only.
Compilation with an unsupported target fails (as expected) with Mbed
CLI 2 which enforces a check on a target's availability of the
required NFC controller. Mbed CLI 1 lacks such check and always
compiles.
Fixes ARMmbed/mbed-os-example-nfc#106
2021-04-09 10:38:01 +01:00
Martin Kojtal
35b8e558e9
Merge pull request #14491 from ARMmbed/docs-fpga
...
Update FPGA documentation
2021-04-09 10:09:34 +02:00
harmut01
9c73e09b06
Add bare metal support to ARCH_PRO
2021-04-08 17:24:09 +01:00
Anish Kumar
780d7c4a00
Updated TARGET_STM32 PeripheralPins.c and PeripheralPinMaps.h Replaced GPIO_PULLUP with GPIO_NOPULL in PinMap_PWM table
2021-04-08 18:42:01 +05:30
Anish Kumar
44be594792
Modified STM32_gen_PeripheralPins.py replaced GPIO_PULLUP with GPIO_NOPULL in print_pwm function
2021-04-08 18:13:50 +05:30
Anish Kumar
d8d19b186d
removed pin_mode api call from pwmout_init_direct api
2021-04-08 18:13:10 +05:30
Chun-Chieh Li
df4f1a3387
M487: Adjust placement of SYS_UnlockReg in WDT reset from PD patch
...
This adjustment has two purposes:
1. Avoid misleading placement of SYS_UnlockReg for WDT clock setting
2. Safer for power-down
2021-04-08 17:18:38 +08:00
Paul Szczepanek
d594aa2d4b
add MBED_DEPRECATED comment for maintainers to find it
2021-04-08 09:53:23 +01:00
Martin Kojtal
9bbc8c914c
Merge pull request #14506 from noonfom/value-handle
...
Add GattUpdatesEnabledCallbackParams struct
2021-04-08 09:53:04 +02:00
Martin Kojtal
622e2b3c88
Merge pull request #14511 from paul-szczepanek-arm/scan-start-check
...
BLE: Fix start scan command not returning error if parameters haven't been set
2021-04-08 09:21:41 +02:00
Martin Kojtal
160b32ae0e
Merge pull request #14259 from rotu/G431RB
...
Support STM Nucleo-G431RB
2021-04-08 09:21:23 +02:00
Abbas Bracken Ziad
52483f3e30
Wrap call to value handle getter in MBED_ASSERT
2021-04-07 18:05:01 +01:00
Paul Szczepanek
cc478b3896
add deprecation warning
2021-04-07 17:15:09 +01:00
Paul Szczepanek
f34d31f350
remember if BLE scan paremeters are set
2021-04-07 16:40:46 +01:00
Abbas Bracken Ziad
aaf9435f87
Use general name for POD
2021-04-07 12:34:25 +01:00
Martin Kojtal
84e5f1e03e
Merge pull request #14479 from chrJost/USB_STM32L1
...
STM32L1: enable USBDEVICE
2021-04-07 10:23:06 +02:00
Martin Kojtal
0075eeab6b
Merge pull request #14482 from jeromecoutant/PR_L4_SYSCLOCK
...
STM32L4: align all system_clock files
2021-04-07 10:22:50 +02:00
Martin Kojtal
7328e588f1
Merge pull request #14485 from boraozgen/feature/stm32-rtc-hse-review
...
STM32: RTC HSE support review changes
2021-04-07 09:38:44 +02:00
Martin Kojtal
dce643be92
Merge pull request #14478 from jeromecoutant/PR_L1_ADC_DEEP
...
STM32L1 : enable ADC after deepsleep
2021-04-07 09:38:30 +02:00
Martin Kojtal
9d0bd3abd9
Merge pull request #14496 from jeromecoutant/PR_DEVICENAME
...
STM32: cleanup around devicename information from CMSIS pack
2021-04-07 09:05:02 +02:00
Martin Kojtal
c2dae8b7eb
Merge pull request #14499 from JeanMarcR/CUBE_UPDATE
...
STM32F1 update drivers version to CUBE V1.8.3
2021-04-07 09:04:43 +02:00
Lingkai Dong
c4178b4ce8
TF-M targets: Clean up RTOS configuration
...
On Armv8 targets, the PSA interface on the non-secure side only
requires mutexes, thus we remove other RTOS overrides to reduce
memory usage in general use cases.
TF-M and PSA test applications require more RTOS resources, and
they have their own configurations defined in
mbed-os-tf-m-regression-tests.
This commit also adds missing configuration for ARM_MUSCA_B1.
2021-04-06 18:16:46 +01:00
Lingkai Dong
bd92ca06fa
ARM_MUSCA_B1: default baud rate to 115200
...
The TF-M secure binary has a fixed baud rate of 115200. Having a
different baud rate on the non-secure side results in broken serial
outputs.
2021-04-06 18:11:46 +01:00
Abbas Bracken Ziad
d42c0a7269
Add value handle field to callback params
2021-04-06 17:39:10 +01:00
Abbas Bracken Ziad
8b07e97e50
Add value handle getter to Gatt Server
2021-04-06 17:24:08 +01:00
George Psimenos
4091306f10
Update FPGA documentation
2021-04-06 15:13:51 +01:00
Bora Özgen
c16a51d87c
STM32 RTC: Apply review changes for HSE support
...
* Remove unused code
* Fix supported target families
* Add preprocessor error for wrong LPTICKER configuration
2021-04-06 13:45:52 +02:00
reme
38922dee68
README update STM32F1 to CUBE V1.8.3
2021-04-01 16:05:41 +02:00
jeromecoutant
7ead194755
STM32WL: update device_name
2021-04-01 11:52:48 +02:00
jeromecoutant
81acd5d975
STM32L5: update device_name
2021-04-01 11:52:48 +02:00
jeromecoutant
7b80a441f5
STM32L4: update device_name
2021-04-01 11:52:48 +02:00