Archived
Template
1
0

add files from blinker project

This commit is contained in:
2023-07-11 15:43:00 +02:00
parent dc6a7f8799
commit c026d276a5
11 changed files with 1002 additions and 314 deletions

104
src/app/factory.h Normal file → Executable file
View File

@@ -1,38 +1,7 @@
/*$file${.::app::factory.h} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
/*
* Model: XFT.qm
* File: ${.::app::factory.h}
*
* This code has been generated by QM 5.2.5 <www.state-machine.com/qm>.
* DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
* This generated code is open source software: you can redistribute it under
* the terms of the GNU General Public License as published by the Free
* Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* NOTE:
* Alternatively, this generated code may be distributed under the terms
* of Quantum Leaps commercial licenses, which expressly supersede the GNU
* General Public License and are specifically designed for licensees
* interested in retaining the proprietary status of their code.
*
* Contact information:
* <www.state-machine.com/licensing>
* <info@state-machine.com>
*/
/*$endhead${.::app::factory.h} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
/*
* @author Rémi Heredero
* @date July 2023
* @version 1.0.0
* @see work of Medar Rieder & Pascal Sartoretti about femto XF
/**
* @author R<>mi Heredero (remi@heredero.ch)
* @version. 0.0.6
* @date 2023-06-15
*/
#ifndef FACTORY_H
@@ -42,21 +11,60 @@
#include <stdbool.h>
#include "../board/led.h"
#include "../board/button.h"
#include "../middleware/clickHandler.h"
#include "../middleware/blinker.h"
/*$declare${app::Factory} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
/*${app::Factory} ..........................................................*/
typedef struct Factory {
/* public: */
typedef struct {
LED l1_;
LED l2_;
LED l3_;
LED l4_;
LED l5_;
LED l6_;
LED l7_;
LED l8_;
LED l9_;
LED l10_;
BUTTON b1_;
BUTTON b2_;
BUTTON b3_;
CLICK_HANDLER ch1_;
CLICK_HANDLER ch2_;
CLICK_HANDLER ch3_;
BLINKER blL_;
BLINKER blR_;
BLINKER blB_;
} Factory;
/* public: */
void Factory_init(void);
void Factory_build(void);
void Factory_start(void);
LED* Factory_l1(void);
extern Factory Factory_theFactory;
/*$enddecl${app::Factory} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
#endif
void Factory_init();
void Factory_build();
void Factory_start();
//these are global getters for our objects
LED* l1();
LED* l2();
LED* l3();
LED* l4();
LED* l5();
LED* l6();
LED* l7();
LED* l8();
LED* l9();
LED* l10();
BUTTON* b1();
BUTTON* b2();
BUTTON* b3();
CLICK_HANDLER* ch1();
CLICK_HANDLER* ch2();
CLICK_HANDLER* ch3();
BLINKER* blL();
BLINKER* blR();
BLINKER* blB();
#endif