Kevin Bracey
2f056f2814
NSAPI/lwIP: Free held netbuf on close
...
mbed_lwip_socket_recv() takes one netbuf at a time from the netconn API,
and it holds a partially-read netbuf if necessary in order to present as
a stream for TCP.
This held netbuf was not being freed when the socket was closed.
2017-03-21 11:14:39 +02:00
Bartek Szatkowski
98eb50f592
Refactor lwip_stack function names to include mbed prefix
...
Mbed function names, prefixed with lwip are confusing, as the name
suggest that they are part of lwip ip stack.
2016-10-04 14:22:24 +01:00
Bartek Szatkowski
d0be5733db
EMAC: Fix LWIP_IPV4 and DEVICE_EMAC flag usage
2016-10-03 17:46:39 +01:00
Christopher Haster
5cd2d7869e
Merge remote-tracking branch 'upstream/master' into feature_wifi_ublox_merge
2016-10-02 07:29:07 -05:00
Sam Grove
646cc89a62
Merge pull request #2878 from geky/restructure
...
Restructure directory layout
2016-10-02 14:04:25 -05:00
Christopher Haster
13bf0bd470
Merge commit 'upstream/master~' into feature_wifi_ublox
2016-10-02 06:35:12 -05:00
Christopher Haster
b8fb7a6e3c
restructure - Changed legacy build_lib to respect lib name in path
2016-10-01 19:43:22 -05:00
Sam Grove
cf60b189b0
Merge pull request #2879 from bridadan/fix-config-tests-ipv6
...
Renames IPV6 feature used in config test to STORAGE
2016-10-01 17:22:38 -05:00
Christopher Haster
a7ddc46caf
restructure - Added single-nested inc_dir support to legacy build_lib
...
Added single-nested include directories to libraries built with the
legacy build_lib function. Unfortunately, to get this working without
a significant rewrite of the legacy build tools, library header files
are just duplicated in the precompile stage.
2016-10-01 14:58:13 -05:00
Martin Kojtal
3f66a62f87
UBLOX_C029: remove emac implementation
...
It depends on the driver that will come separately, therefore this will be
enabled once driver is in place.
2016-10-01 19:35:10 +01:00
Sam Grove
04a2af7395
Update net tests to use feature name LWIP and not IPv4
2016-10-01 02:21:04 -05:00
Sam Grove
db8d1f679f
Add feature LWIP to LPC1768, UBLOX_C027 and ARCH_PRO targets.
2016-10-01 02:16:45 -05:00
Sam Grove
301b77c4b2
For drivers, events, hal, platform, rtos and mbed.h add one level of path to make sure specific and unique includes files are found.
2016-10-01 02:11:36 -05:00
Sam Grove
b7fcfd93d8
Move can_helper.h into hal/ given its a requirement of the can c hal.
2016-10-01 01:44:08 -05:00
Sam Grove
3a714c117e
Move Transaction.h into platform/ given there is no hardware required.
2016-10-01 01:33:10 -05:00
Sam Grove
7a44db8376
Move CircularBuffer.h into platform/ given there is no hardware required.
2016-10-01 01:31:22 -05:00
Christopher Haster
e35050d61b
restructure - Reverted move of requirements.txt
...
- Reverted requirements.txt for external dependency in mbed CLI
- Fixed MBED_CONFIG_FILE in paths.py
- Fixed MBED_LIBRARIES in paths.py
- Decreased include namespace for rtos.h
2016-09-30 19:18:09 -05:00
Christopher Haster
03bbc86dd6
restructure - Added FEATURE_LWIP to __allowed_features
2016-09-30 19:18:09 -05:00
Christopher Haster
c2d9fc29ff
restructure - Fixed include paths damaged by the restructure
2016-09-30 19:18:09 -05:00
Christopher Haster
960d69f081
restructure - Updated tools to point to restructured modules
...
MBED_HAL /hal/hal x
MBED_API /hal/api x
MBED_COMMON /hal/common x
MBED_TARGETS /hal/targets -> /targets
MBED_DRIVERS + /drivers
MBED_PLATFORM + /platform
MBED_HEADER + /mbed.h
2016-09-30 19:18:09 -05:00
Christopher Haster
ba99a1f31d
restructure - Restructured features/net directory
...
features/net/network-socket -> features/netsocket
features/net/FEATURE_IPV4 -> features/FEATURE_LWIP
features/net/nanostack-binaries -> features/nanostack
features/net/FEATURE_NANOSTACK -> features/nanostack/FEATURE_NANOSTACK
2016-09-30 19:18:09 -05:00
Christopher Haster
2dd90bbe3c
restructure - Restructured rtos directory
2016-09-30 19:18:09 -05:00
Christopher Haster
c0ffbc11e2
restructure - Removed misplaced metadata from top-level directory
2016-09-30 19:18:09 -05:00
Christopher Haster
175ae6b610
restructure - Fixed include bug in features/unsupported/net/lwip
...
time.h brings in struct timeval
lwip defines custom struct timeval
resolved through disabling lwip's struct timeval
2016-09-30 19:18:09 -05:00
Christopher Haster
bf643bcb0e
restructure - Moved libraries to features/unsupported
...
libraries -> features/unsupported
2016-09-30 19:18:09 -05:00
Christopher Haster
8ad83273db
restructure - Moved stdio-config into platform
2016-09-30 19:18:09 -05:00
Christopher Haster
15904b7544
restructure - Split hal into drivers+platform+hal
...
hal/common/AnalogIn.cpp -> drivers/AnalogIn.cpp
hal/api/AnalogIn.h -> drivers/AnalogIn.h
hal/api/AnalogOut.h -> drivers/AnalogOut.h
hal/common/BusIn.cpp -> drivers/BusIn.cpp
hal/api/BusIn.h -> drivers/BusIn.h
hal/common/BusInOut.cpp -> drivers/BusInOut.cpp
hal/api/BusInOut.h -> drivers/BusInOut.h
hal/common/BusOut.cpp -> drivers/BusOut.cpp
hal/api/BusOut.h -> drivers/BusOut.h
hal/common/CAN.cpp -> drivers/CAN.cpp
hal/api/CAN.h -> drivers/CAN.h
hal/api/CircularBuffer.h -> drivers/CircularBuffer.h
hal/api/DigitalIn.h -> drivers/DigitalIn.h
hal/api/DigitalInOut.h -> drivers/DigitalInOut.h
hal/api/DigitalOut.h -> drivers/DigitalOut.h
hal/api/DirHandle.h -> drivers/DirHandle.h
hal/common/Ethernet.cpp -> drivers/Ethernet.cpp
hal/api/Ethernet.h -> drivers/Ethernet.h
hal/common/FileBase.cpp -> drivers/FileBase.cpp
hal/api/FileBase.h -> drivers/FileBase.h
hal/api/FileHandle.h -> drivers/FileHandle.h
hal/common/FileLike.cpp -> drivers/FileLike.cpp
hal/api/FileLike.h -> drivers/FileLike.h
hal/common/FilePath.cpp -> drivers/FilePath.cpp
hal/api/FilePath.h -> drivers/FilePath.h
hal/common/FileSystemLike.cpp -> drivers/FileSystemLike.cpp
hal/api/FileSystemLike.h -> drivers/FileSystemLike.h
hal/common/I2C.cpp -> drivers/I2C.cpp
hal/api/I2C.h -> drivers/I2C.h
hal/common/I2CSlave.cpp -> drivers/I2CSlave.cpp
hal/api/I2CSlave.h -> drivers/I2CSlave.h
hal/common/InterruptIn.cpp -> drivers/InterruptIn.cpp
hal/api/InterruptIn.h -> drivers/InterruptIn.h
hal/common/InterruptManager.cpp -> drivers/InterruptManager.cpp
hal/api/InterruptManager.h -> drivers/InterruptManager.h
hal/common/LocalFileSystem.cpp -> drivers/LocalFileSystem.cpp
hal/api/LocalFileSystem.h -> drivers/LocalFileSystem.h
hal/api/LowPowerTicker.h -> drivers/LowPowerTicker.h
hal/api/LowPowerTimeout.h -> drivers/LowPowerTimeout.h
hal/api/LowPowerTimer.h -> drivers/LowPowerTimer.h
hal/api/PortIn.h -> drivers/PortIn.h
hal/api/PortInOut.h -> drivers/PortInOut.h
hal/api/PortOut.h -> drivers/PortOut.h
hal/api/PwmOut.h -> drivers/PwmOut.h
hal/common/RawSerial.cpp -> drivers/RawSerial.cpp
hal/api/RawSerial.h -> drivers/RawSerial.h
hal/common/SPI.cpp -> drivers/SPI.cpp
hal/api/SPI.h -> drivers/SPI.h
hal/common/SPISlave.cpp -> drivers/SPISlave.cpp
hal/api/SPISlave.h -> drivers/SPISlave.h
hal/common/Serial.cpp -> drivers/Serial.cpp
hal/api/Serial.h -> drivers/Serial.h
hal/common/SerialBase.cpp -> drivers/SerialBase.cpp
hal/api/SerialBase.h -> drivers/SerialBase.h
hal/common/Stream.cpp -> drivers/Stream.cpp
hal/api/Stream.h -> drivers/Stream.h
hal/common/Ticker.cpp -> drivers/Ticker.cpp
hal/api/Ticker.h -> drivers/Ticker.h
hal/common/Timeout.cpp -> drivers/Timeout.cpp
hal/api/Timeout.h -> drivers/Timeout.h
hal/common/Timer.cpp -> drivers/Timer.cpp
hal/api/Timer.h -> drivers/Timer.h
hal/common/TimerEvent.cpp -> drivers/TimerEvent.cpp
hal/api/TimerEvent.h -> drivers/TimerEvent.h
hal/api/Transaction.h -> drivers/Transaction.h
hal/api/can_helper.h -> drivers/can_helper.h
hal/.yotta_ignore
hal/CMakeLists.txt
hal/hal/analogin_api.h -> hal/analogin_api.h
hal/hal/analogout_api.h -> hal/analogout_api.h
hal/hal/buffer.h -> hal/buffer.h
hal/hal/can_api.h -> hal/can_api.h
hal/hal/dma_api.h -> hal/dma_api.h
hal/hal/ethernet_api.h -> hal/ethernet_api.h
hal/hal/gpio_api.h -> hal/gpio_api.h
hal/hal/gpio_irq_api.h -> hal/gpio_irq_api.h
hal/hal/i2c_api.h -> hal/i2c_api.h
hal/hal/lp_ticker_api.h -> hal/lp_ticker_api.h
hal/common/mbed_gpio.c -> hal/mbed_gpio.c
hal/common/mbed_lp_ticker_api.c -> hal/mbed_lp_ticker_api.c
hal/common/mbed_pinmap_common.c -> hal/mbed_pinmap_common.c
hal/common/mbed_ticker_api.c -> hal/mbed_ticker_api.c
hal/common/mbed_us_ticker_api.c -> hal/mbed_us_ticker_api.c
hal/module.json
hal/hal/pinmap.h -> hal/pinmap.h
hal/hal/port_api.h -> hal/port_api.h
hal/hal/pwmout_api.h -> hal/pwmout_api.h
hal/hal/rtc_api.h -> hal/rtc_api.h
hal/hal/serial_api.h -> hal/serial_api.h
hal/hal/sleep_api.h -> hal/sleep_api.h
hal/hal/spi_api.h -> hal/spi_api.h
hal/hal/storage_abstraction/Driver_Common.h -> hal/storage_abstraction/Driver_Common.h
hal/hal/storage_abstraction/Driver_Storage.h -> hal/storage_abstraction/Driver_Storage.h
hal/hal/ticker_api.h -> hal/ticker_api.h
hal/hal/trng_api.h -> hal/trng_api.h
hal/hal/us_ticker_api.h -> hal/us_ticker_api.h
hal/api/mbed.h -> mbed.h
hal/api/CThunk.h -> platform/CThunk.h
hal/common/CallChain.cpp -> platform/CallChain.cpp
hal/api/CallChain.h -> platform/CallChain.h
hal/api/Callback.h -> platform/Callback.h
hal/api/FunctionPointer.h -> platform/FunctionPointer.h
hal/api/PlatformMutex.h -> platform/PlatformMutex.h
hal/api/SingletonPtr.h -> platform/SingletonPtr.h
hal/api/critical.h -> platform/critical.h
hal/common/mbed_alloc_wrappers.cpp -> platform/mbed_alloc_wrappers.cpp
hal/common/mbed_assert.c -> platform/mbed_assert.c
hal/api/mbed_assert.h -> platform/mbed_assert.h
hal/common/mbed_board.c -> platform/mbed_board.c
hal/common/mbed_critical.c -> platform/mbed_critical.c
hal/api/mbed_debug.h -> platform/mbed_debug.h
hal/common/mbed_error.c -> platform/mbed_error.c
hal/api/mbed_error.h -> platform/mbed_error.h
hal/common/mbed_interface.c -> platform/mbed_interface.c
hal/api/mbed_interface.h -> platform/mbed_interface.h
hal/common/mbed_mem_trace.c -> platform/mbed_mem_trace.c
hal/api/mbed_mem_trace.h -> platform/mbed_mem_trace.h
hal/common/mbed_rtc_time.cpp -> platform/mbed_rtc_time.cpp
hal/common/mbed_semihost_api.c -> platform/mbed_semihost_api.c
hal/api/mbed_stats.h -> platform/mbed_stats.h
hal/common/mbed_wait_api_no_rtos.c -> platform/mbed_wait_api_no_rtos.c
hal/common/mbed_wait_api_rtos.cpp -> platform/mbed_wait_api_rtos.cpp
hal/api/platform.h -> platform/platform.h
hal/common/retarget.cpp -> platform/retarget.cpp
hal/api/rtc_time.h -> platform/rtc_time.h
hal/api/semihost_api.h -> platform/semihost_api.h
hal/api/toolchain.h -> platform/toolchain.h
hal/api/wait_api.h -> platform/wait_api.h
2016-09-30 19:18:09 -05:00
Christopher Haster
0bad622a16
restructure - Moved targets out to top level
...
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00
Sam Grove
8055932209
Merge pull request #2876 from bridadan/PR_L073
...
[rebased] Correct RTOS MBED OS2 tests for STM32L073RZ
2016-09-30 19:16:17 -05:00
Sam Grove
23f70906eb
Merge pull request #2845 from javier-moreno-tridonic-com/feature-detailed-memap
...
[Tools] Added -d (--detailed) paremeter to unfold 'Misc' contents in memap.py table
2016-09-30 18:54:45 -05:00
Brian Daniels
7a59747974
Renames IPV6 feature used in config test to STORAGE
2016-09-30 18:37:09 -05:00
Sam Grove
872363d809
Merge pull request #2854 from theotherjimmy/find-duplicates
...
[Tools] Find and report duplicates
2016-09-30 18:30:00 -05:00
Sam Grove
ff2d8df77c
Merge pull request #2877 from bridadan/build-profiles-release-singletest
...
Adding build profiles to build_release.py and singletest.py
2016-09-30 18:29:26 -05:00
Brian Daniels
64d09e1879
Adding uARM support default build profiles
2016-09-30 17:24:11 -05:00
Brian Daniels
e0b0ad05cb
Adding build profiles configuration to build_release.py and singletest.py
2016-09-30 16:54:34 -05:00
Christopher Haster
6440ffab98
cellular - Matched changes to the WiFiinterface in cellular
2016-09-30 16:36:11 -05:00
jeromecoutant
c9458eee17
Correct RTOS MBED OS2 tests for STM32L073RZ
2016-09-30 16:03:07 -05:00
Christopher Haster
0f40c121d5
wifi - Moved wifi_ap_t into its own class WiFiAccessPoint
...
Using a class for this structure is more idiomatic C++, allows
future deprecations, and more flexibility of the internal structure.
Additionally, this matches to design of the SocketAddress class
specific to the network-socket api.
2016-09-30 15:56:05 -05:00
Sam Grove
7252dae5f4
Merge pull request #2863 from jeromecoutant/PR_F3
...
Correct RTOS MBED OS2 tests for STM32F3
2016-09-30 15:53:30 -05:00
Jimmy Brisson
2b36d2de5c
Moved detailed memap parameter to consturctor
2016-09-30 15:44:20 -05:00
Christopher Haster
5b12539074
wifi - Removed asynchronous functions
...
Current asynchronous functions do not match the blocking/attach
pattern of the current codebase.
Unfortunately, the asynchronous api can not be updated in the
current time constraints. The async functions will be removed
for now and can be reconsidered at a later date.
2016-09-30 15:41:46 -05:00
Sam Grove
7f8cadae7f
Merge pull request #2869 from geky/callback-fix-overloads
...
callback - Remove problematic callback overloads
2016-09-30 15:39:13 -05:00
Sam Grove
f738351c61
Merge pull request #2859 from theotherjimmy/print-percent
...
Correct percent printing
2016-09-30 15:38:36 -05:00
Jimmy Brisson
5eed4f29d7
Add a test of find duplicates
2016-09-30 15:24:56 -05:00
Sam Grove
20756cbf77
Merge pull request #2860 from ARMmbed/event_loop_mbed_events_new
...
Event loop with mbed-events
2016-09-30 15:24:24 -05:00
Sam Grove
b3522fe9d4
Merge pull request #2855 from bridadan/handle-exceptions-better
...
[Tools] Handling Exceptions better when building tests
2016-09-30 15:23:08 -05:00
Jimmy Brisson
5f8fbac56f
Add documentation of exposed functions
2016-09-30 15:14:22 -05:00
Jimmy Brisson
e012185602
Use toolchain notify for printing when finding dupes
2016-09-30 15:14:22 -05:00
Jimmy Brisson
9bf20486ec
Stop using .Super_Target for detecting duplicates
2016-09-30 15:13:53 -05:00
Jimmy Brisson
9f7c82a37f
Deduplicate find-duplicate functionality
2016-09-30 15:13:53 -05:00