Archived
Template
1
0

Compare commits

..

4 Commits

Author SHA1 Message Date
3be2fc85ff fix submodule 2023-07-14 00:12:03 +02:00
4dc5d2a0bc fix submodule 2023-07-14 00:08:58 +02:00
92bed31368 rename generator 2023-07-14 00:04:27 +02:00
8a47647fdd fix README.md 2023-07-14 00:01:52 +02:00
3 changed files with 11 additions and 7 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "XFTGenerator"]
path = XFTGenerator
url = git@git.kb28.ch:HEL/XFTGenerator.git

View File

@@ -5,8 +5,8 @@ Femto XF is an eXecutive Framework for embedded systems developed
in the University of Applied Sciences Western Switzerland (HES-SO Valais/Wallis)
by Pierre-André Mudry, Pascal Sartoretti and Medar Rieder.
This template is specifically designed for a PIC8 board. It's template for work with state machines.
It used the model of the 5 layers for the packaging and double switch for the state machine.
This template is specifically designed for a PIC18F board. It's template for work with state machines.
It used the model of the 5 layers for the packaging and double switch pattern for the state machine.
## Layers
### App
@@ -16,8 +16,9 @@ Here you can find the factory and obviously the main.
### Board
Here is the place for the board specific code.
The board specific code is the code that is specific to the board and that is not reusable on another board.
Here you can find in bonus a class for the LED and a class for the button for a PIC8 board.
The board code is the code that is not reusable on another board.
Here you can find in bonus a class for the LED and a class for the button for a PIC18F board.
### MCC Generated Files
Here is the files generated by the MPLAB Code Configurator (MCC).
@@ -35,10 +36,10 @@ Here is the femto XF framework. No modification is needed.
### Generator
You can generate a class for state machine with the following command:
```bash
python3 ./generator/XFTGenerator.py
python3 ./XFTGenerator/XFTGenerator.py
```
You can find the generated class in the folder `generator/out/`.
For more details about generator, see the README.md in the folder `generator/`.
You can find the generated class in the folder `XFTGenerator/out/`.
For more details about generator, see the README.md in the folder `XFTGenerator/`.
### How it works
The architecture is based around the method `processEvent()`.