extmod/modmachine: Add MICROPY_PY_MACHINE_SIGNAL configuration option.

Enabled by default.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George
2024-03-14 10:58:41 +11:00
parent c231c89651
commit 23ccbcf230
3 changed files with 11 additions and 5 deletions

View File

@@ -24,12 +24,11 @@
* THE SOFTWARE.
*/
#include "py/mpconfig.h"
#if MICROPY_PY_MACHINE
#include <string.h>
#include "py/runtime.h"
#if MICROPY_PY_MACHINE_SIGNAL
#include "extmod/modmachine.h"
#include "extmod/virtpin.h"
@@ -181,4 +180,4 @@ MP_DEFINE_CONST_OBJ_TYPE(
locals_dict, &signal_locals_dict
);
#endif // MICROPY_PY_MACHINE
#endif // MICROPY_PY_MACHINE_SIGNAL