ccli8
980cb6b9c8
[NUC472/M487] Guard against SHA internal state size is not word-aligned in SHA alter.
2018-01-05 09:18:21 +08:00
ccli8
8ba07815ed
[NUC472/M487] Fix SHA H/W resource leakage in context cloning
2018-01-05 09:18:21 +08:00
ccli8
83fb50cca3
[NUC472/M487] Fix SHA H/W is not stopped in corner case
...
Take SHA1 for example, without the fix, SHA H/W is not stopped in either case:
(1) ctx->total == 0 in mbedtls_sha1_hw_finish()
(2) mbedtls_sha1_hw_finish() is not called by upper layer
2018-01-05 09:18:21 +08:00
ccli8
a0a8a955a9
[NUC472/M487] Strengthen crypto DMA buffer check
...
1. Catch incompatible buffer range, where buffer base = 0xffffff00 and buffer size = 0x100.
2. Add buffer size alignment check.
2018-01-05 09:18:21 +08:00
ccli8
ac000244f4
[NUC472/M487] Refine AES/DES alter. DMA buffer requirement comment
2018-01-05 09:18:20 +08:00
ccli8
aafbdc8d38
[NUC472/M487] Fix compile error with disabled crypto
...
For example, even though MBEDTLS_SHA512_C is disabled (via #undef MBEDTLS_SHA512_C),
mbedtls_sha512_context is still necessary due to referenced in sha512.h.
2018-01-05 09:18:20 +08:00
ccli8
b0228d020d
[NUC472/M487] Fix compile error as mbedtls is not included
...
Currently, trng_api.c is located in targets/ and AES/DES/SHA alter. are located in mbedtls/.
They have shared crypto code.
If they could locate at same location e.g. mbedtls/, the shared crypto code placement would be more reasonable.
2018-01-05 09:18:20 +08:00
ccli8
ba16fd9617
[NUC472/M487] Refine AES alter. key endianness code
2018-01-05 09:18:20 +08:00
ccli8
6464649c41
[NUC472/M487] Coordinate crypto interrupt handler among AES/PRNG
2018-01-05 09:18:20 +08:00
ccli8
0c2d59d327
[NUC472/M487] Refine AES/DES alter. code
2018-01-05 09:18:19 +08:00
ccli8
289bbf0ec7
[NUC472/M487] Fix AES alter. CFB128 error
2018-01-05 09:18:19 +08:00
ccli8
7076675fec
[NUC472/M487] Optimize AES alter. code
2018-01-05 09:18:19 +08:00
ccli8
6cc3aa3e54
[NUC472/M487] Guard from re-entry into crypto H/W
2018-01-05 09:18:19 +08:00
ccli8
d66074fecc
[NUC472/M487] Coordinate crypto init among AES/DES/SHA/PRNG
...
Add counter to track crypto init among crypto sub-modules. It includes:
1. Enable crypto clock
2. Enable crypto interrupt
As counter gets zero, crypto clock is disabled to save power.
2018-01-05 09:18:18 +08:00
ccli8
b0eededdaf
[NUC472/M487] Fix DES alter. DMA buffer could locate at unsupported region
2018-01-05 09:18:18 +08:00
ccli8
f85875c7b6
[NUC472/M487] Fix AES alter. DMA buffer could locate at unsupported region
2018-01-05 09:18:18 +08:00
ccli8
70e9a90957
[NUC472/M487] Refine AES alter. input/output data endianness
2018-01-05 09:18:18 +08:00
ccli8
a1e202518f
[NUC472/M487] Fix AES alter. DMA buffer check
2018-01-05 09:18:18 +08:00
ccli8
20aa516e79
[NUC472/M487] Refine config check code
2018-01-05 09:18:17 +08:00
ccli8
126aa565c7
[NUC472/M487] Remove redundant S/W DES code
...
This S/W DES code was to test DES H/W port before.
2018-01-05 09:18:17 +08:00
ccli8
2e7f07e264
[NUC472/M487] Refine DES alter. code
2018-01-05 09:18:17 +08:00
ccli8
b2b67af189
[NUC472/M487] Add comment for DES alter. context
2018-01-05 09:18:17 +08:00
ccli8
ed57432c95
[NUC472/M487] Add comment for AES alter. context
2018-01-05 09:18:17 +08:00
ccli8
9e5837fd77
[NUC472/M487] Refine AES alter. code with IV endianness
2018-01-05 09:18:16 +08:00
ccli8
087186aba7
[NUC472/M487] Rework AES alter. CFB128
...
1. Fix bug on non-block aligned data size
2. More concise
2018-01-05 09:18:16 +08:00
ccli8
93f6ef996f
[NUC472/M487] Refine AES alter. DMA buffer code
2018-01-05 09:18:16 +08:00
ccli8
f24ca8c857
[NUC472/M487] Refine AES alter. code
2018-01-05 09:18:16 +08:00
ccli8
82bd285e51
[NUC472/M487] Support multiple contexts in AES alter. with context save & restore
2018-01-05 09:18:15 +08:00
ccli8
0d25a9c421
[NUC472/M487] Fix AES DMA buffer cannot locate at ROM region
2018-01-05 09:18:15 +08:00
ccli8
2dcc1e9e27
[NUC472/M487] Remove AES alter. dead code
2018-01-05 09:18:15 +08:00
ccli8
5665247d4a
[NUC472/M487] Fix AES alternative function not thread-safe
2018-01-05 09:18:14 +08:00
ccli8
315b684bd9
[NUC472] Refine coding style
2018-01-05 09:18:14 +08:00
ccli8
0c5b860409
[M487] Refine coding style
2018-01-05 09:18:14 +08:00
ccli8
19e9dbf799
[NUC472] Fix DES alternative function not thread-safe
2018-01-05 09:18:13 +08:00
ccli8
61d9e69be4
[NUC472] Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-05 09:18:13 +08:00
ccli8
6b0213c13d
[NUC472] Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-05 09:18:13 +08:00
ccli8
925eee0688
[NUC472] Remove debug code in AES alternative
2018-01-05 09:18:13 +08:00
ccli8
530b8dfdb9
[M487] Fix DES alternative function not thread-safe
2018-01-05 09:18:13 +08:00
ccli8
436ecdbd60
[M487] Remove unnecessary MBEDTLS_CONFIG_FILE check from AES/DES/SHA alternative
...
1. aes.h/des.h/sha1.h/sha256.h/sha512.h includes config.h before aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h.
2. aes_alt.h/des_alt.h/sha1_alt.h/sha256_alt.h/sha512_alt.h should not be included in any other location.
3. Just include aes.h/des.h/sha1.h/sha256.h/sha512.h in aes_alt.c/des_alt.c/sha1_alt.c/sha256_alt.c/sha512_alt.c.
2018-01-05 09:18:12 +08:00
ccli8
8f7df9ab41
[M487] Remove other unnecessary AES alternative macro definitions
...
As MBEDTLS_AES_ALT is defined, alternative implementations for all AES functions should be defined.
2018-01-05 09:18:12 +08:00
ccli8
fbf7d40778
[M487] Remove debug code in AES alternative
2018-01-05 09:18:12 +08:00
Jimmy Brisson
af9e07357a
Merge pull request #5740 from ashok-rao/master
...
Adding MTB ublox ODIN W2 as a new target.
2018-01-04 10:05:02 -06:00
Christopher Haster
ffc857ddc9
littlefs: Fixed positive seek bounds checking
...
This bug was a result of an annoying corner case around intermingling
signed and unsigned offsets. The boundary check that prevents seeking
a file to a position before the file was preventing valid seeks with
positive offsets.
This corner case is a bit more complicated than it looks because the
offset is signed, while the size of the file is unsigned. Simply
casting both to signed or unsigned offsets won't handle large files.
2018-01-03 18:07:17 -06:00
Christopher Haster
9dd3060d60
Added littlefs statvfs implementation
2018-01-03 12:54:28 -06:00
Christopher Haster
f1a9815876
Moved squiggly bracket placement per mbed style
2018-01-03 12:30:50 -06:00
gorazd
f6283f5b03
ff_lpc546xx: add enet
...
fsl_phy.c/.h move to ../drivers to reuse it
lwip: add hardware_init.c
2018-01-01 15:55:24 +01:00
Deepika
7a90be0ce1
Added statvfs API to get storage statistics
...
The API is as per posix standard, but does not provide stats for file/directory.
Stats buffer (block size, total block count, free block count) is filled for
entire mounted filesystem.
2017-12-29 16:42:31 -06:00
Adam Heinrich
da81229186
NUCLEO_F413ZH: Add support for the NUCLEO-F413ZH board
...
Merged from the existing TARGET_DISCO_F413ZH code (which has the same MCU)
and TARGET_NUCLEO_F412ZG code (which has the same Nucleo-144 board and
pinout).
2017-12-29 15:30:10 +01:00
Anna Bridge
a4d1dee25e
Merge pull request #5617 from bcostm/usbhost_clean-up
...
STM32: USBHost clean-up
2017-12-29 10:48:03 +00:00
Cruz Monrreal II
5a19f6dcf5
Merge pull request #5684 from juhaylinen/lwip-socket-fix
...
lwip: fix socket behaviour
2017-12-28 20:40:14 +00:00
Cruz Monrreal II
6d042d4ad4
Merge pull request #5736 from SeppoTakalo/ONME-3199
...
Allow 6LoWPAN applications to leave out channel specification.
2017-12-28 17:51:04 +00:00
Ashok Rao
c849db2dab
Adding license info
2017-12-22 13:54:22 +00:00
Martin Kojtal
9cce4d2b06
Merge pull request #5745 from kjbracey-arm/k64f_init_order
...
K64F Ethernet: avoid using NULL thread during init
2017-12-22 13:26:26 +00:00
Juha Ylinen
32e64e7171
Fix build for IPv4+IPv6 config
2017-12-22 13:22:00 +02:00
Juha Ylinen
52353d2ede
Add function to check if address is local
...
Update the code to check all addresses for all interfaces. Move
the code from mbed_lwip_socket_bind() to a new function called
mbed_lwip_is_local_addr()
2017-12-22 13:21:59 +02:00
Juha Ylinen
6d3e417eaa
lwip: fix socket behaviour
...
Return NSAPI_ERROR_PARAMETER when:
Binding to a non-local address
Socket listen() is called without calling bind() first
Socket accept() is called without calling listen() first
2017-12-22 13:21:59 +02:00
Vincent Coubard
70e5a14a4d
BLE: Generic Gap - fix address management.
2017-12-21 17:39:25 +00:00
Vincent Coubard
65f74bf8ac
BLE: Address GattClient comments
...
* invalid namespace name documentation
* vocabulary
* typo
* Add constants to improve readability
* Fix abort usages
2017-12-21 16:51:10 +00:00
Ashok Rao
9556736411
Add new line to EOF
2017-12-21 16:14:00 +00:00
Kevin Bracey
9daf450eb3
K64F Ethernet: avoid using NULL thread during init
...
The K64F Ethernet driver installs an interrupt handler that sets thread
flags, and this could be called before the thread was initialised, so it
would use a NULL thread ID.
This triggers an RTX error-checking trap in debug builds, and could also
lead to other problems with received packets not being processed.
Adjusted so the RX interrupt handler does nothing if the thread isn't
initialised yet, and manually trigger a RX event flag after initialising
the thread in case any interrupts were ignored.
An alternative would have been to implement eth_arch_enable_interrupts,
but this mechanism is not present in the EMAC world - drivers will have
to start returning interrupts in their power up.
Fixes #5680
2017-12-21 11:14:08 +02:00
Ashok Rao
dc3c7fc11e
Adding MTB ublox ODIN W2
2017-12-20 18:52:04 +00:00
Vincent Coubard
3fdb749a33
BLE: Remove old client implementation.
2017-12-20 16:27:12 +00:00
Vincent Coubard
865bd94fbd
BLE: Enable Generic client on Nordic targets.
2017-12-20 16:26:40 +00:00
Vincent Coubard
dea488b4f0
BLE: Introduce pal client adaptation layer for nordic targets.
2017-12-20 16:13:06 +00:00
Martin Kojtal
227b0341cb
Merge pull request #5670 from ryankurte/fix/efr32-ack-flag
...
Nanostack EFR32 flag fix
2017-12-20 14:42:51 +00:00
Seppo Takalo
4f36bb6480
Allow 6LoWPAN applications to leave out channel specification.
...
When specifying a full channel mask in .lib and setting the channel
to zero, device does proper channel scan.
For Thread, channel must be specified for router.
Sleepy devices don't respect the channel settings but do a full channel
scan at the start.
+ Modified the channel mask print to use hex.
2017-12-20 15:12:58 +02:00
Anna Bridge
4d81eadb25
Merge pull request #5701 from pan-/ble-doxy-fixes
...
Ble doxy fixes
2017-12-14 19:36:02 +00:00
Mika Leppänen
7f6a6323cd
Fixed lwip k64f ethernet driver ipv6 multicast groups
...
Work around for problem in:
https://github.com/ARMmbed/mbed-os/issues/4372
2017-12-14 11:05:05 +02:00
Vincent Coubard
b554fce00f
BLE: Fix doxygen warnings.
2017-12-13 18:30:38 +00:00
Vincent Coubard
c621a92a6a
BLE: Put GapEvent into INVALID doxygen sections.
2017-12-13 16:15:21 +00:00
Vincent Coubard
82f669b61f
BLE: Fix doxygen warnings.
...
Replace @important tag by @attention.
2017-12-13 16:14:16 +00:00
Martin Kojtal
b4dc32521a
Merge pull request #5688 from artokin/mesh-fix-for-mbed-os-5.7-oob
...
Mesh fix for mbed os 5.7 oob
2017-12-13 09:20:47 +00:00
Martin Kojtal
5c01c3e59c
Merge pull request #5633 from paul-szczepanek-arm/master
...
BLE: added function converting error codes into strings
2017-12-12 17:42:10 +00:00
Martin Kojtal
484b4a29d1
Merge pull request #5311 from pan-/ble-generic-gap
...
BLE: Add generic GAP implementation.
2017-12-12 17:38:06 +00:00
Martin Kojtal
ef44e4b4fb
Merge pull request #5469 from jeromecoutant/PR_UNITY
...
Unity framework : add float support in error print
2017-12-12 17:33:01 +00:00
Martin Kojtal
02beec7ee3
Merge pull request #5567 from bcostm/dev_usbdevice_disco-f413zh
...
STM32: Add USB Device on DISCO_F413ZH
2017-12-12 17:32:03 +00:00
Arto Kinnunen
e78db9edd6
Update Thread PSKd default value
...
Thread PSKd can contain only uppercase characters.
2017-12-12 10:45:48 +02:00
Arto Kinnunen
efc7f60799
Merge commit '6c0b324e3a5a9a5c22dc4c3a66b6c892b9ed1644' into coap-service-fix-mbedos57oob
...
* commit '6c0b324e3a5a9a5c22dc4c3a66b6c892b9ed1644':
Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from 29bfb78..d0a2597
2017-12-12 10:41:08 +02:00
Ryan Kurte
136ac17947
Nanostack flag fix
2017-12-07 14:23:35 +13:00
paul-szczepanek-arm
4ac75bd7b2
added function converting error codes into strings
2017-12-01 15:25:21 +00:00
Steven Cooreman
5dd46136ad
Remove usage from USB driver as well
2017-12-01 12:13:06 +01:00
Martin Kojtal
2e1c2a1cdf
Merge pull request #5538 from geky/littlefs-staging
...
Integrate littlefs into mbed OS
2017-12-01 08:15:26 +00:00
Martin Kojtal
41591eb83b
Merge pull request #5602 from artokin/nanostack_release_v704
...
Nanostack release v704
2017-11-30 18:26:45 +00:00
Martin Kojtal
9f8ac6523c
Merge pull request #5300 from pan-/ble-pal-event-queue
...
Ble pal event queue
2017-11-30 18:16:45 +00:00
Martin Kojtal
8a39773e89
Merge pull request #5490 from deepikabhavnani/fat_upgrade
...
Upgrade ChanFs to R0.13a
2017-11-30 18:14:42 +00:00
Martin Kojtal
118c1bb2b4
Merge pull request #5579 from SiliconLabs/feature/rail-2.1
...
Upgrade Silicon Labs radio driver to v2.1.1
2017-11-30 18:10:46 +00:00
Martin Kojtal
221b8a84b1
Merge pull request #5580 from bcostm/dev_usb_speed_disco-f746ng
...
DISCO_F746NG: add usp_speed configuration
2017-11-30 18:09:47 +00:00
Martin Kojtal
2b84a1742f
Merge pull request #5584 from SiliconLabs/feature/emlib-5.3.3
...
Upgrade to Silicon Labs HAL
2017-11-30 18:09:04 +00:00
Martin Kojtal
969f8af386
Merge pull request #5589 from pan-/ble-nordic-set-description-handle
...
Nordic: Set handle of user description descriptors.
2017-11-30 18:07:48 +00:00
Martin Kojtal
1498a807c7
Merge pull request #5592 from pan-/ble-nordic-fix-gatt-server-write
...
BLE: Fix GattServer::write on Nordic targets.
2017-11-30 18:05:27 +00:00
Martin Kojtal
0ef3ca7f19
Merge pull request #5593 from pan-/ble-fix-equality-comparison
...
BLE: Fix greater than or equal to comparision in GattCharacteristic.
2017-11-30 18:04:58 +00:00
Christopher Haster
c6130306e0
littlefs: Removed links to previous repository locations
2017-11-30 11:46:00 -06:00
bcostm
c621c688c4
STM32 USBHOST: Remove DISCO_F429ZI
...
Impossible to make USBHost working on this board.
Remove it for now until a fix is found.
2017-11-30 13:59:43 +01:00
bcostm
fe507af862
STM32 USBHOST: Corrections for DISCO_F746NG
2017-11-30 13:52:10 +01:00
Amanda Butler
634fcf0cc4
Copy edit littlefs
...
ExhaustibleBlockDevice.h
- Fix typos for consistent spelling.
ObservingBlockDevice.h
- Fix typos for consistent spelling.
ReadOnlyBlockDevice.h
- Fix typos for consistent spelling.
README.md
- Fix typos, mostly for branding.
DESIGN.md
- Make minor changes for consistent spelling and precise language.
SPEC.md
- Make minor changes for consistent spelling and precise language.
README.md
- Make minor changes for consistent spelling and precise language.
2017-11-29 16:35:06 -06:00
Arto Kinnunen
3252fa0971
Remove mbed-mesh-example and application
2017-11-29 21:37:10 +02:00
Arto Kinnunen
32abfcfe77
Merge commit '041b6fa73681061072f970e9cf11ff4d422fa04b' into nanostack_release_v704
...
* commit '041b6fa73681061072f970e9cf11ff4d422fa04b':
Squashed 'features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/' changes from 0697d9a..c9bf20f
2017-11-29 21:34:19 +02:00
bcostm
22a4299368
STM32 USBHOST: Corrections for DISCO_F429ZI
2017-11-29 18:54:04 +01:00
bcostm
18a6b96242
STM32 USBHOST: Add support of DISCO_F469NI and DISCO_F769NI
2017-11-29 18:54:04 +01:00
bcostm
8416afaeb1
STM32 USBHOST: Add support of DISCO_F413ZH
2017-11-29 18:54:04 +01:00