Commit Graph

12 Commits (feature-bluetooth-unit-test)

Author SHA1 Message Date
adbridge 81d7ac683b Minor formatting tweak to fix file permissions 2021-01-18 14:59:30 +00:00
adbridge 27689ef2b3 Further whitespace fixes 2021-01-12 13:29:26 +00:00
adbridge 9e7c82ceed Fix astyle issues 2021-01-08 17:33:51 +00:00
adbridge 37f13bdeb2 Remove unecessary namespace qualified
(Also minor whitespace correction)
2021-01-08 17:15:13 +00:00
adbridge f2b86864d5 Fix some whitespace issues 2021-01-06 16:07:04 +00:00
adbridge c0a57ba3b9 Updated event period handling and greentea test
non_periodic constant has been moved out of the Event class and
made static within the events namespace so that it is available
both internally within the class and externally.

The MBED_ASSERT has been changed to MBED_WARNING.

The greentea test has been updated:
1) timings reduced to make the test cases run faster
2) The call handler simplified
2021-01-06 16:07:04 +00:00
adbridge 6b2a0fe1d4 Update events period method to check for invalid values
The period method currently allows any ms value positive, negative
and zero. A negative value means dispatch a non periodic event
ie just once. 0 is unspecified behaviour. This commit forces the
user to use either positive periods or a new constant non_periodic
and should any other value be provided will default to
non_periodic.

A Greentea test case is also provided to check this works as
expected.
2021-01-06 16:07:04 +00:00
adbridge 8ab6290f23 Review feedback - capitilise argument descriptions 2020-12-09 16:03:23 +00:00
adbridge 8a5671b1f5 Update Event period and delay parameter comments 2020-11-26 16:04:11 +00:00
adbridge 95f40aa8ff Fix the time units stated in the delay and period functon headers
delay() and period() still stated that the units were milliseconds
whereas in fact they are now a Chrono duration.
2020-11-25 17:34:25 +00:00
Harrison Mutai 4fad1112e5 Add SPDX license identifier to Arm files
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
George Psimenos 76f37fb2bc Restructure events directory & move tests 2020-07-28 09:17:19 +01:00