Initial GPIO gem experiment.
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
7420a3002f
commit
92d55fe8d5
|
@ -65,6 +65,7 @@ set(TARGET_SOURCES
|
|||
"src/app_aux_ctrl.c"
|
||||
"src/app_mrb_repl.c"
|
||||
"src/app_syscalls.c"
|
||||
"src/mrb_machine_impl/mrb_machine_impl_gpio.c"
|
||||
"src/main.c"
|
||||
)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 002dfde385403b81973b588cf0af0ae0517bedaa
|
||||
Subproject commit 538ae1d21f7fd78b628d6b9f0b85b2b54eb28795
|
|
@ -19,7 +19,7 @@
|
|||
#define APP_LOG_SUCCESSFUL_ALLOC false
|
||||
#endif
|
||||
|
||||
static bool s_aux_available = false;
|
||||
static volatile bool s_aux_available = false;
|
||||
|
||||
static void app_mrb_runtime_task(void *parameters);
|
||||
|
||||
|
@ -50,6 +50,8 @@ dead_loop:
|
|||
}
|
||||
}
|
||||
|
||||
/* TODO: Split runtime and REPL so that user can interrupt with Ctrl-C input. */
|
||||
|
||||
static void app_mrb_runtime_task(void *parameters) {
|
||||
bool exit_repl;
|
||||
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
#include "board.h"
|
||||
#include "fsl_gpio.h"
|
||||
#include "machine-gpio/src/gpio.h"
|
||||
|
||||
int mrb_machine_impl_gpio_init(uint32_t pin, mrbgems_machine_gpio_mode_t mode) {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue