-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drv/ioport_lpf2: move out of autostart processes
This continues the work of getting rid of the autostart processes by changing the LPF2 I/O port driver to use an init function like most other drivers.
- Loading branch information
Showing
6 changed files
with
43 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: MIT | ||
// Copyright (c) 2021 The Pybricks Authors | ||
|
||
#ifndef _INTERNAL_PBDRV_IOPORT_H_ | ||
#define _INTERNAL_PBDRV_IOPORT_H_ | ||
|
||
#include <pbdrv/config.h> | ||
|
||
#if PBDRV_CONFIG_IOPORT | ||
|
||
#include "ioport_lpf2.h" | ||
|
||
/** | ||
* Initializes the ioport driver. | ||
*/ | ||
static inline void pbdrv_ioport_init(void) { | ||
pbdrv_ioport_lpf2_init(); | ||
} | ||
|
||
#else // PBDRV_CONFIG_IOPORT | ||
|
||
#define pbdrv_ioport_init() | ||
|
||
#endif // PBDRV_CONFIG_IOPORT | ||
|
||
#endif // _INTERNAL_PBDRV_IOPORT_H_ |
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
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