Christopher Haster
753720af56
Fixed ambigous function declarations in serial class
...
Caused by default argument and overly generalized templated types.
SerialBase::attach(T *obj, M method, IrqType type=RxIrq)
->
SerialBase::attach(T *obj, void (T::*method)(), IrqType type=RxIrq)
SerialBase::attach(T *obj, void (*method)(T*), IrqType type=RxIrq)
2016-05-25 15:24:54 -05:00
Russ Butler
960941cb0a
Add IAR support
...
Make the following changes for IAR support:
-define __deprecated_message for IAR
-fix python error in iar.py
-move variable length array in buffered serial from cpp file to c file.
IAR only supports variable length arrays in c.
2016-05-24 14:37:14 -05:00
Sam Grove
02a23c22ad
Merge pull request #103 from geky/esp8266-non-blocking
...
Add non-blocking support to ESP8266Interface
2016-05-20 16:03:40 -05:00
Jimmy Brisson
59ed1bef61
removed warning about unsigned to signed cast
2016-05-17 13:35:24 -05:00
Christopher Haster
4f8e8f5d75
Add non-blocking support to ESP8266Interface
...
requires changes in the following
- BufferedSerial
- ESP8266
- ESP8266Interface
2016-05-16 20:40:57 -05:00
Christopher Haster
4684173778
Match changes to NSAPI in ESP8266Interface
...
mirrored from:
https://developer.mbed.org/teams/components/code/ESP8266Interface/
2016-05-13 11:41:18 -05:00
Christopher Haster
d17fa4faad
Separate Stack/Interface concept into two distinct classes
2016-05-13 11:41:13 -05:00
Christopher Haster
16929af278
Rename Interface -> Stack
...
NetworkInterface -> NetworkStack
EthernetInterface -> EthernetStack
WiFiInterface -> WiFiStack
CellularInterface -> CellularStack
MeshInterface -> MeshStack
2016-05-13 11:41:07 -05:00
Christopher Haster
59549cb4df
Standardized comment style
2016-05-13 11:41:02 -05:00
Christopher Haster
525c7b361c
Revised stack specific configurations
...
Adds the following functions for direct configuration of interface
- (set|get)stackopt
- (set|get)sockopt
2016-05-13 11:41:00 -05:00
Christopher Haster
141b245dfc
Added better support for SocketAddress/string addresses/ports
2016-05-13 11:40:57 -05:00
Christopher Haster
455f023949
Renamed NetworkInterface create/destroy methods to match Socket methods
...
- socket_create -> socket_open
- socket_destroy -> socket_close
2016-05-13 11:40:53 -05:00
Christopher Haster
c33d246fa6
Move to single state-change interrupt
...
Pros
- Easier to implement
- More similar to SIGIO in BDS sockets
Cons
- Less information, but this information had a high risk of being
faulty/spurious
2016-05-13 11:40:52 -05:00
Christopher Haster
c3eec0322b
Remove shutdown parameter from close call
...
Pros
- Simplifies interface
- Easier base implementation
Cons
- May need shutdown functionality, in this case shutdown
can be added as another function in the future
2016-05-13 11:40:51 -05:00
Christopher Haster
88ebec607e
Added ESP8266Interface
...
- Blocking TCP/UDP
2016-04-06 13:01:08 -05:00