Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Wiki
Home
Changes
Page history
New page
Templates
Clone repository
Initial Home page
authored
7 years ago
by
Alvise de'Faveri
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Home.md
+35
-0
35 additions, 0 deletions
Home.md
with
35 additions
and
0 deletions
Home.md
0 → 100644
View page @
c13f1617
Coding Rules & Best Practices
------------
TODO
*everything*
: decide style conventions, write design best practices and start adding examples
*
Code style and naming conventions
*
Git rules:
[
branching
](
http://nvie.com/posts/a-successful-git-branching-model/
)
, commit messages style
*
Best Practices:
*general design rules that you should follow in order to write bomb-proof code*
-
Terraneo's examples on multi threading
-
[
NASA coding principles
](
http://pixelscommander.com/wp-content/uploads/2014/12/P10.pdf
)
(
revisited
)
Quick Guides
----------------
*
SBS
*
Writing a Driver
*
Eclipse
*
Flashing on a Discovery
*
Flashing on a Stormtrooper
Examples
--------
*
Common examples:
*Things that you are very likely to need when writing code in boardcore*
-
Read from and Write to serial (other than default)
-
data logging (debugging)
-
active objects (scheduling)
-
error reporting (fault counter)
-
miosix queues
-
miosix threads
-
scheduler e funzioni con timeout
-
profiling della memoria
*
Cheat Sheet:
*Things that made us say "If only I knew that before!" (or maybe worse)*
-
Add another usart to a board
-
Use right amount of stack (printf!)
-
Chiamare una funzione di un oggetto in un thread (wrapper statico)
\ No newline at end of file
This diff is collapsed.
Click to expand it.