Commit Graph

1045 Commits (392e36b424a8c0a6be4e6cc81fc7736466401c46)

Author SHA1 Message Date
Sam Grove 4a6558083e Merge pull request #2814 from bcostm/adcintch_F3
STM32F3xx - Add support of ADC internal channels
2016-09-27 21:54:27 -07:00
Sam Grove 681cff8010 Merge pull request #2785 from pan-/remove_warnings_from_nordic_target
TARGET_NRF - Remove warnings from nordic target.
2016-09-27 21:53:28 -07:00
Sam Grove d204d69003 Merge pull request #2749 from bcostm/serialFC_disco-f746ng
DISCO_F746NG - Add Serial Flow Control pins
2016-09-27 21:52:37 -07:00
Sam Grove 50c30d384d Merge pull request #2741 from pan-/conf_flush_at_exit
Add configuration for IO flushing during exit.
2016-09-27 21:52:13 -07:00
Sam Grove 5ef720246b Merge pull request #2726 from jeromecoutant/PR_NUCLEO_F207ZG_D11
[NUCLEO_F207ZG] Conflict with Arduino D11 and Ethernet port
2016-09-27 21:51:48 -07:00
Sam Grove 66329c4e71 Merge pull request #2827 from MultiTechSystems/xdot-add-release
include MultiTech xDot in mbed 5 releases
2016-09-27 18:42:58 -07:00
Mike Fiore 7b2942157a [XDOT_L151] add IAR support 2016-09-27 16:09:15 -05:00
Andres AG 21a7b1de04 Modify mbedtls scripts to add config-no-entropy.h 2016-09-27 16:19:39 +01:00
Mike Fiore 1b8cb3ca76 [XDOT_L151] include xDot in mbed 5 releases 2016-09-27 08:48:08 -05:00
jeromecoutant dfbb5675ed [STM32F429ZI] INITIAL_SP correction 2016-09-27 14:39:20 +02:00
Głąbek, Andrzej d0eed52cde Removed waiting for TX completed from 'serial_putc()', moved it to 'serial_init()' to allow passing tests MBED_37/38. 2016-09-27 14:03:42 +02:00
Martin Kojtal e0a48e9f6b K64F: add EMAC device_has 2016-09-27 10:23:45 +01:00
Martin Kojtal ef58562ad0 targets - add TRNG device_has to STM32F7 targets 2016-09-27 09:14:48 +01:00
Martin Kojtal 88b2220548 TRNG HAL - fix length doc wording for get_bytes 2016-09-27 09:14:37 +01:00
Martin Kojtal 48544fc6eb HAL TRNG - add dummy variable to empty structs
Otherwise it's implementation specific, IAR fails to compile.
2016-09-27 09:14:31 +01:00
Martin Kojtal f8c6c23ced TRNG - protect HAL implementation if DEVICE_TRNG is not defined 2016-09-27 09:14:26 +01:00
Martin Kojtal 9048113562 TRNG - remove set seed function 2016-09-27 09:14:21 +01:00
Martin Kojtal ea1041ea36 HAL - RNG rename to TRNG 2016-09-27 09:13:59 +01:00
Martin Kojtal da1b423685 HAL - rng nuvoton cleanup code style 2016-09-27 08:51:53 +01:00
Martin Kojtal a225bafdbb RNG - fix warnings due to obj not used for some targets 2016-09-27 08:51:51 +01:00
Martin Kojtal e8ca16dde7 RNG - rename rng_get_numbers to rng_get_bytes 2016-09-27 08:51:49 +01:00
Martin Kojtal 1d9cacbbd2 HAL: Add rng set seed value function 2016-09-27 08:51:45 +01:00
Martin Kojtal 5e351c201a NUMAKER_PFM_NUC472: Add RGN HAL API implementation 2016-09-27 08:51:42 +01:00
Martin Kojtal 72fac611f2 STM32F4/F7: Add RNG HAL implementation 2016-09-27 08:51:40 +01:00
Martin Kojtal 02fd613a81 k66f: add RNG HAL implementation 2016-09-27 08:51:37 +01:00
0xc0170 132a5bbff3 k64f: add RNG HAL implementation
Replaces old mbedtls entropy file, to use new RNG HAL API.
2016-09-27 08:51:31 +01:00
0xc0170 6da5515e1c HAL: add RGN API
Provides init, free and get numbers functions.
2016-09-27 08:51:26 +01:00
Mike Fiore 4820c87c68 [XDOT_L151] add SWD & UART pin names to match pinout diagram 2016-09-27 00:13:08 -07:00
Mike Fiore a93b7d2651 [XDOT_L151] add RTOS configuration for xDot 2016-09-27 00:13:08 -07:00
Mike Fiore 1f40f3de97 [XDOT_L151] initial SP for ARM_STD build was set to 0x2008000 instead of 0x20008000 & caused DAPLink to reject FW 2016-09-27 00:13:08 -07:00
Mike Fiore 7836c6eaf1 rebase support for MultiTech xDot platform
[XDOT_L151] copy new target CMSIS files from NZ32_SC151 target

[XDOT_L151] remove Modtronix code, add HardFault_Handler, update clock configuration to match xDot hardware

[XDOT_L151] copy new target HAL files from NZ32_SC151 target

[XDOT_L151] update HAL to match xDot hardware

[XDOT_L151] add xdot_eeprom.* and xdot_low_power.* files

[XDOT_L151] add RTOS support for target

Conflicts:
	rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c

[XDOT_L151] match NUCLEO_L152RE startup code for GCC_ARM so RTOS works

[XDOT_L151] fix GPIO write failure

[XDOT_L151] add XDOT_L151CC target to targets.json

[XDOT_L151] change xDot default stack size to 256 bytes and main stack size to 1.5kB

[XDOT_L151] update PinNames.h to match rev E hardware - no change to external pinout

[XDOT_L151] update style in custom xDot HAL files

Conflicts:
	rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h
	rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c
2016-09-27 00:13:08 -07:00
Vincent Coubard 815551380f TARGET_NRF51_DONGLE_LEGACY - Add NRF51_DONGLE to the list of paths available for this target. 2016-09-26 23:56:33 -07:00
Vincent Coubard 46ab3cab79 NRF51_DK_LEGACY: Add the path TARGET_NRF51_DK to the list of available paths.
This fix the build of this target.
2016-09-26 23:56:33 -07:00
Vincent Coubard d61ab652de NRF51_DONGLE - remove ANALOGIN from the list of capabilities. 2016-09-26 23:56:33 -07:00
Vincent Coubard 8f79b6dbc8 NORDIC - Update NRF51_DONGLE target to takes advantage of the NRF5 implementation
of BLE and device drivers.
2016-09-26 23:56:33 -07:00
Vincent Coubard 9dd0c672ca HAL - Add a newline at the end of hal/api/Callback.h.
This remove a warning issued by ARMCC.
2016-09-26 23:10:24 -07:00
svastm 9f85f77001 STM32F7 - Add low power timer
Enable the low power timer for the following targets:
 - NUCLEO_F746ZG
 - NUCLEO_F767ZI
 - DISCO_F746NG
 - DISCO_F767ZI
2016-09-26 21:34:07 -07:00
svastm 49335577e1 STM32F7 - Add low power timer 2016-09-26 21:34:07 -07:00
Sam Grove 5310c2e2cd Merge pull request #2762 from svastm/lp_timer_l0
STM32L0 - Add low power timer
2016-09-26 21:33:27 -07:00
0xc0170 20f5adbab2 Merge branch 'master' into feature_wifi
Conflicts:
	features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.cpp
	features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c
	features/net/FEATURE_IPV4/lwip-interface/lwip_stack.h
	features/net/network-socket/WiFiInterface.h
2016-09-26 16:36:17 +01:00
Christopher Haster c3e0569768 callback - Fixed parameter misname
Problematic line:
memcpy(&_func, obj, sizeof obj);

Should be:
memcpy(&_func, method, sizeof method);

Introduced during renaming of callback arguments for clarity:
https://github.com/ARMmbed/mbed-os/pull/2794
2016-09-26 10:08:39 -05:00
svastm e319d903ab STM32L0 - Enable the low power timer
Enable the low power timer for the following targets:
 - NUCLEO_L053R8
 - NUCLEO_L073K8
 - NUCLEO_L011K4
 - NUCLEO_L031K6
 - DISCO_L053C8
2016-09-26 16:29:03 +02:00
svastm 85718c51ec STM32L0 - Add low power timer 2016-09-26 16:26:55 +02:00
bcostm e1d169ec7d STM32F3xx - Add ADC internal channels "pins" 2016-09-26 14:54:36 +02:00
bcostm 39e71829f0 STM32F3xx - Add one more bit for the channel number. Declare ADC internal channels "pins". 2016-09-26 14:54:05 +02:00
bcostm 213b44d3fc STM32F3xx - Disable GPIO configuration for ADC internal channels 2016-09-26 14:51:50 +02:00
Vincent Coubard 68317215e5 TARGET_MCU_NRF51822 - remove non accessible return. 2016-09-26 13:29:10 +01:00
Vincent Coubard 18370ab258 TARGET_MCU_NRF51822 - Fix padding warning with ARMCC.
See http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0496c/CACHCBBJ.html
for A1581W.
2016-09-26 13:29:09 +01:00
Vincent Coubard 039584332e TARGET_NRF5 - Explicitaly convert objects uint32_t to object of type PinName. 2016-09-26 13:29:05 +01:00
Vincent Coubard 80740dda06 TARGET_NRF - Fix possible invalid comparison. 2016-09-26 13:28:44 +01:00
Vincent Coubard 0e0cc2687a TARGET_NRF5 - Fix signed to unsigned comparison. 2016-09-26 13:28:42 +01:00
Vincent Coubard 54f52d7a5f TARGET_MCU_NRF51822 - Initialize uninitialized variable in spi_api.c.
Even if that wasn't dangerous, this changes makes the compiler happy.
2016-09-26 13:28:41 +01:00
Vincent Coubard 36c001d0e8 TARGET_MCU_NRF51822 - Fix inline keyword position. 2016-09-26 13:28:39 +01:00
Vincent Coubard ede837df7c Nordic - reorder __INLINE qualification to avoid warning. 2016-09-26 13:28:37 +01:00
Vincent Coubard 4ae2453eb6 NORDIC - remove the unused and incorrect PACKED() macro from the Nordic SDK.
This macro is not used anywhere.
2016-09-26 13:28:36 +01:00
Toyomasa Watarai 6478a07859 [LPC1347] Fix cast warning for GCC_ARM 2016-09-26 16:16:27 +09:00
Toyomasa Watarai ec406b1740 [LPC1347] Fix PwmOut prescaler for 16-bit timer
* Fix PwmOut prescaler for 16-bit timer
* Remove static variable pwm_clock_mhz
* Fix spike pulse issue when 0% duty
2016-09-26 16:06:01 +09:00
Sam Grove c49e970909 Merge pull request #2794 from geky/callback-c-order
callback - Reorder optional argument to static C function
2016-09-25 22:07:45 -05:00
Sam Grove 78a2d289e7 Merge pull request #2792 from jeromecoutant/PR_NUCLEO_F303ZE
[NUCLEO_F303ZE] MBED-OS5 capability
2016-09-24 16:48:31 -05:00
Sam Grove 24f9612da5 Merge pull request #2775 from NXPmicro/KSDK_SDHC_Driver_Update
Update KSDK SDHC driver for K64F & K66F
2016-09-24 16:47:48 -05:00
Sam Grove c4748e2e75 Merge pull request #2771 from svastm/fix_deepsleep_l4
STM32L4 - Update deepsleep implementation
2016-09-24 16:45:38 -05:00
Sam Grove 35a8b1fdea Merge pull request #2764 from svastm/lp_timer_l4
STM32L4 - Add low power timer
2016-09-24 16:44:32 -05:00
Sam Grove 7d464b18a2 Merge pull request #2763 from svastm/lp_timer_l1
STM32L1 - Add low power timer
2016-09-24 16:44:15 -05:00
Sam Grove a765afddf0 Merge pull request #2759 from svastm/lp_timer_f0
STM32F0 - Add low power timer
2016-09-24 16:41:37 -05:00
Sam Grove 3c6776f9bf Merge pull request #2753 from jeromecoutant/PR_NUCLEO_F767ZI_CAN
[NUCLEO_F767ZI] Add CAN capability
2016-09-24 16:41:10 -05:00
Sam Grove 6d628f6e1a Merge pull request #2751 from bcostm/serialFC_L0
STM32L0xx - Add Serial Flow Control
2016-09-24 16:40:54 -05:00
Sam Grove 2eb0b2ca6b Merge pull request #2747 from toyowata/master
[LPC11U68] Fix pin interrupt select offset
2016-09-24 16:40:36 -05:00
Sam Grove 97c2734b49 Merge pull request #2734 from tung7970/fix-mbedos
Fix signed/unsigned comparison warning in SerialBase.cpp
2016-09-24 16:39:29 -05:00
Sam Grove 29b0551eb7 Merge pull request #2728 from andreaslarssonublox/eth_fix
Added ethernet and enabled IPV4 feature for the EVK-ODIN-W2/C029 target
2016-09-24 16:35:49 -05:00
Sam Grove 1934e20959 Merge pull request #2719 from NXPmicro/Update_ARM_Linker_File
Updated ARM linker scripts for Kinetis platforms that use SDK 2.0
2016-09-24 16:33:21 -05:00
Sam Grove bd3d6abbc4 Merge pull request #2715 from pan-/NDEBUG_optimization
Allow the trace output by mbed error to be conditional of NDEBUG.
2016-09-24 16:32:34 -05:00
Sam Grove ad0b9c2efd Merge pull request #2707 from stevew817/feature/IAR_GiantGecko
[EFM32] Add IAR support for remaining Silicon Labs targets
2016-09-24 16:29:52 -05:00
Sam Grove 60f661da62 Merge pull request #2684 from nvlsianpu/introduce_peer_manager
[BLE NRF5] introduce the SDK nRF5 Peer manager into BLE security features
2016-09-24 16:28:18 -05:00
Sam Grove 8e473be5f3 Merge pull request #2622 from egostm/dev_i2c_asynch
[STM32F4] Add asynchronous I2C
2016-09-24 16:27:20 -05:00
Sam Grove 63f5854761 Merge pull request #2585 from beeverycreative/master
Added support for ADC only pins in LPC43xx
2016-09-24 16:26:50 -05:00
Sam Grove 297597c7f4 Merge pull request #2415 from svastm/serial_asynch_f0
[STM32F0] Add asynchronous serial
2016-09-24 16:22:55 -05:00
Sam Grove f0c00bfd21 Merge pull request #2586 from tung7970/feature-rtx-config
RTOS - Move per-target RTX config to mbed_rtx.h
2016-09-23 15:21:39 -05:00
Martin Kojtal 8bfd108aa5 Merge pull request #2729 from bulislaw/feature_wifi
HAL: Add Emac interface
2016-09-23 12:52:13 +01:00
Toyomasa Watarai 1553c45fd2 break statement is on new line 2016-09-23 19:13:33 +09:00
Christopher Haster b371eb5269 callback - Reordered optional argument to static C function
Before:
Callback<void()> a = callback(obj, member)
Callback<void()> b = callback(context, function)

After:
Callback<void()> a = callback(obj, member)
Callback<void()> b = callback(function, context)

This ordering is more intuitive based on feedback from users. This order
was initially considered but proved problematic when integrated with
other variable arguments in attach functions.

With `callback` as a separate convenience function, this style
no longer presents a problem.
2016-09-23 04:52:58 -05:00
svastm 6d73dd338b STM32L4 - Update deepsleep implementation 2016-09-23 11:42:48 +02:00
Bartek Szatkowski ed0dfb48ea HAL: Add Emac interface 2016-09-23 10:34:21 +01:00
Martin Kojtal e4dde3460f Merge pull request #2774 from AlessandroA/uvisor_rpc
uVisor: Update to v0.25.0
2016-09-23 09:48:07 +01:00
jeromecoutant ad4680abd2 [NUCLEO_F303ZE] MBED-OS5 capability 2016-09-23 09:24:55 +02:00
Erwan GOURIOU 22d6bc076a [dev_asynch_i2c] reduce footprint for i2c_s struct 2016-09-22 09:52:21 +02:00
Erwan GOURIOU d7dda282c2 [dev_asynch_i2c] Extend asynch I2C to STM32F4 boards
Move i2c_s to common_objects.h
Introduce I2C Master/Slave asynch test
Test I2C asynch master/slave on STM32F4 boards
2016-09-22 09:52:21 +02:00
Erwan GOURIOU 1707b3c582 [dev_asynch_i2c] Move i2c_s to common_objects.h 2016-09-22 09:43:52 +02:00
Erwan GOURIOU 8982ff1971 [dev_i2c] Fix I2C byte transfer API to enable Master/Slave test on F411RE
i2c_byte_write could be used to send byte and address.
In case used for address, ADDR Flag should be reset.
2016-09-22 09:39:10 +02:00
Erwan GOURIOU d2c3dc3d08 [dev_asynch_i2c] HAL Fix to support Master Rx w/ repeated start
As per reference manual, closing communication for master receiver
with repeated start requires, after reading second last data byte
(after second last RxNE event):
-Clearing ACK bit (same as non repeated start case)
-Set START bit (instead of STOP bit in non repeated start case)
This is valid for I2C_FIRST_FRAME and I2C_NEXT_FRAME conditions
2016-09-22 09:39:10 +02:00
Erwan GOURIOU 4b42fc5a22 [dev_asynch_i2c] Test Asynch I2C on F411RE
Add single board I2C master/slave asynch test
2016-09-22 09:39:10 +02:00
Erwan GOURIOU 7632f7aa5c [dev_asynch_i2c] Enable asynch I2C on NUCLEO_F411RE
Dev Asynch I2c
One limitation linked to HAL bug:
Master RX(Repeated Start) KO
2016-09-22 09:34:51 +02:00
Tony Wu aa663ea42d RTOS - Move per-target RTX config to mbed_rtx.h
Disintegrate global RTX target config. Move per-target fragment
to mbed_rtx.h under each vendor's directory.

One mbed_rtx.h is defined for each vendor at this moment, however,
the granularity of mbed_rtx.h can be per-chip, or per-board
if necessary.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-22 15:09:49 +08:00
Sam Grove 0c0455bf3f Merge pull request #2745 from pan-/disable_global_objects_destruction
Disable global objects destruction
2016-09-22 00:48:08 -05:00
Sam Grove 28013dddc4 Merge pull request #2650 from svastm/lp_timer_f3
STM32F3 - Add low power timer
2016-09-22 00:47:30 -05:00
Sam Grove 4fa65a656e Merge pull request #2542 from LMESTM/dev_spi_asynch_stm32f4
Dev spi asynch stm32f4
2016-09-22 00:45:08 -05:00
Mahadevan Mahesh c3b4a43bec Update KSDK SDHC driver for K64F & K66F
1. Use function pointer for interrupt handler, this should reduce the code-size
   for applications that do not use this driver
2. Fix the wait for initialization of the SD card
3. Fix SDHC driver support for non-word aligned accesses
4. Remove some redundant code & assert function calls.
5. Updated various comments

Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-21 12:07:09 -05:00
Alessandro Angelino 373b0ba34a CMSIS 5: Virtualize NVIC_SystemReset
This applies only when the virtualization option is explicitly set.
Currently only uVisor virtualizes the NVIC APIs.
2016-09-21 17:15:42 +01:00
Martin Kojtal 2866e21bea Merge pull request #2701 from simonqhughes/master
CFSTORE Integration with Storage-Volume-Manager and Flash-Journal API update to the latest versions
2016-09-21 17:03:31 +01:00
svastm e38b1d12fb STM32L1 - Enable the low power timer
Enable the low power timer for the NUCLEO_L152RE
2016-09-21 10:57:15 +02:00
svastm 37ee192205 STM32L1 - Add low power timer 2016-09-21 10:56:37 +02:00