Skip to content

Commit

Permalink
add: luatos固件, 开启sensor库时自动打开LUAT_USE_YHM27XX
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Jan 6, 2025
1 parent 110e9f8 commit b4d38ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/luatos/inc/luat_conf_bsp.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,12 @@
// #define LUAT_SCRIPT_OTA_SIZE 48
// #endif

#ifdef LUAT_USE_SENSOR
#ifndef LUAT_USE_YHM27XX
#define LUAT_USE_YHM27XX 1
#endif
#endif

#define LUA_SCRIPT_ADDR (FLASH_FOTA_REGION_START - (LUAT_SCRIPT_SIZE + LUAT_SCRIPT_OTA_SIZE) * 1024)
#define LUA_SCRIPT_OTA_ADDR FLASH_FOTA_REGION_START - (LUAT_SCRIPT_OTA_SIZE * 1024)

Expand Down

0 comments on commit b4d38ab

Please sign in to comment.