| ... | ... | @@ -82,7 +82,7 @@ class SimpleLed |
|
|
|
Please note a few things that are part of our [coding standards](Coding-Guidelines):
|
|
|
|
- Copyright at the start (write your name in the authors and the right date)
|
|
|
|
- `#pragma once` directive, to prevent multiple re-inclusions
|
|
|
|
- `#include <Common.h>`, a bunch of useful includes :)
|
|
|
|
- `#include <miosix.h>`, a bunch of useful includes :)
|
|
|
|
- `namespace Boardcore`, to avoid name collisions
|
|
|
|
- `typedef miosix::Gpio<XXX, YYY>` is how GPIO pins are declared in Miosix: `<GPIOD_BASE, 14>` means pin `PD14` of the discovery board
|
|
|
|
- Comments on top of the class and before each function, with a description of the argument and/or the return value
|
| ... | ... | |