John Wellbelove
7bb438bf1b
Added the option to derive etl::message<> from a custom parent class
2021-06-30 20:57:42 +01:00
Manuel Seeböck
38d8452e70
added optional template parameter to etl::imessage to specify a base class other than imessage ( #401 )
...
Co-authored-by: Manuel Seeböck <seeboeck@pjm.co.at>
2021-06-30 13:33:05 +01:00
John Wellbelove
ef6885c02c
Unified vector asserts
2021-06-30 11:25:37 +01:00
John Wellbelove
7933e146fc
Updated Arduino examples
2021-06-29 19:15:07 +01:00
John Wellbelove
aed7417bae
C++20 compatibility for deprecated std::is_pod
2021-06-24 20:38:57 +01:00
John Wellbelove
b1aa00df47
Deleted experimental files
2021-06-24 18:14:25 +01:00
John Wellbelove
49630a58c8
Fixed swapped HUGE_VAL & HUGE_VALF definitions
2021-06-22 20:32:57 +01:00
John Wellbelove
b1f771f6b4
Updated version numbers
2021-06-22 12:04:28 +01:00
John Wellbelove
60b04b55f6
Fixed copy and move assignment bug
2021-06-22 11:00:42 +01:00
John Wellbelove
e090f1a18c
Define missing macro when cross compiling with clang
2021-06-18 14:38:12 +01:00
John Wellbelove
1a4e58d028
Define missing macro when cross compiling with clang
2021-06-18 14:15:44 +01:00
T
a32fa10329
Add support to cross-compile with clang ( #389 )
...
Clang does not define __WCHAR_MIN__ however, limits.h relies on it.
By using the __AVR__ macro we can define __WCHAR_MIN__ only when
cross-compiling with clang.
2021-06-18 12:52:34 +01:00
John Wellbelove
6a1ce235dc
etl::basic_string::copy is now const and does not affect the 'truncated' flag.
2021-06-17 13:02:59 +01:00
John Wellbelove
e44efd75a7
etl::basic_string::copy is now const and does not affect the 'truncated' flag.
2021-06-17 12:01:04 +01:00
John Wellbelove
6f0b0a9809
Updated version numbers
2021-06-14 14:31:55 +01:00
John Wellbelove
892529b0f2
Merge branch 'feature/mem_cast' into development
2021-06-14 14:20:38 +01:00
John Wellbelove
1781be7702
Fixed ambiguous function call for clang
2021-06-14 13:23:41 +01:00
John Wellbelove
e4e61cfe69
Fixed ambiguous function call for clang
2021-06-14 13:11:03 +01:00
John Wellbelove
0a7a131a43
Updated version numbers
2021-06-12 11:48:27 +01:00
John Wellbelove
fb54f23e5d
Latest updates
2021-06-12 11:43:32 +01:00
Jonathan
7212856424
Change debounce state tables to be defined as constant. ( #386 )
...
Currently these state tables are being defined in the data section of RAM. As these tables are unchanged, this change allows them to be placed in the text section instead. As they are function local objects, they also get lazy initialized causing references to the dynamic shared object which are unnecessary.
2021-06-10 10:13:06 +01:00
John Wellbelove
2b2a542aa1
Added more static asserts for alignment
2021-06-03 20:45:36 +01:00
John Wellbelove
a2aa6b26c3
Changed comments
2021-06-03 11:44:38 +01:00
John Wellbelove
208d0c4a26
Added/adjusted 'force C++03' unit test macros
2021-06-03 10:56:08 +01:00
John Wellbelove
e2eb6e8650
Added ETL_ASSERT_AND_RETURN and ETL_ASSERT_AND_RETURN_VALUE error macros
2021-06-02 21:34:48 +01:00
John Wellbelove
177c4d1e79
Added 'at_offset' functions.
...
Changed size for mem_cast_ptr from template parameter fo member variable.
2021-06-02 21:33:08 +01:00
John Wellbelove
e21d3edd6a
Initial commit
2021-05-31 15:55:13 +01:00
John Wellbelove
830d0d00f1
Updated QueuedMessageRouter and QueuedFSM examples to use current message frameworks.
2021-05-24 20:08:56 +01:00
Martino Pilia
42546176a9
Fix uninitialised warning in etl::optional ( #381 )
...
The constructors of etl::optional with no argument or with etl::nullopt_t
argument do not initalise the storage data member. When compiling with
gcc with some specific optimisation levels, this can generate a
-Wmaybe-uninitialized diagnostic warning.
2021-05-21 17:17:43 +01:00
John Wellbelove
fc6609276c
Added container_type to etl::stack, etl::queue and etl::priority_queue.
2021-05-20 20:54:01 +01:00
Daníel Grétarsson
9c2b5c3d75
Add container_type type definition to etl::queue to better match std::queue ( #378 )
...
* Add container_type type definition to better match std::queue
* Add container_type typedef to priority_queue and stack classes to maximize compatibility with the std library
2021-05-20 09:14:31 +01:00
John Wellbelove
f131356dc2
Fixed cross compiler compatibility for etl::circular_buffer.
2021-05-18 11:05:21 +01:00
John Wellbelove
0efecca700
Updated version numbers
2021-05-16 11:12:28 +01:00
John Wellbelove
bbb390ba52
Fixed FSM generation for non-default numbers message types.
2021-05-16 10:57:44 +01:00
John Wellbelove
161b27cb32
Updated versions
2021-05-10 17:42:53 +01:00
John Wellbelove
0990fa56ee
Fixed sparse histogram class name
2021-05-10 16:18:23 +01:00
John Wellbelove
8a533485f0
Fixed incorrect histogram end() and cend() return values.
2021-04-27 18:21:44 +01:00
John Wellbelove
4e8ff433c6
Fixed histogram end() and cend() values.
2021-04-27 18:17:35 +01:00
John Wellbelove
b084913b3f
Updated versions
2021-04-25 21:03:07 +01:00
John Wellbelove
2e115df488
Merge branch 'feature/Add-hierarchical-FSM-capabilities-to-the-FSM' into development
2021-04-25 15:11:25 +01:00
John Wellbelove
43d16b1034
Adjustments to code and optimisations
2021-04-25 15:11:02 +01:00
John Wellbelove
86edd1a504
Adjustments to code and optimisations
2021-04-25 14:21:40 +01:00
John Wellbelove
b01d58a21c
Adjustments to code and optimisations
2021-04-25 14:20:29 +01:00
John Wellbelove
c308dc427b
Added additional accept() functions for etl::message_packet.
...
Updated version numbers
2021-04-24 11:28:45 +01:00
John Wellbelove
60afadcf86
Merge branch 'hotfix/misspelt-macro' into development
2021-04-24 11:25:20 +01:00
John Wellbelove
d40823d2a2
Fixed misspelt DBL_MAX macro
2021-04-24 11:25:02 +01:00
John Wellbelove
7f2ea864e0
Minor changes & renames
2021-04-24 09:25:39 +01:00
John Wellbelove
c5850a005b
Minor changes
2021-04-23 11:58:58 +01:00
John Wellbelove
f85d13660f
Added additional accept() functions.
2021-04-23 11:29:20 +01:00
Jeremy Overesch
2d3b063df6
Add hierarchical FSM capabilities to the FSM. ( #374 )
...
In order to work properly, states with no change need to return ifsm_state::NO_CHANGE rather than their given state id.
Otherwise, when an event isn't handled, it will return the parent state rather than the active state.
Also, in this implementation, a state cannot return a different state during the on_enter_state() function. An assert has been added to check for that.
2021-04-22 08:40:53 +01:00