Martin Kojtal
0fe1246bf4
WiFiInterface - remove data arguments
...
Callback class provides API to support class callbacks.
2016-09-30 18:47:07 +01:00
Martin Kojtal
e7b7fecc47
NetworkInterface: fix start_dhcp argument type
2016-09-30 11:33:35 +01:00
Martin Kojtal
ebe02274ff
NetworkInterface- fix comments for dhcp and ip methods
2016-09-30 11:10:59 +01:00
Martin Kojtal
e31f198810
lwip_stack: remove emac int enable/disable functions
...
Already done in emac interface.
2016-09-30 10:59:27 +01:00
Martin Kojtal
ad8b52fe85
EthernetInterface: revert unrelated changes
2016-09-30 10:48:22 +01:00
Martin Kojtal
372f8e4a8c
lwip stack: dhcp in bringup not done for emac targets
2016-09-30 09:59:48 +01:00
Martin Kojtal
bad51a56a1
targets: remove emac for k64f, not supported yet
2016-09-30 09:42:14 +01:00
Martin Kojtal
961cde39af
WiFiInterface: change variables to protected
...
A wifi instance should be able to set those data.
2016-09-30 08:51:21 +01:00
Martin Kojtal
7c8afa91fb
IPStackInterface: removal of this layer
...
Use NetworkInterface that defines the same API (extended to cover some additional
requirements that comes from wifi).
2016-09-30 08:48:09 +01:00
Martin Kojtal
780ec1ebe4
eth arch: duplication of declarations removal
2016-09-29 17:36:15 +01:00
Martin Kojtal
ac8f5d1b8c
eth arch: missing endif fix
2016-09-29 14:44:53 +01:00
Martin Kojtal
d40c19bc73
lwipstack: add start dhcp and static ip functions
2016-09-29 14:44:03 +01:00
Martin Kojtal
1b797bbd16
EthernetInterface: ctor uses connect() method
2016-09-29 14:38:45 +01:00
andreas.larsson
f8ad018e14
Added
2016-09-29 12:01:35 +01:00
andreas.larsson
31a1a7fe9b
Fixed bug in packetIndication for packetInfo->rxData + use mutexes + cleanup
2016-09-29 11:57:15 +01:00
andreas.larsson
841c9b5809
Fixed missing timeout argument for lwip_start_dhcp
2016-09-29 11:57:14 +01:00
andreas.larsson
6040561841
Added start_dhcp and start_static_ip
2016-09-29 11:54:50 +01:00
andreas.larsson
8af75511ca
Removed check since the interface is not fully up yet so we can't block DHCP/ARP
2016-09-29 11:54:12 +01:00
Bartek Szatkowski
f122695fd3
WiFi: Decuple IP stack bringup and IP address provisioning
2016-09-29 11:54:10 +01:00
Bartek Szatkowski
c80641fe11
EMAC: Fix "#if DEVICE_EMAC " usage
2016-09-29 11:52:43 +01:00
andreas.larsson
2ce9039a1a
Added wifi_emac_api.cpp
2016-09-29 11:51:44 +01:00
andreas.larsson
b07d60259a
Added missing ;
2016-09-29 11:51:37 +01:00
andreas.larsson
40cd23c4f7
Added pointer for wifi_ap_t in wifi_connect_cb_t to be able to use NULL
2016-09-29 11:51:35 +01:00
andreas.larsson
05974a6578
Added EMAC
2016-09-29 11:50:59 +01:00
andreas.larsson
26c3eef028
Fixed return type for disconnect
2016-09-29 11:50:58 +01:00
Bartek Szatkowski
7a3a580a4b
WiFi: Add IPStackInterface abstraction for IP stacks
2016-09-29 11:49:05 +01:00
Bartek Szatkowski
a30aa8f21f
EMAC: Add LWIP adaptation layer
2016-09-29 11:47:24 +01:00
Martin Kojtal
5ed97d5cca
nsapi: error no ssid name correction
2016-09-29 10:46:51 +01:00
Martin Kojtal
da7529801a
WiFiInterface: change scope of wifi_ap_t structure
2016-09-29 10:44:43 +01:00
Martin Kojtal
33d95654df
WifiInterface - use Callback class for callbacks
2016-09-29 10:41:43 +01:00
Martin Kojtal
517f0509ca
IPStackInterface - add ip address
...
Currently only for IPv4. lwip was updated to accept 2 arguments for getting
the ip address (buffer and length).
2016-09-29 09:50:11 +01:00
Martin Kojtal
81932ee3c3
lwip emac - remove non-existent header inclusion
2016-09-29 09:49:51 +01:00
Martin Kojtal
f12676dfc7
Merge branch 'master' into feature_wifi
...
Conflicts:
features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c
hal/targets.json
2016-09-29 09:20:46 +01:00
Sam Grove
2564a833c0
Merge pull request #2822 from anangl/master
...
TARGET_NRF5: Removed waiting for TX completed from 'serial_putc()'.
2016-09-28 15:37:58 -07:00
Sam Grove
fbce4e18b2
Merge pull request #2853 from bridadan/examples-toolchain-filtering
...
[Tests] Example build toolchain filtering
2016-09-28 15:30:55 -07:00
Sam Grove
48ac4aec25
Merge pull request #2830 from jeromecoutant/PR_L073RZ
...
[STM32L073RZ] update OS5 RTOS tests
2016-09-28 15:00:27 -07:00
Sam Grove
9e1b53f6d3
Merge pull request #2851 from geky/callback-function-objects
...
callback - Add size-limited function-object overloads to Callback
2016-09-28 15:00:09 -07:00
Sam Grove
6856a892ef
Merge pull request #2841 from javier-moreno-tridonic-com/fix-border-router-shudown-reconections
...
Fixed assert failure on reconections
2016-09-28 14:59:52 -07:00
Sam Grove
ab3e77f50a
Merge pull request #2826 from jeromecoutant/PR_F410RB_THREAD
...
[STM32F410RB] update OS5 RTOS thread test
2016-09-28 14:59:29 -07:00
Sam Grove
7608401f2b
Merge pull request #2810 from toyowata/master
...
[LPC1347] Fix PwmOut prescaler for 16-bit timer
2016-09-28 14:58:55 -07:00
Sam Grove
28a4b3e03a
Merge pull request #2781 from jeromecoutant/PR_RTOS_Tests_clean
...
Clean RTOS tests after PR #2648
2016-09-28 14:58:43 -07:00
Sam Grove
3d1531fcb1
Merge pull request #2767 from mikaleppanen/lwip_2_0
...
Replace lwIP 1.4.1 with lwIP 2.0
2016-09-28 14:58:22 -07:00
Sam Grove
3f9a04ceca
Merge pull request #2760 from svastm/lp_timer_f4
...
STM32F4 - Add low power timer
2016-09-28 14:57:31 -07:00
Brian Daniels
1448aa5770
Limiting uvisor example to just GCC_ARM toolchain
2016-09-28 13:09:11 -05:00
Brian Daniels
53ecfdb856
Adding the ability to filter examples by toolchains
...
This change was driven by the fact that certain
examples only support a subset of the toolchains.
2016-09-28 13:04:14 -05:00
Christopher Haster
161a2ec259
callback - Added size-limited function-object overloads to Callback
...
The callback class can now accept generalized function-objects:
class Thing {
public:
int value;
void operator()() {
printf("hi! %d\n", value);
}
};
Callback<void()> cb(Thing(2));
However, with the intention of avoiding implicit dynamic-memory
allocations, the Callback class is limited to a single word of storage.
Exceeding this size will eliminate the function-object type from the
overload set and fail to compile.
Effort was invested to make this situation very clear to the user. Here
is an example error message with noise removed:
[ERROR] ./main.cpp: In function 'int main()':
./mbed-os/hal/api/Ticker.h:101:10: note:
no known conversion for argument 1 from 'BigFunc' to 'mbed::Callback<void()>'
The real benefit of this change is the ability for users to hook into
the attributes of the Callback class. This mostly allows lifetime
management of the function-objects from third-party libraries (such as
the Event class from mbed-events).
Note: The convenient `callback` function may become ambiguous if
provided with a type that defines multiple incompatible `operator()`
member functions.
2016-09-28 12:23:29 -05:00
Christopher Haster
804a621231
callback - Moved internal dispatch mechanism to generated op-table
...
This allows additional attributes to be attached to the internally
generated type such as move and destructor operations with no increase
in RAM footprint.
The current overloads can't take advantage of this, but it does open
the possibility for more powerful overloads that can provide these
additional attributes.
Changes to mbed-os memory consumption:
.text .data .bss
before 57887 2292 7692
after 57842 2292 7691
2016-09-28 12:23:24 -05:00
Sam Grove
b481da44e9
Merge pull request #2843 from andresag01/update_mbedtls
...
Update feature/mbedtls with mbedtls' development HEAD
2016-09-28 06:48:24 -07:00
Martin Kojtal
3d14c20224
WiFiInterface: remove connect implementation
...
We do not want to mix Ethernet and Wifi at the moment, thus WiFiInterface
should implement own connect using emac.
2016-09-28 09:54:59 +01:00
Andres AG
11ee1de620
Update feature/mbedtls with mbedtls' development HEAD
2016-09-28 09:26:02 +01:00