... | @@ -27,9 +27,9 @@ Consider that the GPIOs associated to the SPI bus (`SPI1` in this example) can v |
... | @@ -27,9 +27,9 @@ Consider that the GPIOs associated to the SPI bus (`SPI1` in this example) can v |
|
`PA5`, `PA6` and `PA7`.
|
|
`PA5`, `PA6` and `PA7`.
|
|
|
|
|
|
```cpp
|
|
```cpp
|
|
namespace Boardcore
|
|
#include <miosix.h>
|
|
{
|
|
|
|
|
|
|
|
|
|
using namespace Boardcore;
|
|
using namespace miosix;
|
|
using namespace miosix;
|
|
|
|
|
|
typedef Gpio<GPIOA_BASE, 5> sck;
|
|
typedef Gpio<GPIOA_BASE, 5> sck;
|
... | @@ -79,10 +79,9 @@ Import the header file and specify the namespaces: |
... | @@ -79,10 +79,9 @@ Import the header file and specify the namespaces: |
|
|
|
|
|
```cpp
|
|
```cpp
|
|
#include "SpiDriver.h”
|
|
#include "SpiDriver.h”
|
|
|
|
#include <utils/Debug.h>
|
|
|
|
|
|
namespace Boardcore
|
|
using namespace Boardcore;
|
|
{
|
|
|
|
|
|
|
|
using namespace miosix;
|
|
using namespace miosix;
|
|
```
|
|
```
|
|
|
|
|
... | | ... | |