Russ Butler
48cf4d85d1
Remove use of deprecated attach in USB
...
Attach callbacks with the assignment operator rather than with the
deprecated attach function. This fixes deprecation warnings.
This patch also adds the ability to attach a Callback directly.
2018-01-17 20:54:05 -06:00
Russ Butler
6decbedbb8
Fix local static initialization in USB
...
The local static initialization in USB was causing multiple problems:
-Configurable descriptor values are set only once
-USB descriptor initialization causes a trap in debug builds since
this is acquiring a mutex in an interrupt handler
-Extra ram used since all descriptors are in RAM
This patch fixes these problems by making fixed descriptors
static const so they are stored in flash and never need to be
initialized and by making descriptors that do change a member
of the class so they are always initialized when requested
rather than once though lazy static local initialization.
2018-01-17 20:53:57 -06:00
Amanda Butler
1d35ccecab
Copy edit Mutex.h
...
Copy edit document for active voice and consistent branding.
2018-01-17 16:56:32 -06:00
Amanda Butler
8f175609ae
Copy edit ScopedLock.h
...
Copy edit document for active voice, present tense and consistent comma use.
2018-01-17 16:56:28 -06:00
paul-szczepanek-arm
25107b1ad8
todo
2018-01-17 22:19:45 +00:00
paul-szczepanek-arm
8db6427fde
use common io caps type
2018-01-17 21:40:06 +00:00
paul-szczepanek-arm
b00b746aa0
removed old type
2018-01-17 21:27:06 +00:00
paul-szczepanek-arm
2f04aece23
shared types in common header, connected up the events in handlers
2018-01-17 21:22:48 +00:00
Cruz Monrreal
bb8ab663f0
Merge pull request #5597 from 0xc0170/fix_#5555
...
critical: fix set exclusive access if not yet defined
2018-01-17 14:47:34 -06:00
Vincent Coubard
39141fa929
Merge branch 'palsm-cordio-implementation' of https://github.com/pan-/mbed into palsm-cordio-implementation
2018-01-17 18:39:08 +00:00
Vincent Coubard
743e57ffaa
Nordic BLE: Draft SM event handler.
2018-01-17 18:37:48 +00:00
Vincent Coubard
7e37cc739f
Nordic BLE: SM pal function draft (legacy pairing)
2018-01-17 18:37:48 +00:00
Vincent Coubard
5277f5a0fd
BLE: Fix signature of get_secure_connections_support in implementations.
2018-01-17 18:37:48 +00:00
Vincent Coubard
527a31663c
BLE - Nordic: Add Skeleton for the security manager
2018-01-17 18:37:48 +00:00
Vincent Coubard
ffb59eecb8
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-17 18:37:47 +00:00
Vincent Coubard
074597c41f
Nordic BLE: Draft SM event handler.
2018-01-17 18:34:48 +00:00
Vincent Coubard
8c1dd2f092
Nordic BLE: SM pal function draft (legacy pairing)
2018-01-17 15:50:57 +00:00
paul-szczepanek-arm
2fb67d2c7d
authentication mask now a class, pairing and authenticating
2018-01-17 15:39:29 +00:00
paul-szczepanek-arm
49df59ebc1
deref pointer
2018-01-17 13:26:37 +00:00
paul-szczepanek-arm
42eeacbe7c
remove redundant func
2018-01-17 13:15:15 +00:00
Jani Suonpera
fe80b6751a
Update CoAP to 4.0.11
...
This PR implement https://tools.ietf.org/html/rfc7959#section-2.5
"The error code 4.13 (Request Entity Too Large) can be returned at any
time by a server that does not currently have the resources to store
blocks for a block-wise request payload transfer that it would intend
to implement in an atomic fashion. (Note that a 4.13 response to a
request that does not employ Block1 is a hint for the client to try
sending Block1, and a 4.13 response with a smaller SZX in its Block1
Option than requested is a hint to try a smaller SZX.)
2018-01-17 14:49:46 +02:00
paul-szczepanek-arm
8197f09bd5
acoid creattion of passkey object to do the conversion
2018-01-17 12:38:35 +00:00
Vincent Coubard
7f4bf27fc6
Merge branch 'palsm-cordio-implementation' of https://github.com/pan-/mbed into palsm-cordio-implementation
2018-01-17 12:32:03 +00:00
Kevin Bracey
268a07db37
NSAPI: Add Nanostack multicast membership support
...
Add support for recently introduced NSAPI generic socket options to
control group membership. Previously applications using Nanostack would
have had to use Nanostack's native socket options.
2018-01-17 14:30:45 +02:00
Vincent Coubard
1e6851e6e9
BLE: Fix signature of get_secure_connections_support in implementations.
2018-01-17 12:30:26 +00:00
paul-szczepanek-arm
1a7e3faa18
fixed passkey classes
2018-01-17 12:28:48 +00:00
Vincent Coubard
d2e957f1d7
BLE - Nordic: Add Skeleton for the security manager
2018-01-17 12:28:05 +00:00
Vincent Coubard
53598d8caa
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-17 12:24:33 +00:00
paul-szczepanek-arm
6420465c29
fix func calls args
2018-01-17 11:40:32 +00:00
paul-szczepanek-arm
a3cf83ac02
key distribution
2018-01-17 11:38:36 +00:00
Vincent Coubard
e2a2582549
BLE: Fix inclusion of BLE.h (case)
2018-01-17 11:31:50 +00:00
paul-szczepanek-arm
44f2f7b9d7
expose get number to avoid implicit casts for clarity
2018-01-17 11:25:32 +00:00
Martin Kojtal
9a18732b20
RTX idle: sleep without locked deep sleep fix
...
If tickless is enabled, it should not be locking deepsleep
2018-01-17 11:14:41 +00:00
paul-szczepanek-arm
1bf0d7b921
display passkey handling, added null check to passkey contructor
2018-01-17 11:09:54 +00:00
paul-szczepanek-arm
00b1b17e62
removed broken assignment operator
2018-01-17 11:04:37 +00:00
paul-szczepanek-arm
f8c9fe7329
get sc support in pal to match api
2018-01-17 10:52:24 +00:00
paul-szczepanek-arm
d6a3347443
default state for legeacy pairing alllowed, removed obsolete code
2018-01-17 10:49:35 +00:00
paul-szczepanek-arm
9c6f57a733
name clash fixed
2018-01-17 10:48:07 +00:00
paul-szczepanek-arm
943206dd07
db restoring, legacy pairing disallowing, removed set SC support
2018-01-17 10:46:56 +00:00
Martin Kojtal
4118542bdf
critical: fix non valid configuration
...
If any architecture is added, needs to update critical exclusive access.
Also fixing if exclusive access is defined, we use the value.
2018-01-17 10:36:47 +00:00
Martin Kojtal
b37f24a2cd
critical: fix set exclusive access if not yet defined
...
Fixes #5555 bug.
In case there is not yet defined __EXCLUSIVE_ACCESS, neither MBED_EXCLUSIVE_ACCESS that
we are introducing, use architecture macros to find out if MBED_EXCLUSIVE_ACCESS can be
enabled.
2018-01-17 10:36:36 +00:00
paul-szczepanek-arm
11874aac3b
whitelist generations needs to be async
2018-01-17 10:30:34 +00:00
Cruz Monrreal
635a82495c
Merge pull request #5834 from bcostm/PULL_REQUEST_CUBE_UPDATE_L4_V1.11.0
...
STM32L4: Update ST Cube HAL to V1.11.0
2018-01-16 16:36:37 -06:00
Cruz Monrreal
bf139eb4df
Merge pull request #5791 from bcostm/fx_can_filter
...
STM32 CAN: fix wrong ID and MASK filter
2018-01-16 16:21:21 -06:00
Cruz Monrreal
f01fbde3c5
Merge pull request #5795 from jeromecoutant/PR_USER_DEFINED_STDIO
...
STM32 STDIO pins number are now configurable
2018-01-16 16:15:17 -06:00
Cruz Monrreal
3cb9728ae7
Merge pull request #5854 from SiliconLabs/bugfix/rtc_overflow
...
Fix for Silicon Labs RTC
2018-01-16 16:07:43 -06:00
Cruz Monrreal
25aa0e6d37
Merge pull request #5846 from geky/fix-block-addr-overflow
...
littlefs: Fix block addr overflow
2018-01-16 15:53:30 -06:00
Cruz Monrreal
728f76d63e
Merge pull request #5855 from SiliconLabs/feature/new/allow_dcdc_override
...
Allow overriding of DCDC settings per target
2018-01-16 15:45:59 -06:00
Vincent Coubard
638325aac4
CORDIO BLE: Add PAL SM event handling (draft).
2018-01-16 20:02:39 +00:00
paul-szczepanek-arm
dcce428c40
conversion of passkeys, uniform calls
2018-01-16 19:39:25 +00:00