Skip to content

Commit

Permalink
add: 关联spi/i2c库,虽然还没做实现,但起码不报错咯
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Nov 6, 2023
1 parent b52f94c commit e2a5a4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file added cmd.lnk
Binary file not shown.
4 changes: 2 additions & 2 deletions include/luat_conf_bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
// 外设,按需启用, 最起码启用uart和wdt库
#define LUAT_USE_UART 1
#define LUAT_USE_GPIO 1
// #define LUAT_USE_I2C 1
// #define LUAT_USE_SPI 1
#define LUAT_USE_I2C 1
#define LUAT_USE_SPI 1
// #define LUAT_USE_ADC 1
// #define LUAT_USE_PWM 1
// #define LUAT_USE_WDT 1
Expand Down
3 changes: 3 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ target("luatos-lua")
,luatos.."luat/modules/luat_lib_libcoap.c"
,luatos.."luat/modules/luat_lib_rtc.c"
,luatos.."luat/modules/luat_lib_gpio.c"
,luatos.."luat/modules/luat_lib_spi.c"
,luatos.."luat/modules/luat_lib_i2c.c"
,luatos.."luat/modules/luat_irq.c"
,luatos.."luat/modules/luat_main.c"
)

Expand Down

0 comments on commit e2a5a4b

Please sign in to comment.