Veijo Pesonen
b575df072f
Removes RSPIF block device driver
...
The driver is not needed by the bootloader anymore.
2020-02-24 16:01:14 +02:00
Anna Bridge
8c17270306
Merge pull request #12480 from 0xc0170/fix_spdx
...
Fix SPDX identifiers and licenses (excluding features and targets)
2020-02-21 16:34:30 +00:00
Martin Kojtal
8f1bf967d3
Merge pull request #11942 from michalpasztamobica/remove_deprecated_apis
...
IPCore String-based API removal
2020-02-21 12:14:06 +00:00
Martin Kojtal
2d7e1ba943
unittest: fix missing licenses + spdx
2020-02-21 07:01:00 +00:00
Seppo Takalo
b8361e43bd
Fix license headers.
2020-02-20 16:56:30 +02:00
Seppo Takalo
b013bc9563
Add EmulatedSD stubs that allow using files as a BlockDevice
2020-02-20 12:22:16 +02:00
Seppo Takalo
35410a9b53
Add module tests for TDBStore
2020-02-20 12:22:16 +02:00
Martin Kojtal
bac5ffec85
Merge pull request #12398 from michalpasztamobica/block_device_unittests
...
Add BlockDevice unittests and fix issues they revealed
2020-02-14 08:23:06 +00:00
Michal Paszta
34eb432b70
unittests: Fix memory leak in FlashSimBD test
2020-02-13 08:59:39 +02:00
Michal Paszta
31ce76487f
unittests: BlockDevice unittests improvements
...
Moved the existing BufferedBlockDevice to features/storage unittests and switched it to gmock.
Added gmock-based unit tests to all other BlockDevice classes.
SlicingBlockDevice test left as a module test.
2020-02-10 19:36:52 +02:00
Martin Kojtal
da7c641f17
Merge pull request #12386 from jamesbeyond/unittest-fix
...
TEST: fix a bug in ATCmdParser test
2020-02-10 13:17:51 +00:00
Kimmo Vaisanen
a66f15dc4b
Testing: Fix buffer overflow in ATHandler_read_bytes UT test
...
Fixes issue #12390
2020-02-10 09:52:39 +02:00
Martin Kojtal
d847f9f164
Merge pull request #12305 from kivaisan/remove_multi_athandler_support_v2
...
Cellular: Remove support for multiple ATHandlers
2020-02-07 11:00:41 +00:00
Martin Kojtal
e68915392b
Merge pull request #12287 from maciejbocianski/fix_unittests_on_windows
...
Fix unittests on windows(mingw)
2020-02-07 11:00:24 +00:00
Qinghao Shi
115f1cc9c8
TEST: fix a bug in ATCmdParser test
2020-02-07 00:44:00 +00:00
Michal Paszta
d9e37e7212
Unittests fixed not to use deprecated string-based API
2020-02-06 11:27:50 +02:00
Michal Paszta
458957d399
IPCore deprecated string-based API removal
...
String-based functions should be replaced with an explicit DNS hostname resolution and a SocketAddress-based API.
2020-02-06 11:27:49 +02:00
Martin Kojtal
8dc15ee6e1
Merge pull request #12293 from mirelachirica/remove_empty_api
...
Cellular: Remove API's empty default implemetations
2020-02-06 09:05:40 +00:00
Maciej Bocianski
a2e5a34df6
unittests: fix windows build
...
- set equeue platform to posix for MINGW
- enable PRIx formatting globally
- remove redundant Semaphore implementation
2020-02-05 14:20:06 +01:00
Martin Kojtal
5165559a2c
Merge pull request #12142 from kjbracey-arm/thread_rm510
...
Thread: remove methods deprecated in 5.10
2020-02-03 15:09:34 +00:00
Michal Paszta
03fcc3a6f7
Unittests: DNS - use the real getaddrinfo function
...
This was recently added to NetworkInterface. Earlier a temporary function was put into the test to mimic that behavior.
2020-01-31 09:23:00 +02:00
Michal Paszta
6d71addc40
Unittests: DNS - fix path and filename
2020-01-31 09:22:45 +02:00
Kimmo Vaisanen
bd0f939277
Cellular: Remove support for multiple ATHandlers
...
Major changes:
- Dependency to FileHandle removed from base classes
- AT_CellularDevice owns the default FileHandle and shares it with AT -classes
- Hang-up -detection moved as CellularContext::configure_hup(). Cannot be configured via CellularDevice any more.
Result on NRF52840_DK + BG96:
GCC:
Total Static RAM memory (data + bss): 29360(+296) bytes
Total Flash memory (text + data): 130660(-832) bytes
ARM:
Total Static RAM memory (data + bss): 261554(+8) bytes
Total Flash memory (text + data): 127573(-1193) bytes
IAR:
Total Static RAM memory (data + bss): 25479(+296) bytes
Total Flash memory (text + data): 102418(-527) bytes
RAM increase is because now ATHandler is no longer created with new -operator but is now member of AT_CellularDevice,
so image tool is able to count it. Actually total RAM consumption has decreased due to removed variables.
2020-01-23 09:27:44 +02:00
David Lin
b49dac2de0
optimize the code of array set to zero
...
1. replace 'char buf[8]; memset(buf, 0, 8);' with 'char buf[8] = {0};'.
2020-01-21 20:23:55 +08:00
Mirela Chirica
e2048b06b2
Cellular: Remove API's empty default implemetations
2020-01-21 10:45:09 +02:00
Ari Parkkila
2871721e08
Cellular: Refactor socket_stack_init() from generic to modem specific
2020-01-20 00:56:09 -08:00
Martin Kojtal
b08dc22e27
Merge pull request #12273 from maciejbocianski/disable_coverage_filtering
...
unittests: disable coverage report filtering
2020-01-20 07:29:52 +00:00
Martin Kojtal
ecf4d62dc5
Merge pull request #12265 from AriParkkila/cell-fea-refactor
...
Refactor unnecessary functions from cellular driver
2020-01-17 13:57:06 +00:00
Maciej Bocianski
38d1868ff0
unittests: disable coverage report filtering
...
Disable coverage report filtering because of poor results.
Test name filtering pattern (-r) was used to filter coverage
report causing wrong results when filtered test name wasn't
matching the implementation source file name
2020-01-17 13:01:39 +01:00
Ari Parkkila
f9eef97ead
Cellular Refactor get_send_delay() into CellularProperty
2020-01-17 00:28:41 -08:00
Hugues Kamba
9e11e5b43d
Cellular: Replace UARTSerial references with BufferedSerial
...
`BufferedSerial` is `UARTSerial` renamed to convey the original purpose
of the class. It is the recommended buffered I/O serial class.
2020-01-16 16:22:07 +00:00
Ari Parkkila
ceea992b40
Cellular: Refactor is_protocol_supported() into CellularProperty
2020-01-15 23:04:00 -08:00
Ari Parkkila
e2cb18061e
Cellular: Refactor get_max_socket_count() into CellularProperty
2020-01-15 23:04:00 -08:00
Martin Kojtal
b96d3ad5be
Merge pull request #12263 from maciejbocianski/fix_unittests_coverage_filtering
...
unittest: fix coverage filtering
2020-01-15 17:57:21 +00:00
Maciej Bocianski
2768300ada
unittest: fix coverage filtering
...
change coverage filter pattern from ^pattern* to *pattern*
2020-01-15 13:29:05 +01:00
Martin Kojtal
631b581ee7
Merge pull request #12254 from maciejbocianski/fix_unittest_ATCmdParser_segfault
...
unittest: fix ATCmdParser test segfault
2020-01-15 13:06:48 +01:00
Maciej Bocianski
455b846bc1
unittest: fix ATCmdParser test segfault
2020-01-14 13:15:50 +01:00
Kimmo Vaisanen
0d525fff29
Cellular: Remove deprecated CellularDevice::stop()
...
CellularDevice::shutdown() should be used instead.
2020-01-14 10:47:05 +02:00
Martin Kojtal
1fb9dd7ddd
Merge pull request #12122 from AnttiKauppila/visibility_fixes
...
ATHandler refactoring
2020-01-09 12:05:08 +01:00
Martin Kojtal
8d94d4ce92
Merge pull request #12214 from kivaisan/move_string_to_pdp_type_to_cellularcontext
...
Cellular: Move string_to_pdp_type method to CellularContext
2020-01-08 16:59:58 +01:00
Kevin Bracey
a0197dba49
Thread: remove methods deprecated in 5.10
2020-01-08 16:47:18 +02:00
Roman Volosatovs
21b0463653
Fix dl_channel tests
2020-01-08 11:54:05 +01:00
Kimmo Vaisanen
0d7cc428b1
Cellular: Move string_to_pdp_type method to CellularContext
...
string_to_pdp_type is only used in CellularContext classes and by having
the conversion method in CellularContext it can be used to check also
the non-standard Non-IP PDP type string.
2020-01-08 12:15:51 +02:00
Antti Kauppila
5553d0acd3
ATHandler class refactor
...
Refactored ATHandler class to have clear private and public elements
Also removed virtuality from ATHandler
Unittests updated to reflect changes
2020-01-07 17:15:27 +02:00
Antti Kauppila
36ca4d6516
ATHandler relocated
...
ATHandler is part of our API so header file was moved under API folder and .cpp file was moved under device/ folder
ATHandler is used in both AT and PPP mode so it has been in slightly wrong place at the beginning.
2020-01-07 17:15:27 +02:00
Martin Kojtal
3e790cc9ab
Merge pull request #12065 from AriParkkila/cell-fea-nidd
...
Non-IP socket implementation for NIDD over CP
2020-01-07 15:55:15 +01:00
Martin Kojtal
9d16a17e7e
Merge pull request #11653 from tymoteuszblochmobica/multiple
...
Add Getaddrinfo interface for multiple DNS adresses
2020-01-07 14:53:36 +01:00
Ari Parkkila
7899fead59
Cellular: Refactor CellularBase from AT_ControlPlane_netif
2020-01-07 04:03:33 -08:00
Ari Parkkila
913cbd96a6
Cellular: Change 3GPP TS 27.007 NIDD to async
...
Add a missing license header.
Remove semaphores and add +CRTDCP to support async operation.
Fix delete context and disconnect to execute just once.
Add support for NONIP PPD type.
Change CellularNetwork::clear() to virtual so it can be overridden.
2020-01-06 22:35:18 -08:00
Kimmo Vaisanen
6c647104c7
Cellular: Move cellular event queue thread ownership to CellularDevice
...
Earlier CellularDevice has owned event queue used by cellular (state machine and ATHandler for example),
but the thread used to dispatch the queue has been owned by state machine.
This commit moves the event queue thread to CellularDevice so now the ownership of cellular event queue
is in one place.
2020-01-07 08:28:30 +02:00