Archived
Template
1
0
This repository has been archived on 2024-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
XFT/src/app/factory.c
2023-07-11 12:27:35 +02:00

61 lines
1.9 KiB
C

/*$file${.::app::factory.c} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
/*
* Model: XFT.qm
* File: ${.::app::factory.c}
*
* 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.c} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
/*
* @author Rémi Heredero
* @date July 2023
* @version 1.0.0
* @see work of Medar Rieder & Pascal Sartoretti about femto XF
*/
#include "factory.h"
Factory Factory_theFactory;
/*${app::Factory::init} ....................................................*/
void Factory_init(void) {
LED_init(Factory_l1(), 1);
LED_initHW(Factory_l1());
}
void Factory_build(){
}
/*${app::Factory::start} ...................................................*/
void Factory_start(void) {
LED_on(Factory_l1());
}
/*${app::Factory::l1} ......................................................*/
LED* Factory_l1(void) {
return &Factory_theFactory.l1_;
}
/*$enddef${app::Factory} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/