Updated GPIO impl.
Signed-off-by: Yilin Sun <imi415@imi.moe>
This commit is contained in:
parent
05fd81be01
commit
13b19f4208
|
@ -65,7 +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/mrb_machine_impl/mrb_machine_gpio_impl.c"
|
||||
"src/main.c"
|
||||
)
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e6814df6016228319a29c5d6e0910d4cc1ff6351
|
||||
Subproject commit 3e175303e53c4126a94828f89d028bf57e57a889
|
|
@ -0,0 +1,20 @@
|
|||
#include <stdio.h>
|
||||
|
||||
/* Board */
|
||||
#include "board.h"
|
||||
|
||||
/* SDK drivers */
|
||||
#include "fsl_gpio.h"
|
||||
|
||||
/* Gem private */
|
||||
#include "machine-gpio/src/gpio.h"
|
||||
|
||||
int mrb_machine_gpio_impl_config(uint32_t pin, machine_gpio_config_t *cfg) {
|
||||
printf("IO initialize: Pin %ld to %d, init %d\n", pin, cfg->mode, cfg->initial_value);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int mrb_machine_gpio_read(uint32_t pin) {
|
||||
return 0;
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#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