-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
140 additions
and
67 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
src/fprime/cookiecutter_templates/cookiecutter-fprime-module/cookiecutter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"module_name": "MyModule", | ||
"__prompts__": { | ||
"module_name": "Module name" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...iecutter_templates/cookiecutter-fprime-module/{{cookiecutter.module_name}}/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set(SOURCE_FILES | ||
"${CMAKE_CURRENT_LIST_DIR}/{{cookiecutter.module_name}}.fpp" | ||
) | ||
|
||
register_fprime_module() |
20 changes: 20 additions & 0 deletions
20
.../cookiecutter-fprime-module/{{cookiecutter.module_name}}/{{cookiecutter.module_name}}.fpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module {{cookiecutter.module_name}} { | ||
|
||
########################################################################### | ||
#### Uncomment the following examples to start customizing your module #### | ||
########################################################################### | ||
|
||
# enum ExampleEnum: U8 { A, B, C } | ||
|
||
# array ExampleArray = [3] F32 | ||
|
||
# struct ExampleStruct { x: U32, y: string } | ||
|
||
# @ ExamplePort returning an F32 | ||
# port ExamplePort( | ||
# arg1: ExampleEnum @< The first argument | ||
# arg2: ExampleArray @< The second argument | ||
# arg3: ExampleStruct @< The third argument | ||
# ) -> F32 | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters