From 1994355229d527fc050be2f5fb63f2835ec21a05 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Mon, 21 Sep 2020 04:50:05 +0200 Subject: new_fsm fu Change-Id: Ie3c6e63510a399d57a752a481a032d0022888885 --- contrib/new_fsm.py | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/contrib/new_fsm.py b/contrib/new_fsm.py index 5e836f33..71779e56 100755 --- a/contrib/new_fsm.py +++ b/contrib/new_fsm.py @@ -190,24 +190,28 @@ fsm = FSM(head='#include ', with open('lcs_loc_req.c', 'w') as f: f.write(fsm.to_c()) -fsm = FSM(head='#include ', - prefix = 'lcs_ta_req', - priv = 'lcs_ta_req', +fsm = FSM(head='#include ', + prefix = 'smlc_subscr_conn', + priv = 'smlc_subscr_conn', states = ( State('init', - ('start',), - ('wait_ta', 'got_ta'), + (), + ('conn_req',), onenter=False, ), - State('wait_ta', - ('ta',), - ('got_ta', ), + State('conn_req', + (), + ('connected', ), + ), + State('connected', + ('unused'), + ('releasing'), ), - State('got_ta', + State('releasing', (), (), ), ) ) -with open('lcs_ta_req.c', 'w') as f: +with open('smlc_subscr_conn.c', 'w') as f: f.write(fsm.to_c()) -- cgit v1.2.3