Commit Graph

7623 Commits (mbed-os-5.1)

Author SHA1 Message Date
Erwan GOURIOU ca0c4e84cb Enable asynch I2C on NUCLEO_F411RE
Dev Asynch I2c
One limitation linked to HAL bug:
Master RX(Repeated Start) KO
2016-09-28 13:50:14 +01:00
Erwan GOURIOU 70266258fd Update I2C Tests to support F411 2016-09-28 13:50:13 +01:00
Marcos Gomes 6b44a61534 Updated with code style guidelines 2016-09-28 13:50:11 +01:00
Marcos Gomes 5d4dda9ecb Added support for ADC only pins in LPC43xx 2016-09-28 13:50:10 +01:00
svastm bda2c51153 Add tests for asynchronous serial 2016-09-28 13:50:09 +01:00
svastm 4a80c3d443 Enable asynchronous serial 2016-09-28 13:50:08 +01:00
svastm c4382665ac Add asynchronous serial 2016-09-28 13:50:07 +01:00
Jimmy Brisson ab22d5ec3b Refactor Target and Config away from global variables 2016-09-28 13:50:05 +01:00
Sarah Marsh a56b4ba0b1 New build tests.
*Changes*
- Parallel export
- mbed-os tests added
- specified release version (default to 5)
- default tests AND targets dependent on specified release version
2016-09-28 13:50:03 +01:00
jeromecoutant 60e8839ffb tcp_client_hello_world K&R style 2016-09-28 13:50:02 +01:00
jeromecoutant 3035d80356 tcp_client_hello_worldminor update 2016-09-28 13:50:01 +01:00
jeromecoutant ea692cf623 FEATURE_IPV4/TESTS: result status could be wrong
result status should be set to false by default before starting test execution.
2016-09-28 13:49:59 +01:00
Jinhui-Lin b52c349e17 Update CONTRIBUTING.md
update some old URL(mbedmicro/mbed) to new(ARMmbed/mbed-os) for not confusing contrabutors
2016-09-28 13:49:58 +01:00
svastm 64937086cb STM32F3 - Enable the low power timer
Enable the low power timer for the following targets:
 - NUCLEO_F302R8
 - NUCLEO_F303K8
 - NUCLEO_F303RE
 - NUCLEO_F334R8
 - DISCO_F334C8
 - DISCO_F303VC
2016-09-28 13:49:57 +01:00
svastm 7d99a20ae0 STM32F3 - Add low power timer 2016-09-28 13:49:56 +01:00
jeromecoutant 6c98b11a71 RTOS_1: patch correction 2016-09-28 13:49:54 +01:00
jeromecoutant 26f8dd94cf STM32F070RB/STM32F072RB: issue with some mbedmicro-rtos-mbed tests
Status is now OK
2016-09-28 13:49:53 +01:00
jeromecoutant 85f4516fce STM32F070RB/STM32F072RB: decrease thread_stack_main size
Thread_stack_main is by default too large for this 16K target
2016-09-28 13:49:52 +01:00
jeromecoutant 10a5f47900 STM32F070RB/STM32F072RB: RTOS tests
Make all RTOS tests OK
2016-09-28 13:49:51 +01:00
jeromecoutant 034e70f559 correct INITIAL_SP 2016-09-28 13:49:49 +01:00
Marcelo Salazar 8972cefcda Minor tweak on spaces 2016-09-28 13:49:48 +01:00
Marcelo Salazar e79ce44ce5 Minor fix to match with master 2016-09-28 13:49:47 +01:00
Marcelo Salazar 3d7a978c16 Change default uvision exporter to uvision5
uVision4 is no longer maintained by the Keil team (support was stopped
long time ago).

This is why we need to make the uvision exporter able to generate uVision5
projects by default (which is based on software packs).

Also, adding note that the uvision4 exporter is now deprecated and will be
removed in the future.
2016-09-28 13:49:46 +01:00
Laurent MEUNIER 642a777ff9 fixup! UTEST Spi Asynch 2016-09-28 13:49:44 +01:00
Laurent MEUNIER e32999c9e6 Avoid SPI spurious interrupt
If SPI TXE is not disabled at the end of transfer, MBED application
callback that is registered for transfer completion might be called twice
2016-09-28 13:49:43 +01:00
Laurent MEUNIER 9323ad204a Simplify spi Asynch transfer implementation
Following discussion on:

it seems now clear that the transfer API is meant to be used either
with only Rx, or only Tx or Rx and Tx with the same lenth.

Therefore we're removing support of transfers of Rx and Tx with different
lenghts - this makes porting to HAL more direct and simpler.
2016-09-28 13:49:42 +01:00
Laurent MEUNIER bcf7ee2e51 enable SPI ASYNCH 2016-09-28 13:49:41 +01:00
Laurent MEUNIER 72bf698f44 UTEST Spi Asynch
Update test to be able to test on NUCLEO boards using generic
default pins definitions
2016-09-28 13:48:56 +01:00
Laurent MEUNIER a37bee3681 SPI: avoid duplicate information accross layers
Same information was stored in spi_api.c and STM32 HAL layers.
Modify code to avoid this duplicate information.
2016-09-28 13:48:55 +01:00
Laurent MEUNIER a16cc6fa17 SPI ASYNCH support
This commit is highly derived from an existing work from salkinium.

It adds SPI ASYNC support to STM32 F4 devices. This required a small
rework of the structure to have SYNCH and ASYNCH co-exist.
2016-09-28 13:48:53 +01:00
Laurent MEUNIER d47628c2a9 move spi_s to common file 2016-09-28 13:48:52 +01:00
jeromecoutant 8fdf183fef IPV4 feature hal files factorisation
Same code was duplicated for all STM32 targets
2016-09-28 13:48:51 +01:00
Christopher Haster 71e115723d lwip - Fixed error code on disconnect TCP socket
Fixed to return 0 on successful shutdown
2016-09-28 13:48:50 +01:00
TsungtaWu c50d655a53 make "macros_add" as a single line
make "macros_add" as a single line
2016-09-28 13:48:48 +01:00
Tony Wu 0d95be055d LPC11U6X - Fix multiple definition of operator new/delete
Fix the following linker errors:

ToolException: ./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new(unsigned int)':
startup_LPC11U68.cpp:(.text._Znwj+0x0): multiple definition of `operator new(unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znwj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator new[](unsigned int)':
startup_LPC11U68.cpp:(.text._Znaj+0x0): multiple definition of `operator new[](unsigned int)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._Znaj+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete(void*)':
startup_LPC11U68.cpp:(.text._ZdlPv+0x0): multiple definition of `operator delete(void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdlPv+0x0): first defined here
./.build/LPC11U68/GCC_ARM/mbed-os/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.o: In function `operator delete[](void*)':
startup_LPC11U68.cpp:(.text._ZdaPv+0x0): multiple definition of `operator delete[](void*)'
./.build/LPC11U68/GCC_ARM/mbed-os/hal/common/retarget.o:retarget.cpp:(.text._ZdaPv+0x0): first defined here
collect2: error: ld returned 1 exit status

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-28 13:48:47 +01:00
Tony Wu 9c1c5ce597 STM32F4 - Fix STM32F407VG target name
The target name of STM32F407VG should be TARGET_STM32F407VG,
rather than TARGET_F407VG.

Signed-off-by: Tony Wu <tung7970@gmail.com>
2016-09-28 13:48:46 +01:00
svastm 75a678cf08 Add tests for asynchronous serial 2016-09-28 13:48:44 +01:00
svastm bff0bf7f74 Enable asynchronous serial 2016-09-28 13:48:42 +01:00
svastm 3581b98c8d Add asynchronous serial 2016-09-28 13:48:41 +01:00
Brian Daniels a03e8a88b1 Fixing missing import for os.path.exists 2016-09-28 13:48:40 +01:00
Mahadevan Mahesh 29808b8d56 KSDK serial_api.c: Fix assertion error for ParityEven
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-09-28 13:48:39 +01:00
Jimmy Brisson b88600105e Add documentation about profiles to the toolcahins 2016-09-28 13:48:37 +01:00
Rob Meades 3218ef9cc4 Remove "lib" and "lib64" from the mbed-OS .gitignore file: they do not seem to be required and lib is used as a directory name in a recent (u-blox) mbedOS target submission, so ignoring the files under that directory becomes a problem. 2016-09-28 13:48:36 +01:00
jeromecoutant 12336f0175 DISCO_L476VG: add SPI nicknames 2016-09-28 13:48:35 +01:00
Głąbek, Andrzej 9831226700 Made the constant array in serial_baud() static. 2016-09-28 13:48:34 +01:00
Głąbek, Andrzej ece21c91a7 Changed 'serial_baud' implementation to make it possible to use baud rates like 56000 or 31250. 2016-09-28 13:48:32 +01:00
Jimmy Brisson 719cbd997a Add a inc_repos option to the exporters 2016-09-28 13:48:31 +01:00
Russ Butler c6f6253395 Add device_has to all nrf51 devices
Move common device_has attributes into MCU_NRF51 and
MCU_NRF51_UNIFIED. This ensures all nrf51 devices have the correct
features enabled. Any devices that want to explicitly disable features
should use device_has_remove.
2016-09-28 13:48:29 +01:00
Andrzej Puzdrowski 021fc3c6eb Add .fs_data symbol in data section for gcc. It is neede for folowing nRF5 SDk component: fstorage, fds, Peer manager. 2016-09-28 13:48:28 +01:00
bcostm 9e1f5d1af8 STM32F0xx - Fix problem with channel 18 not present on all F0 devices 2016-09-28 13:48:27 +01:00