mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-27 23:33:53 +03:00
60a9d7e6cf
* ble: profile rework, initial * apps: hid: fix for pairing cleanup * app: hid: select transport based on #define * fixing PVS warnings * ble: serial service: fixed uid naming * bt service: on-demand dialog init; ble profiles: docs; battery svc: proper update * Added shci_cmd_resp_wait/shci_cmd_resp_release impl with semaphore * app: hid: separated transport code * ble: fixed service init order for serial svc; moved hardfault check to ble_glue * cli: ps: added thread prio to output, fixed heap display * ble_glue: naming changes; separate thread for event processing; * furi: added runtime stats; cli: added cpu% to `ps` * cli: fixed thread time calculation * furi: added getter for thread priority * fixing pvs warnings * hid profile: fixed naming * more naming fixes * hal: ble init small cleanup * cleanup & draft beacon api * f18: api sync * apps: moved example_custom_font from debug to examples * BLE extra beacon demo app * naming fix * UI fixes for demo app (wip) * desktop, ble svc: added statusbar icon for beacon * minor cleanup * Minor cleanup & naming fixes * api sync * Removed stale header * hal: added FURI_BLE_EXTRA_LOG for extra logging; comments & code cleanup * naming & macro fixes * quick fixes from review * Eliminated stock svc_ctl * cli: ps: removed runtime stats * minor include fixes * (void) * naming fixes * More naming fixes * fbt: always build all libs * fbt: explicitly globbing libs; dist: logging SDK path * scripts: fixed lib path precedence * hal: bt: profiles: naming changes, support for passing params to a profile; include cleanup * ble: hid: added parameter processing for profile template * api sync * BLE HID: long name trim * Removed unused check * desktop: updated beacon status icon; ble: hid: cleaner device name management * desktop: updated status icon Co-authored-by: あく <alleteam@gmail.com> Co-authored-by: nminaylov <nm29719@gmail.com>
73 lines
2.0 KiB
Plaintext
73 lines
2.0 KiB
Plaintext
Import("env")
|
|
|
|
env.Append(
|
|
CPPPATH=[
|
|
"#/lib/cmsis_core",
|
|
"#/lib/stm32wb_cmsis/Include",
|
|
"#/lib/stm32wb_hal/Inc",
|
|
"#/lib/stm32wb_copro/wpan",
|
|
],
|
|
CPPDEFINES=[
|
|
"STM32WB",
|
|
"STM32WB55xx",
|
|
"USE_FULL_ASSERT",
|
|
"USE_FULL_LL_DRIVER",
|
|
],
|
|
SDK_HEADERS=env.GlobRecursive(
|
|
"*_ll_*.h",
|
|
Dir("stm32wb_hal/Inc"),
|
|
exclude="*usb.h",
|
|
),
|
|
)
|
|
|
|
if env["RAM_EXEC"]:
|
|
env.Append(
|
|
CPPDEFINES=[
|
|
"VECT_TAB_SRAM",
|
|
],
|
|
)
|
|
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="stm32wb")
|
|
libenv.Append(
|
|
CPPPATH=[
|
|
"#/lib/stm32wb_copro/wpan/ble",
|
|
"#/lib/stm32wb_copro/wpan/ble/core",
|
|
"#/lib/stm32wb_copro/wpan/interface/patterns/ble_thread",
|
|
"#/lib/stm32wb_copro/wpan/interface/patterns/ble_thread/shci",
|
|
"#/lib/stm32wb_copro/wpan/interface/patterns/ble_thread/tl",
|
|
"#/lib/stm32wb_copro/wpan/utilities",
|
|
]
|
|
)
|
|
libenv.ApplyLibFlags()
|
|
|
|
sources = libenv.GlobRecursive("*_ll_*.c", "stm32wb_hal/Src/", exclude="*usb.c")
|
|
sources += Glob(
|
|
"stm32wb_copro/wpan/interface/patterns/ble_thread/shci/*.c",
|
|
source=True,
|
|
)
|
|
sources += Glob(
|
|
"stm32wb_copro/wpan/interface/patterns/ble_thread/tl/*_tl*.c",
|
|
exclude=[
|
|
"stm32wb_copro/wpan/interface/patterns/ble_thread/tl/hci_tl_if.c",
|
|
"stm32wb_copro/wpan/interface/patterns/ble_thread/tl/shci_tl_if.c",
|
|
],
|
|
source=True,
|
|
)
|
|
sources += [
|
|
"stm32wb_copro/wpan/interface/patterns/ble_thread/tl/tl_mbox.c",
|
|
"stm32wb_copro/wpan/ble/core/auto/ble_gap_aci.c",
|
|
"stm32wb_copro/wpan/ble/core/auto/ble_gatt_aci.c",
|
|
"stm32wb_copro/wpan/ble/core/auto/ble_hal_aci.c",
|
|
"stm32wb_copro/wpan/ble/core/auto/ble_hci_le.c",
|
|
"stm32wb_copro/wpan/ble/core/auto/ble_l2cap_aci.c",
|
|
"stm32wb_copro/wpan/ble/core/template/osal.c",
|
|
"stm32wb_copro/wpan/utilities/dbg_trace.c",
|
|
"stm32wb_copro/wpan/utilities/stm_list.c",
|
|
]
|
|
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|