Hasnain Virk
1a0d90555e
Doc fix
...
Structure naming in the docs was wrong.
2018-05-08 16:45:25 +03:00
Hasnain Virk
f63ed86cfc
Adding custom channel plan support in AS923
...
The asia pacific region supports custom channel planning and
downlink channel request. By virtue of a mistake, this information
was missing and hence a custom channel support was not working.
Fixes issue #6783 .
2018-05-08 16:45:25 +03:00
Hasnain Virk
9f36baab1b
State Machine rework
...
There had been essentially two state machines running in our stack
which was too cumbersome and was not alligned in any symmetry.
In this work we make sure that:
* There are no callbacks from the MAC layer to Stack controller layer.
* Primitives are made local to the mac layer and are presented as
read-only to the stack controller layer.
* Interrupt handling and processing is moved to the stack controller layer.
* Reception is divided into smaller units, seperating handling of Join Accept
and normal data frames. MIC gets its own unit.
* Extraction of data and MAC commands from the payload is also being done now in
its own method.
* To ensure integrity of the stack, and sanctity of the radio payload, we copy the
radio payload buffer immediately in the rx interrupt and hoist a flag that prevents
another interrupt from happening for a short while when we are processing the previous
packet.
* If an automatic uplink is on going, we do not send a TX_DONE event to application
anymore as that is logically incorrect.
* state_controller() is the central engine for the state machine. To save code space and
memory, we are not handling each and every state in the state_controller(). Some of the states
which have no processing to be done, are explicitely set.
* For all the states who need special processing, seperate methods are added.
* Class A always run to completion to IDLE and CLass C always runs to completion as RECEIVING.
2018-05-08 16:45:18 +03:00
Hasnain Virk
a75af9799e
Adding thread safety
...
Making our LoRaWAN stack thread safe. If RTOS is not present, locks
don't do anything. ScopedLock is used to automate the lock release on
context expiry.
2018-05-08 16:24:34 +03:00
Hasnain Virk
a331c4b59a
Immutable payload pointer in LoRaPHY
2018-05-08 16:24:34 +03:00
Hasnain Virk
73e433e4e5
Immutable payload pointer to LoRaMacCommand class
2018-05-08 16:24:34 +03:00
Hasnain Virk
0be41f0e69
Remove useless extraction
...
Channel plan datastructure already contains channel parameters.
Extraction is not needed.
2018-05-08 16:24:34 +03:00
Hasnain Virk
bec61cea27
Initializing band for default channels
...
We went through an exercise of adding band information to
any new channel being added. Default channels were looked over.
This commits duly adds missing band information to default channels.
2018-05-08 16:24:34 +03:00
Hasnain Virk
e5e8e79a7a
Immutable Payload from radio
...
Received data buffer from radio driver should be immutable.
2018-05-08 16:24:34 +03:00
David Saada
c3e39996b1
Implement FlashSimBlockDevice - flash simulated block device adaptor
2018-05-08 16:15:25 +03:00
Andrzej Kurek
29515c589b
Update logs and remove unnecessary defines for Mbed TLS tests
2018-05-08 12:53:29 +01:00
Kimmo Vaisanen
d200600fc0
Lora: fix AU915 build
...
There was a typo in the code making it fail to compile.
2018-05-08 14:09:03 +03:00
Cruz Monrreal
11901f115b
Merge pull request #6800 from kivaisan/fix_loracrypto_asserts
...
Lora: Fix LoRaMacCrypto asserts
2018-05-07 19:34:56 -05:00
Cruz Monrreal
ceeedfd99c
Merge pull request #6805 from theotherjimmy/reorder-test-configs
...
tools: Reorder test configuration priority
2018-05-07 19:15:14 -05:00
Keyur Hariya
fcd1bc9e37
Add default defines for MAX32625PICO
2018-05-07 16:30:57 -05:00
Marcus Chang
1360920e77
Remove unused NRF52 SDK and MCU files
...
Superseded by new SDK 14.2 in https://github.com/ARMmbed/mbed-os/pull/6547
2018-05-07 12:18:29 -07:00
Cruz Monrreal
0f51ea031e
Merge pull request #6610 from pauluap/stm32_eth_remove_tx_rx_locking_interrupt_perforation
...
Stm32 eth remove tx rx locking interrupt perforation
2018-05-07 10:51:03 -05:00
Cruz Monrreal
53d3c4344f
Merge pull request #6781 from theotherjimmy/refactor-notify
...
tools: Refactor notification API
2018-05-07 10:48:48 -05:00
Cruz Monrreal
5038135c7d
Merge pull request #6577 from SeppoTakalo/remove_features
...
Get rid of FEATURE_COMMON_PAL and FEATURE_NANOSTACK
2018-05-07 10:44:50 -05:00
Cruz Monrreal
53aa1b04ab
Merge pull request #6654 from kjbracey-arm/fault_cr
...
Add missing carriage returns to fault handler
2018-05-07 10:41:40 -05:00
Cruz Monrreal
ab81b61e6c
Merge pull request #6657 from tsailer/exporter-codeblocks-ncs
...
add ncs36510 fib and trim generation
2018-05-07 10:40:51 -05:00
Cruz Monrreal
6ab4091653
Merge pull request #6728 from 0xc0170/fix-issue-template
...
Fix issue template - simplified version
2018-05-07 10:38:49 -05:00
Cruz Monrreal
7a99cd199d
Merge pull request #6773 from OpenNuvoton/nuvoton_fix_timer_stack_size
...
Enlarge timer thread stack size for Cortex-M23/M33
2018-05-07 10:37:36 -05:00
Cruz Monrreal
e023bb67c4
Merge pull request #6771 from marcuschangarm/fix-uart-init
...
Fix UART initialization for NRF52
2018-05-07 10:35:40 -05:00
Cruz Monrreal
2ddce27a42
Merge pull request #6769 from theotherjimmy/fix-subtract-basepath
...
Move subtract basepath into the resources class
2018-05-07 10:33:36 -05:00
Cruz Monrreal
809f183eeb
Merge pull request #6768 from deepikabhavnani/iar_nan0130
...
Nano 100: Lower HEAP size for IAR
2018-05-07 10:32:30 -05:00
Cruz Monrreal
7a1ab1890b
Merge pull request #6792 from jarvte/cellular_dynamic_alloc_and_destr
...
Cellular: Add dynamic alloc and destruction to easycellular
2018-05-07 10:28:43 -05:00
Cruz Monrreal
c52a8d6044
Merge pull request #6793 from theotherjimmy/fix-test-config-passing
...
tools: Pass app-config to get_config
2018-05-07 10:28:03 -05:00
Cruz Monrreal
39fd120064
Merge pull request #6797 from OpenNuvoton/nuvoton_fix_noserial
...
Fix compile error with DirectSerial in serial-less build
2018-05-07 10:27:27 -05:00
Cruz Monrreal
7a5ba60674
Merge pull request #6819 from adbridge/master
...
Remove example update scripting from tools
2018-05-07 10:25:42 -05:00
Jaakko Heikkilä
03b16fc1c3
export: Fix invalid config header path in Sw4STM32
...
Removed tmp-path from config header path, when project is exported
in online compiler. Parallel build is enabled by default.
2018-05-07 15:27:25 +03:00
bcostm
6154fd2598
F3 ST CUBE V1.9.0: remove pcd patch
...
The Lock field is no more available in PCD structure.
2018-05-07 10:58:49 +02:00
bcostm
ccf71f0360
F3 ST CUBE V1.9.0: fix build errors with legacy macros
2018-05-07 10:58:49 +02:00
bcostm
d0f8def2d7
F3 ST CUBE V1.9.0
2018-05-07 10:58:49 +02:00
Martin Kojtal
5a77f42882
Merge pull request #6796 from marcuschangarm/fix-nrf52-tick
...
Fix us_ticker for NRF52 series
2018-05-07 08:17:58 +01:00
Martin Kojtal
6361e92d62
Merge pull request #6798 from marcuschangarm/fix-mbr
...
Fix bug in MBR for NRF52 series
2018-05-04 18:58:14 +01:00
Jimmy Brisson
8e4ab30de7
Remove build_everything.py
...
It's not used
2018-05-04 11:48:17 -05:00
Vincent Coubard
565921608e
Cordio: Improve cordio H4 driver.
...
Ommit H4 driver definition if serial flow control is not supported.
2018-05-04 16:36:05 +01:00
Vincent Coubard
34c9206054
BLE: update cordio porting guide.
...
Improve description of the requirements of the H4 driver.
2018-05-04 16:35:57 +01:00
adbridge
cfe2676b30
Remove example update scripting from tools
...
The examples updating functionality has now been moved to the
mbed-release script and thus can be removed from here.
2018-05-04 13:57:18 +01:00
Vincent Coubard
3f9186faa2
GenericSecurityManager: Fix crypto_toolbox_f4 signature.
...
The type exposed in the header file were not aligned to the one used in
the implementation: ble::public_key_t instead of ble::public_key_coord_t.
2018-05-04 12:11:34 +01:00
Vincent Coubard
fd5903c22d
GenericGattClient: Fix discovery termination.
...
The procedure should be terminated whenever the server returns an error not equal
to ATTRIBUTE_NOT_FOUND. The block was effectivelly terminated but the
procedure was not. As a result the discovery was operating on already
freed memory.
2018-05-04 11:30:58 +01:00
Jimmy Brisson
81f969e127
Reduce memory consumption and lock contension
...
29% speedup (old: 45sec, new: 35sec) on my machine
2018-05-03 13:47:58 -05:00
deepikabhavnani
0f0a4c0a50
Check for NULL pointer before access
2018-05-03 11:23:12 -05:00
Keyur Hariya
04ae15a154
Declare and call low_level_init funtion
2018-05-03 10:57:38 -05:00
Keyur Hariya
3969d85feb
[MAX32625PICO] Add new platform
...
This platform is available with or without Bootloader.
2018-05-03 10:57:38 -05:00
Martin Kojtal
e43d21d4ef
Merge pull request #6713 from theotherjimmy/arm-no-asm-inc
...
Drop include paths for ARM assembler
2018-05-03 16:31:04 +01:00
Martin Kojtal
45b3fffe9a
Merge pull request #6729 from JammuKekkonen/f411re_add_bootloader_support
...
Add bootloader support for NUCLEO_F411RE target
2018-05-03 16:30:29 +01:00
Martin Kojtal
f09ab67af2
Merge pull request #6740 from kivaisan/fix_max_tx_power
...
Lora: Fix max tx power check
2018-05-03 16:28:55 +01:00
Martin Kojtal
b47a3057b6
Merge pull request #6762 from OpenNuvoton/nuvoton_fix_armc6_memtrace
...
Fix compile error with MBED_MEM_TRACING_ENABLED and ARMC6
2018-05-03 16:27:54 +01:00