18 Commits

Author SHA1 Message Date
John Wellbelove
1a1ad71b5f Tidy FSM code. Remove redundant class. 2017-12-22 16:37:49 +00:00
John Wellbelove
9ff47d024c Moved get_fsm_context() from public to protected in etl::state 2017-12-18 21:37:33 +00:00
John Wellbelove
a742749849 Merge branch 'development' 2017-11-01 09:33:17 +00:00
John Wellbelove
a6f3bcd17e Fixed issue where on_exit_state was being called after the state had changed. 2017-10-27 10:03:25 +01:00
John Wellbelove
8455e108bc Merge remote-tracking branch 'origin/feature/Timer_triggered_messages' into development
# Conflicts:
#	examples/ArmTimerCallbacks/RTE/Device/STM32F401RETx/startup_stm32f401xe.s
#	examples/ArmTimerCallbacks/RTE/Device/STM32F401RETx/system_stm32f4xx.c
#	examples/FunctionInterruptSimulation/FunctionInterruptSimulation.cpp
#	examples/FunctionInterruptSimulation/vs2017/FunctionInterruptSimulation.sln
#	examples/FunctionInterruptSimulation/vs2017/FunctionInterruptSimulation.vcxproj
#	examples/FunctionInterruptSimulation/vs2017/FunctionInterruptSimulation.vcxproj.filters
#	test/codeblocks/ETL.cbp
#	test/codeblocks/ETL.depend
#	test/codeblocks/ETL.layout
#	test/test_cyclic_value.cpp
#	test/vs2017/etl.vcxproj
#	test/vs2017/etl.vcxproj.filters
2017-10-18 09:02:46 +01:00
John Wellbelove
69704e8b6a Made it optional for messages to be virtual.
By default they are not.
Can be made virtual by defining ETL_MESSAGES_ARE_VIRTUAL in the project settings.
2017-08-17 15:33:29 +01:00
John Wellbelove
2e5cc0eb4d FSM, Router and bus implementations. 2017-08-03 23:31:50 +01:00
John Wellbelove
740e8b4dd6 Reverted message_id to a virtual function 2017-07-31 19:31:39 +01:00
John Wellbelove
12148f075f Turned FSM from a template to a normal class. 2017-07-31 16:48:32 +01:00
John Wellbelove
672102228f Minor API changes 2017-07-31 10:29:05 +01:00
John Wellbelove
f70850f7f5 Lastest FSM and router changes.
Added message_bus.
Created generators for largest and smallest.
2017-07-28 20:34:58 +01:00
John Wellbelove
0ccdd4fab4 Lastest versions of FSM, Message Router and supporting functionality. 2017-07-25 11:30:00 +01:00
jwellbelove
1cfcf80cb0 Removed redundant semi-colon 2017-07-21 20:12:57 +01:00
jwellbelove
00d56bae66 Remove need for states to be in sorted id order 2017-07-21 20:12:57 +01:00
John Wellbelove
73da59ad17 Integrated FSM and message router classes.
Fixed GCC compatibility issue.
Added on_enter_state() return tests.
2017-07-21 20:11:02 +01:00
jwellbelove
48e016d208 Allowed on_enter_state() to return a new state id. 2017-07-21 20:11:02 +01:00
John Wellbelove
7db12ea0fd Integrated FSM and message router classes. 2017-07-21 20:11:02 +01:00
John Wellbelove
04a9cb7bba Changed FSM to be based on message router 2017-07-21 20:11:02 +01:00