Malavika Sajikumar
6632282b4a
Removing I2C and SPI pin names in SDP-K1 PinNames.h file.
...
This is to ensure the use of Arduino pin names Dxx for I2C and SPI pins in programs written for SDP-K1 board.
2019-06-18 08:15:01 -07:00
jeromecoutant
e10d2c8499
STM32: enable CRC for all L0/L4/F7
2019-06-18 13:53:04 +02:00
Vincent Veron
31eb49b918
TARGET_STM: Add DEVICE_SPI_COUNT to use SPIs without interference
...
Extend to all STM targets the work done on PR10752.
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-14 14:15:56 +02:00
Qinghao Shi
2ddb55007c
fix IAR compile error on fastmodels
2019-06-14 10:59:16 +03:00
Kevin Bracey
8d15a2342f
STM: optimize us_ticker
...
Provide new optimizations for us_ticker and wait_us.
2019-06-14 10:22:08 +03:00
Kevin Bracey
e5e2e0ac22
Freescale MCUXpresso: optimize us_ticker
...
Provide new optimizations for us_ticker and wait_us.
2019-06-14 10:22:08 +03:00
Kevin Bracey
57310729d4
wait_us optimization
...
As the timer code became more generic, coping with initialization on
demand, and variable width and speed us_ticker_api implementations,
wait_us has gradually gotten slower and slower.
Some platforms have reportedly seen overhead of wait_us() increase from
10µs to 30µs. These changes should fully reverse that drop, and even
make it better than ever.
Add fast paths for platforms that provide compile-time information about
us_ticker. Speed and code size is improved further if:
* Timer has >= 2^32 microsecond range, or better still is 32-bit 1MHz.
* Platform implements us_ticker_read() as a macro
* Timer is initialised at boot, rather than first use
The latter initialisation option is the default for STM, as this has
always been the case.
2019-06-14 10:22:08 +03:00
Martin Kojtal
5a8f795976
Merge pull request #10804 from VVESTM/vve_fix_10589
...
TARGET_STM: SPI: update pull up config depending on clk polarity
2019-06-14 07:45:25 +01:00
Chun-Chieh Li
016ab2a417
[Nuvoton] Fix channel release in analogout_free()
2019-06-13 18:11:50 +08:00
Anna Bridge
4ad71c4d65
Merge pull request #10802 from Patater/update-to-mbedtls-2.18.0rc4
...
Update to mbedtls 2.18.0rc3
2019-06-12 16:09:02 +01:00
Anna Bridge
378e997e25
Merge pull request #10753 from desmond-blue/feature-fix-nrf52-uart-count
...
Fix nrf52 enabled uart count and enable uart0/1
2019-06-12 14:50:12 +01:00
Jaeden Amero
39ea40fed3
psa: Avoid re-definition of MBEDTLS_PSA_CRYPTO_C
...
Mbed TLS now enables PSA APIs by default on all targets. It's not
necessary to explicitly enable MBEDTLS_PSA_CRYPTO_C, as that can be
gotten from the Mbed TLS config.h.
However, many PSA targets depend on `-DMBEDTLS_PSA_CRYPTO_C` being
defined by the Mbed OS json configuration system and are not yet
properly including the Mbed TLS configuration; for these PSA targets,
warnings may remain until this issue is fixed.
Avoiding re-definition will eliminate warnings like the following, when
building mbed-os-example-blinky:
Compile [ 14.5%]: pal_client_api_empty_intf.c
[Warning] pal_client_api_intf.h@35,0: "PSA_SUCCESS" redefined
Compile [ 14.6%]: pal_client_api_intf.c
Compile [ 14.7%]: DeviceKey.cpp
Compile [ 14.9%]: pal_internal_trusted_storage_intf.c
[Warning] pal_internal_trusted_storage_intf.c@45,9: 'psa_its_set' is deprecated: PS specific types should not be used [-Wdeprecated-declarations]
Compile [ 15.3%]: val_attestation.c
[Warning] client.h@40,0: "PSA_VERSION_NONE" redefined
<..>
Compile [ 33.3%]: asn1parse.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.5%]: aes.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.6%]: asn1write.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.7%]: psa_crypto.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.8%]: blowfish.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 33.9%]: camellia.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.0%]: base64.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.2%]: ccm.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.3%]: chacha20.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.4%]: chachapoly.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.5%]: cipher_wrap.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.6%]: cmac.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.7%]: cipher.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 34.9%]: bignum.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.0%]: des.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.1%]: dhm.c
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 35.2%]: ctr_drbg.c
<..>
Compile [ 70.9%]: EthernetInterface.cpp
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 71.0%]: InternetSocket.cpp
Compile [ 71.1%]: L3IPInterface.cpp
[Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
Compile [ 71.2%]: NetworkInterface.cpp
2019-06-12 12:47:20 +01:00
desmond.chen
d5624b6ec6
Fix nrf52 enabled uart count and enable uart0/1
2019-06-12 15:36:09 +08:00
Martin Kojtal
09ea361c7e
Merge pull request #10790 from jeromecoutant/PR_H7_LPUART
...
STM32H7 enable LPUART
2019-06-11 09:06:22 +01:00
Martin Kojtal
94d2a42fd5
Merge pull request #10793 from jeromecoutant/PR_STM32WARNING
...
STM32: remove compilation warnings
2019-06-11 07:36:47 +01:00
Martin Kojtal
fbcae489a0
Merge pull request #10762 from mprse/reenable_tests
...
Disable only time drifting test cases and fix GREENTEA_SETUP() call in tests
2019-06-11 07:35:41 +01:00
panyz0725@thundersoft.com
4f107cc061
Add GPIO INT pin with PT1
2019-06-10 09:46:04 +08:00
Martin Kojtal
9dfc8d0ea7
Merge pull request #10775 from jeromecoutant/PR_H7_REFACTOR
...
STM32H7: refactor TARGET directory
2019-06-09 18:22:04 +01:00
Martin Kojtal
356c4fb7cb
Merge pull request #10758 from toyowata/stm32f407xe
...
Move Seeed ARCH_MAX to TARGET_STM32F407xE MCU
2019-06-09 18:20:03 +01:00
Martin Kojtal
dbe274ccf0
Merge pull request #10757 from petroborys/master
...
Add support I2C 3 for target EFM32G11
2019-06-09 18:19:42 +01:00
Martin Kojtal
9ab0e09699
Merge pull request #10752 from teijokinnunen/stm32l0_target_spi_count
...
STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ
2019-06-09 18:19:34 +01:00
Martin Kojtal
5581da56c9
Merge pull request #10751 from ThunderSoft123/master
...
TARGET_TT:Setting wisely pin mode for TT_M3HQ.
2019-06-09 18:19:05 +01:00
Martin Kojtal
b683f4252e
Merge pull request #10739 from OpenNuvoton/nuvoton_m487_wait-ns
...
M487: Fix wait_ns test failed
2019-06-09 18:16:34 +01:00
Martin Kojtal
ced4c3f4e4
Merge pull request #10708 from VVESTM/vve_fix_10671
...
TARGET_STM: SPI: add pulse on master transmissions
2019-06-09 18:10:42 +01:00
Martin Kojtal
dda79d4d23
Merge pull request #10695 from Ronny-Liu/master
...
GD32_F450ZI : Add bootloader support
2019-06-09 18:06:25 +01:00
Martin Kojtal
dc77c40fe9
Merge pull request #10709 from LDong-Arm/nrf52_cordio
...
Default to Cordio BLE stack for NRF52* targets
2019-06-09 18:03:34 +01:00
Qinghao Shi
288a685be4
modify targets.json to trun off MPU
2019-06-07 18:36:13 +01:00
Qinghao Shi
153ea175e8
correct CMSDK for M0Plus due to MPU is not presented
2019-06-07 18:35:25 +01:00
jeromecoutant
5ac7c8c77e
STM32WB warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:11:16 +02:00
jeromecoutant
ddcc63276a
STM32H7 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:11:04 +02:00
jeromecoutant
39ee51a017
STM32L4 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
43a304351a
STM32L1 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
daf8d114c4
STM32L0 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:10:17 +02:00
jeromecoutant
7d05f22b31
STM32F7 warning compilation
...
[-Wparentheses-equality]
[-Wsign-compare]
2019-06-07 18:10:03 +02:00
jeromecoutant
09a58b5203
STM32F4 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
89f554fb53
STM32F3 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
f3c7cc9d47
STM32F2 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:51 +02:00
jeromecoutant
8c2ee68be1
STM32F1 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:50 +02:00
jeromecoutant
7154ac65f2
STM32F0 warning compilation
...
[-Wparentheses-equality]
2019-06-07 18:08:50 +02:00
jeromecoutant
5d80f9e98f
STM32: remove compilation warning
2019-06-07 18:08:39 +02:00
jeromecoutant
a90e68e788
STM32H7 UART: enable LPUART
2019-06-07 18:05:06 +02:00
Hugues Kamba
06c3a5bf25
Fix: Allow target size restriction for LPC55S69
...
The build tool uses the sector size found in the CMSIS Pack to determine if
the size that can be specified by `target.restrict_size` is enough to fit
all the parts of a given binary. See `target.restrict_size` documentation
in the Mbed OS manual for more information.
The sector size found in the CMSIS Pack is overriden to allow the build
tool to accurately make the decision.
The target's sectors in the CMSIS Pack are defined in 32KB pages.
However, you can erase pages at the 512 byte level.
This commit changes defined sector erase size to 512 bytes instead of
32 Kilobytes.
2019-06-07 16:57:25 +01:00
Filip Jagodzinski
8e3ca20817
K82F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:47:59 +02:00
Filip Jagodzinski
3119d69f0e
KL27Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:46:53 +02:00
Filip Jagodzinski
9efaabe404
K66F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:41:36 +02:00
Filip Jagodzinski
68269672c4
KL43Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:41:09 +02:00
Filip Jagodzinski
5f95c5fc85
KL82Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:37:49 +02:00
Filip Jagodzinski
0b33e8f976
KW24D: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:35:36 +02:00
Filip Jagodzinski
96b6cd3ee6
KW41Z: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:33:42 +02:00
Filip Jagodzinski
01e130ba83
K24F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:19:25 +02:00
Filip Jagodzinski
f60850ad50
K22F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 16:17:07 +02:00
Filip Jagodzinski
14b83e7fdf
STM32WB: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:36:21 +02:00
Filip Jagodzinski
53222fa448
STM32L4: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:33:49 +02:00
Filip Jagodzinski
fa0cc68657
STM32H7: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:30:03 +02:00
Filip Jagodzinski
d6a48218ee
STM32F3: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:26:20 +02:00
Filip Jagodzinski
b88b94eb75
STM32L0: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:22 +02:00
Filip Jagodzinski
c387bd889f
STM32F0: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:17 +02:00
Filip Jagodzinski
84384162bb
STM32F7: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:07 +02:00
Filip Jagodzinski
94c27aa750
K64F: Fix serial IRQ handling
...
Check that the RX or TX interrupt is enabled before calling
a registered handler with RxIrq or TxIrq arg.
2019-06-07 15:17:07 +02:00
d-kato
4dc3b0e269
Fix bugs by optimization
2019-06-07 11:14:03 +09:00
Przemyslaw Stekiel
86dab2f9fa
Disable time drifting test cases.
...
Time drifting test cases use serial communication with the host and are unstable on CI.
Skip time-drifting test cases if SKIP_TIME_DRIFT_TESTS macro is defined.
The idea for the future is to use FPGA test shield for timing tests instead of host scripts.
Also remove `__ARM_FM` macro which in most cases was used to disable time drifting tests. In other cases replace `__ARM_FM` with `TARGET_ARM_FM` which is more suitable.
2019-06-06 21:48:04 +02:00
Qinghao Shi
07c3d90a5c
FastModel: change Fastmodel memory layout regions from 3 to 2
...
- change memoryzones.h
- change linker scripts for each toolchains
2019-06-06 18:54:59 +01:00
Qinghao Shi
2e4329192e
FastModel: enable FLASHIAP componment
2019-06-06 18:52:30 +01:00
Vincent Veron
82979f6415
TARGET_STM: SPI: update pull up config depending on clk polarity
...
Fix #10589
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-06 17:06:04 +02:00
Martin Kojtal
489bd10626
Merge pull request #10629 from trowbridgec/add-target-ep-agora
...
Add support for the Embedded Planet Agora target
2019-06-06 14:50:14 +01:00
jeromecoutant
25e4316963
STM32H7 directory cleanup and refactoring
2019-06-06 10:48:11 +02:00
jeromecoutant
119ff51fee
STM32H7: use default files from ST drivers delivery
2019-06-06 10:48:09 +02:00
jeromecoutant
5b53b3aae0
STM32: define USE_FULL_LL_DRIVER at top level
2019-06-06 10:48:08 +02:00
panyz0725@thundersoft.com
ed81f8e428
Setting wisely pin mode for TT_M3HQ
2019-06-06 10:16:31 +08:00
Volodymyr Medvid
f4bfbf3056
PSOC6: add SOFTFP to standard component list
...
This allows Cypress to deliver middleware libraries with
precompiled libraries for SoftFP ahd HardFP, separated by
component-specific sub-directories:
COMPONENT_SOFTFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
COMPONENT_HARDFP/TOOLCHAIN_GCC_ARM/libcy_capsense.a
2019-06-05 16:32:16 +03:00
toyowata
f1628f0b8d
Correct SPDX identifiers
2019-06-05 19:04:55 +09:00
Lingkai Dong
ffcceb0cb7
Default to Cordio BLE stack for NRF52* targets
...
The BLE stack from SoftDevice is not actively maintained and
has issues when used with Nordic SDK v15.
2019-06-05 09:53:53 +01:00
toyowata
9acf2c325c
Fix device_name and add SPDX identifiers
2019-06-05 16:48:08 +09:00
toyowata
f0a06b24ba
Remove ARCH_MAX files from STM32F407xG
2019-06-05 14:51:06 +09:00
toyowata
db2cac45f1
Move Seeed ARCH_MAX to TARGET_STM32F407xE MCU
2019-06-05 14:35:25 +09:00
petroborys
54fe348078
Add support I2C 3 (#ifdef I2C2) for target EFM32G11
2019-06-04 14:31:33 +00:00
Teijo Kinnunen
728c01f9e3
STM32L0: Add DEVICE_SPI_COUNT to DISCO_L072CZ_LRWAN1 + MTB_MURATA_ABZ
...
Enables simultaneous use of both SPIs without interference.
2019-06-04 09:38:20 +03:00
Hennadiy Kytsun
7447cac66c
Cypress: Fix issue #10613
2019-06-03 16:26:52 +03:00
Rajkumar Kanagaraj
400b2ee8a7
Add HwWatchdog
...
- mbed_watchdog_mgr has interface name mbed_wdog_manager_start(),mbed_wdog_manager_stop(),mbed_wdog_manager_kick()
- HwWatchdog is going to attach with LowPowerTIcker for periodic callback functionality
- mbed_wdog_manager_start() will either get start either by BL/RTOS Aps,it reads the timeout value specified via macro and macro gets defined in target.json file.
- mbed_wdog_manager_start() internally configure below HAL hw watchdog with timeout specified via target.json
- mbed_wdog_manager_start() internally divide the timeout(specified in target.json) by the 2 and attach LowPowerTicker with periodic callback of hw_kick()
- mbed_wdog_manager_start() internally create one instance of sw watchdog class,to access the static list data structure of sw watchdog class
- mbed_wdog_manager_kick() function periodically get called and refresh the hw watchdog to avoid watchdog reset
- converted C++ code into C based APIs
- added boolean to control watchdog start and stop
- Added detach from ticker on stop API
2019-06-03 15:23:56 +02:00
Chun-Chieh Li
197b328944
[M2351] Override wait_ns to provide more accurate implementation
...
At high HCLK rate, M2351 cannot provide zero-wait-state flash performance. Besides,
cache is forcibly turned off for non-secure land for internal reason. We locate
'delay_loop_code' from flash to SRAM to achieve zero-wait-state performance.
2019-06-03 16:47:14 +08:00
Vincent Veron
16475829f1
TARGET_STM: SPI: add pulse on master transmissions
...
Add a pulse when using hardware chip select for SPI transmissions.
CS is at low level when a transmission is on-going.
Be careful, this is not compatible with all modes. It will work only
if PHA is 0, ie spi mode is 0 or 2. See stm32xx reference manual,
chapter "NSS pulse mode" for more details.
Fix #10671
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-06-03 10:00:06 +02:00
Martin Kojtal
93e4a8251c
Merge pull request #10697 from jeromecoutant/PR_H7FLASH
...
STM32H7: flash issue while erasing sector in Bank 1
2019-06-03 08:35:29 +01:00
Chun-Chieh Li
010f4225a0
[M487] Fix wait_ns test failed
2019-06-03 11:28:26 +08:00
Chris Trowbridge
cea7bbd815
Remove component 'QSPIF' for target 'EP_AGORA'
2019-05-31 09:58:23 -04:00
Martin Kojtal
8a5f25c2ea
Merge pull request #10663 from vmedcy/psoc6-cmsis
...
PSOC6: move cmsis.h and device.h out from psoc6pdl directory
2019-05-31 12:35:26 +01:00
Martin Kojtal
8aeba87f25
Merge pull request #10674 from ThunderSoft123/master
...
TARGET_TT: adding switches to PinNames
2019-05-31 12:35:10 +01:00
Martin Kojtal
7ebadbfac3
Merge pull request #10676 from jeromecoutant/PR_COMMON_CMSIS
...
STM32: common cmsis.h and device.h files
2019-05-31 12:34:53 +01:00
Martin Kojtal
99b19098b8
Merge pull request #10686 from ale87jan/master
...
MAX32630.sct fix
2019-05-31 12:34:01 +01:00
Chris Trowbridge
7531c2bb56
Remove unneeded custom_board.h file
2019-05-30 14:16:29 -04:00
Filip Jagodzinski
f4e6966e14
Remove RESET_REASON from MCU_NRF52840
2019-05-29 10:25:51 +02:00
jeromecoutant
58994d88cd
STM32H7: flash issue while erasing sector in Bank 1
2019-05-29 09:31:30 +02:00
Ronny Liu
8dabdd7bed
bootloader support for GD32_F450ZI
2019-05-29 14:40:03 +08:00
Martin Kojtal
9cc1caa031
Merge pull request #10596 from kjbracey-arm/sem_acquire
...
Introduce Semaphore::acquire methods
2019-05-29 06:22:30 +01:00
aglass0fmilk
67cc3b0faf
Added spdx identifiers and fixed indentation in targets.json
2019-05-28 10:48:09 -04:00
George Beckstein
5386b87693
Removing systick edit from sdk_config.h
2019-05-28 10:48:09 -04:00
George Beckstein
d8fbdfcac3
Disabling systick
2019-05-28 10:48:09 -04:00
George Beckstein
058060711d
Revert adding USB to STM32F407VG target
2019-05-28 10:48:09 -04:00
George Beckstein
002df471e0
Changed formatting, check if endpoint is stalled in unstall. Added errata header
2019-05-28 10:48:09 -04:00
George Beckstein
1ab27aff1f
Finished compatibility changes for nrfx renaming
2019-05-28 10:48:09 -04:00
George Beckstein
2bd024d174
Fixing compatibilities with new nrfx drivers
2019-05-28 10:48:09 -04:00
George Beckstein
09c5982a4b
Added EP0 stalls to setup event handler
2019-05-28 10:48:09 -04:00
George Beckstein
bd2605cce9
Configured sdk for enabling USB. Preliminary implementation of USB for nRF52840
2019-05-28 10:48:09 -04:00
Kevin Bracey
2fbbd9d2ca
Introduce Semaphore::acquire methods
...
Deprecate wait() in favour of acquire(), try_acquire(),
try_acquire_for() and try_acquire_until().
Brings Semaphore more into line with CMSIS-RTOS 2 (which uses "acquire"),
itself (as it has "release"), and other classes having "try", "try for"
and "try until".
Also steps away from vague "wait" term - the primary operation here is
to acquire the semaphore, and this will of course sleep.
2019-05-28 17:02:06 +03:00
ale87jan
2d492e1166
Update MAX3263x.sct
2019-05-28 12:02:51 +02:00
Martin Kojtal
19e762298f
Merge pull request #10666 from ARMmbed/feature-nrf52-sdk15
...
Nordic SDK v15 Update
2019-05-28 09:48:44 +01:00
jeromecoutant
d919498745
STM32: common cmsis.h and device.h
2019-05-27 16:27:41 +02:00
Filip Jagodzinski
61f9a1c362
KW41Z: Add a GPIO pinmap for testing
2019-05-27 14:57:01 +02:00
Filip Jagodzinski
1a9b635e7d
KW24D: Add a GPIO pinmap for testing
2019-05-27 13:21:43 +02:00
panyz0725@thundersoft.com
e0eefaed99
Modifiying file PinNames.h
2019-05-27 11:02:43 +08:00
Filip Jagodzinski
a326db8b77
K64F: Use a common peripheral name in GPIO pinmap
...
This was unnecessary since all the pins may be used independently.
2019-05-24 16:33:01 +02:00
Volodymyr Medvid
c870d6f1ba
PSOC6: move cmsis.h and device.h out from psoc6pdl directory
...
This simplifies updating of psoc6pdl directory to the latest Cypress
PSoC 6 PDL releases. cmsis.h and device.h are not part of psoc6pdl.
2019-05-24 15:16:37 +03:00
Martin Kojtal
ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
...
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Rajkumar Kanagaraj
727070e04a
Removed RESET_REASON for NRF51_DK board
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
50c6e9f481
Added the SPDX identifier
2019-05-24 12:32:53 +02:00
Rajkumar Kanagaraj
15bcb38fad
Trailing space issue fix
2019-05-24 12:32:52 +02:00
Rajkumar Kanagaraj
af0b056b05
fix for Jenkin build issue
2019-05-24 12:32:51 +02:00
Rajkumar Kanagaraj
7d5a17d955
Removed RESET_REASON for NRF52832,NRF52840 family and Removed WATCHDOG for H743ZI board
2019-05-24 12:32:50 +02:00
Rajkumar Kanagaraj
8393068770
Revert "fix for build failure issues"
...
This reverts commit 3ce1d4940cb7fd9d74ca2be75ed08b76854ff534.
2019-05-24 12:32:45 +02:00
Rajkumar Kanagaraj
e13fdc444f
fix for build failure issues
2019-05-24 12:31:28 +02:00
Rajkumar Kanagaraj
f4184b19a0
update:Remove DEVICE_WATCHDOG and added RESET_RESON in stm32 family
2019-05-24 12:28:20 +02:00
Steve Cartmell
ad295e64ba
fix(hal-watchdog): Guard TMPM 'ResetReason' code behind feature flag
2019-05-24 12:23:43 +02:00
Steve Cartmell
a63e236d84
fix(hal-watchdog): Add 'RESET_REASON' flags to supported devices
2019-05-24 12:23:42 +02:00
Steve Cartmell
8baae2475a
fix(hal-watchdog): Remove 'RESET_REASON' flags from unsupported devices
2019-05-24 12:23:41 +02:00
Steve Cartmell
544eb82a47
fix: Remove excess comma from device_has key in targets.json
2019-05-24 12:23:41 +02:00
Ganesh Ramachandran
a0c2b59475
Added reset_reason feature for TMPM3HQ
2019-05-24 12:23:39 +02:00
Steve Cartmell
7f47b0a65c
fix(hal-watchdog): Add feature guards to K64F watchdog implementation
2019-05-24 12:23:35 +02:00
Ganesh Ramachandran
5fc77d3c4a
Added reset_reason feature for TMPM3H6 & TMPM4G9
2019-05-24 12:23:33 +02:00
Ganesh Ramachandran
f6fcabb9b8
Added reset_reason feature for TMPM066 & TMPM46B
2019-05-24 12:23:29 +02:00
ccli8
84440531f1
[Nuvoton] Support watchdog timer
2019-05-24 12:20:01 +02:00
ccli8
6e514b6e08
[Nuvoton] Support reset reason
2019-05-24 11:35:44 +02:00
ccli8
717979075f
[NUC472] Fix WDT driver in BSP
2019-05-24 11:35:43 +02:00
Qinghao Shi
a6a34722ca
fix bugs introduced on rebase
2019-05-24 11:35:43 +02:00
jeromecoutant
570e9b0bf4
STM32 WATCHDOG : increase timeout value
2019-05-24 11:35:42 +02:00
jeromecoutant
4300e5d6c4
STM32 WATCHDOG : use ST HAL in order to make code commun for all STM32
2019-05-24 11:35:41 +02:00
jeromecoutant
feec85cc37
STM32 WATCHDOG : update STM32L0 HAL_IWDG_Init to a newest version
2019-05-24 11:35:41 +02:00
jeromecoutant
e29d64fc19
STM32 WATCHDOG : compilation issue with typed define
2019-05-24 11:35:40 +02:00
jeromecoutant
1b8513a5a8
STM32 Watchdog : move API file to STM family level
2019-05-24 11:35:39 +02:00
Lukas Mandak
ce574b5eef
NCS36510: Added watchdog implementation.
2019-05-24 11:35:38 +02:00
Steven Cooreman
c7bc7e5122
Add implementation of reset reason on Silicon Labs parts
2019-05-24 11:35:38 +02:00
Steven Cooreman
295c79ab0a
Add support for watchdog on Silicon Labs devices
2019-05-24 11:35:37 +02:00
Filip Jagodzinski
3d31801f4f
STM: HAL: Reset_reason: Correct return values
2019-05-24 11:35:35 +02:00
Bartek Szatkowski
585edc1f43
Disable Watchdog on Odin as it fails intermittently
2019-05-24 11:35:32 +02:00
Filip Jagodzinski
4ed0b948f4
K64F: watchdog HAL: Fix init() and stop()
...
Added a missing wait for the WCT window end. Without it, consecutive
init() or stop() calls were ignored.
2019-05-24 11:35:30 +02:00
Filip Jagodzinski
d26dba40b2
STM32F4: watchdog HAL: Fix issues found with tests
...
Fix WATCHDOG_STATUS_INVALID_ARGUMENT for timeout values from 1 ms to
407 ms (fix inability to set prescaler bits to zero).
Fix timeout <-> IWDG registers conversions.
Fix read & write access to IWDG_PR and IWDG_RLR registers.
Fix LSI RC frequency setting.
Limit MAX_TIMEOUT_MS to UINT32_MAX.
2019-05-24 11:35:29 +02:00
Steven Cartmell
2fb9fc2a8e
Rename watchdog.c -> watchdog_api.c to prevent name collision with Platform API
2019-05-24 11:35:25 +02:00
Steven Cartmell
9d571cd617
Add RESET_REASON and WATCHDOG definitions to hexiwear build target
2019-05-24 11:35:24 +02:00
Filip Jagodzinski
90bb2929e0
K64F: watchdog HAL: Fix max_timeout.
...
Limit MAX_TIMEOUT_MS to UINT32_MAX.
Improve MAX_TIMEOUT_MS handling.
Fix hal_watchdog_get_platform_features() returning
.max_timeout = 0xfffffff8 instead of 0xffffffff.
2019-05-24 11:35:23 +02:00
Steven Cartmell
2ab738fc66
Fix Watchdog::stop on K64F target
...
WDOG_Disable will suspend the watchdog until a reset is triggered instead of stopping it altogether. Deinit will disable it until it is reinitialized.
2019-05-24 11:35:22 +02:00
Steven Cartmell
e7761a1d39
Move watchdog parameter validation into the driver layer
2019-05-24 11:35:22 +02:00
Steven Cartmell
31924b2481
Add missing license headers
2019-05-24 11:35:21 +02:00
Steven Cartmell
7c392a16d4
Remove window and sleep mode options for watchdog API
2019-05-24 11:35:13 +02:00
Steven Cartmell
8fa38bb25b
Add Watchdog driver API
2019-05-24 11:20:26 +02:00
Steven Cartmell
366893ae71
Add independent watchdog reference implementation for STM32
2019-05-24 11:20:25 +02:00
Steven Cartmell
6b3d790fc1
Add function to fetch platform specific reset reason register values
2019-05-24 11:20:24 +02:00
Steven Cartmell
1ec22fee05
Add reset reason reference implementation STM32
2019-05-24 11:20:23 +02:00
Steven Cartmell
8a97101988
Fix watchdog API issues
...
- Fix typo in module comment
- Redefine the default system behaviour in sleep mode
- Guard K64F enableWait flag
- Remove bit shifts from reset reason enum
2019-05-24 11:20:22 +02:00
Steven Cartmell
c258acc222
Add simple watchdog reference implementation for K64F
...
- Add preprocessor guard to watchdog api that errors if the reset reason api is not also implemented
- Add RESET_REASON and WATCHDOG to K64F targets.json
- Add watchdog reference implementation
2019-05-24 11:20:21 +02:00
Steven Cartmell
efcdca8b0f
Add K64F reset reason reference implementation
2019-05-24 11:20:20 +02:00
Martin Kojtal
cfb107912b
Merge pull request #10616 from ThunderSoft123/master
...
Fix bug Operator new[] out of memory
2019-05-23 21:40:10 +01:00
Martin Kojtal
4567626ade
Merge pull request #10636 from u-blox/activation_status
...
+UPSND sent to poll activation status
2019-05-23 21:39:48 +01:00
Martin Kojtal
80d7cb2e17
Merge pull request #10631 from VVESTM/update_cube_h7
...
Update cube h7 to 1.4.0
2019-05-23 21:36:38 +01:00
Martin Kojtal
3f756f0769
Merge pull request #10591 from OpenNuvoton/nuvoton_m2351_fix_spdmc_sync
...
M2351: Fix serial sync error in SPDMC test
2019-05-23 21:36:15 +01:00
Martin Kojtal
02b91bdfca
Merge pull request #10582 from malavikasajikumar/master
...
Adding LED4 definition in PinNames.h of SDP-K1 board.
2019-05-23 21:35:42 +01:00
Chris Trowbridge
f81130dd23
Update licenses for EP_AGORA target
2019-05-23 11:30:25 -04:00
Filip Jagodzinski
5bc873239e
K64F: Add a GPIO pinmap for testing
2019-05-23 14:29:26 +02:00
Vincent Veron
d8e1e43e35
H7 ST CUBE : remove unecessary #if 1 instead of USE_FULL_LL_DRIVER
...
Keep #define USE_FULL_LL_DRIVER and define this switch in target.json
Signed-off-by: Vincent Veron <vincent.veron@st.com>
2019-05-23 14:01:01 +02:00
Vincent Veron
80b41f0276
H7 ST CUBE V1.4.0
2019-05-23 14:01:00 +02:00
RFulchiero
b34057f933
Fix targets.json for MTB_LAIRD_BL654
...
When removing CryptoCell310 we now need to define:
NRFX_RNG_ENABLED=1
RNG_ENABLED=1
NRF_QUEUE_ENABLED=1
These are brought in via "macros_add".
2019-05-23 11:31:40 +08:00
RFulchiero
3343022f70
Remove redundant legacy files and definition of PACKED
...
* The following v14.2 files are removed from nrfx/legacy:
nrf_drv_clock.h
nrf_drv_common.h
nrf_drv_gpiote.h
nrf_drv_spi.h
nrf_drv_twi.h
nrf_drv_uarth.h
* Remove unneeded references to "nrfx_glue.h" and "nrf_drv_common.h"
* Remove the definition of PACKED from app_util_platform.h (already defined
in mbed_toolchain.h)
2019-05-23 11:31:40 +08:00
RFulchiero
8550fd0ed2
Fix preprocessor conditionals for AC6 build
2019-05-23 11:31:39 +08:00
RFulchiero
5c276f2c0e
Fix SOFTDEVICE_NONE builds and clean up
...
* Update all scatterfiles to define MBED_RAM_START and MBED_RAM_SIZE. These
get defined in mbed_lib.json when building with a SoftDevice but were missing
when no SoftDevice is brought in.
* Remove SDK 14.2 SoftDevice files.
* Add missing header file to qspi_api.c.
2019-05-23 11:31:38 +08:00
RFulchiero
2690f0f8bc
Update QSPI in the SDK to support long frame mode
...
* Carry forward changes made to v14.2SDK to support long frame mode
(from commit 2a72bb67a3
).
* Fixed a few driver calls from rebase
2019-05-23 11:31:35 +08:00
RFulchiero
8237229530
Rebase to master in preparation for v5.12.0
2019-05-23 11:31:35 +08:00
Desmond Chen
4e8eed07e5
Fix nrf section iter macro check
2019-05-23 11:31:33 +08:00
Naveen Kaje
e8e1ef2a70
NRF52: reloc_vector_table: check the RTS pin settings in code
...
Move the check from preprocessor to the if condition
2019-05-23 11:31:33 +08:00
Desmond Chen
c048a34e00
Add BLE feature to mbed_lib.json of SoftDevice
2019-05-23 11:31:32 +08:00
RFulchiero
f8e2b7e679
Update file header at TARGET_NRF52 level
...
- Update (c) year and company name
- Add SPDX-License-Identifier
- Impacted files:
- Files touched for SDK15 port
- Files added in 2018
2019-05-23 11:31:32 +08:00
RFulchiero
bd6edc4917
Remove RTC from nRF52840_DK and DELTA_DFCM_NNN50 (was testing)
2019-05-23 11:31:32 +08:00
RFulchiero
cf162cdbab
Remove duplicate file
2019-05-23 11:31:31 +08:00
Desmond Chen
d20ca05a68
Fix SoftDevice configuration on NRF52_DK
2019-05-23 11:31:31 +08:00
Desmond Chen
b69dc2bdae
Update BLE SoftDevice from SDK14 to SDK15
...
- Adjust memory for SoftDevice
- Enable PRIO=5 for interrupt priority check
- Change NRF_SD_BLE_API_VERSION to 6
- Add handle and buffer for advertising and scanning
- Remove guard for phy update
- Change scatter files and mbed_lib.json for PR #8607
2019-05-23 11:31:31 +08:00
Desmond Chen
2fbc20f9b1
Fix timer1 irq configuration
2019-05-23 11:31:30 +08:00
Naveen Kaje
b17601ef43
NRF52: Cleanup unused code
2019-05-23 11:31:29 +08:00
Naveen Kaje
8eaf87cd50
NRF52: serial: fix build warnings
2019-05-23 11:31:29 +08:00
RFulchiero
e9a3ca6259
Set the PWM clock prescaler back to default (1MHz clock)
2019-05-23 11:31:29 +08:00
RFulchiero
501000e6a2
Changes required for rebase:
...
- Brought in new nrfx APIs
- Brought in PPI additions
- Removed dead code for RTC
2019-05-23 11:31:28 +08:00
RFulchiero
36c70a1c78
Enabling NRFX_PPI_ENABLED for serial_api updates
2019-05-23 11:31:26 +08:00
RFulchiero
74cb69873c
Cleanup for feature release
...
* Update TARGET_NRF5x/README.md to improve "Changing SoftDevice" section
and added section on NRF52840 CryptoCell310 Support
* Update the file list in TARGET_SDK_15_0/TARGET_SOFTDEVICE_COMMON/README.md
* Add missing CR-LF to Nordic-provided SDK file
* Rename a header file in the TARGET_SOFTDEVICE_S112 tree
2019-05-23 11:31:26 +08:00
RFulchiero
2a968d4d35
Revert "NRF52: Fix vector table"
...
This reverts commit 3d2fa535a71b7bad08c6a91a31d74f4492c8948c.
This was a breaking change for the "MBR" and "NONE" builds.
After testing it was also determined that copying the vector
table a second time wasn't required for the "FULL" build.
2019-05-23 11:31:26 +08:00
Ralph F
742d10fcc2
Add missing SoftDevice build support (MBR, NONE, OTA)
...
- Add MBR, NONE and OTA SoftDevice build options for S132 and S140
- Add S112 SoftDevice (single build option)
- Some folder restructuring in TARGET_SOFTDEVICE_COMMON was required
2019-05-23 11:31:25 +08:00
RFulchiero
3e3ac27698
Remove dead #define PORT_SHIFT
...
nRF5x PinNames.h never utilized PORT_SHIFT so removed for clarity after
user commented on it.
2019-05-23 11:31:24 +08:00
RFulchiero
fa84352752
Fix build for nRF51 (fewer common files with nRF52)
...
The 15.0 SDK doesn't support the nRF51 so it must continue to use the legacy
NRF drivers. Thus the original common_rtc.c, gpio_api.c and us_ticker.c are
restored and placed under TARGET_NRF5x/TARGET_NRF51.
Likewise the modified common_rtc.c, gpio_api.c and us_ticker.c are moved to
TARGET_NRF5x/TARGET_NRF52 so they are excluded from nRF51 builds.
2019-05-23 11:31:23 +08:00
RFulchiero
e85106129a
Updates after rebase with Mbed master (circa OS v5.10.1)
...
* Remove NRF_SDH_CLOCK parameters from mbed_lib.json
* Bring in QSPI for nRF52840
* Migrate legacy QSPI driver to SDK v15 (nrfx_qspi.h)
* Remove outdated comment in i2c_api.c
2019-05-23 11:31:23 +08:00
Naveen Kaje
6064ef30e9
NRF52: Fix vector table
...
Ensure that vector table gets initialized properly. The table that we
initialize in startup_nrf52840.S gets wiped out as the section is
declared as noinit. Fix this by implementing the weak function mbed_sdk_init
that inits the vector table.
2019-05-23 11:31:22 +08:00
RFulchiero
f79531414f
nRF52_DK: Use mbed_lib.json to set app_offset (MBED_APP_START)
...
When the SoftDevice (SD) is enabled we need to set the app_offset
to 0x26000 to make room for the SoftDevice. If we let the build
tools self-manage this, MBED_APP_START is coming out at 0x25000
which is not correct for the Nordic 15.0 SDK.
The app_offset value is translated to MBED_APP_START by the build
infrastructure. We were hard coding MBED_APP_START in the scatter
and ld files as a temporary measure while testing. This now sets
it properly if the SD is being brought in.
2019-05-23 11:31:22 +08:00
RFulchiero
317598604a
nRF52832 needs NRFX_RNG_ENABLED to use the legacy driver
2019-05-23 11:31:22 +08:00
Naveen Kaje
35c14ebbe3
NRF52832: enable UART
2019-05-23 11:31:21 +08:00
Naveen Kaje
d875c2ba2e
NRF: enable PRS (Peripheral Resource Sharing) for NRF52832 and NRF52840
2019-05-23 11:31:21 +08:00
Naveen Kaje
976ba7d4da
NRF52: i2c_api: port from Softdevice 14.2 to 15.0
2019-05-23 11:31:20 +08:00
Naveen Kaje
4f9782dfeb
NRF52: spi_api: port from Softdevice 14.2 to 15.0
2019-05-23 11:31:20 +08:00