Skip to content

Instantly share code, notes, and snippets.

@trond-snekvik
trond-snekvik / main.c
Created November 12, 2015 09:23
ble_app_hrs_bcast_issue_50
/* Copyright (c) 2014 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
@trond-snekvik
trond-snekvik / .clangd
Created November 13, 2023 18:33
.clangd for Zephyr
CompileFlags:
Add: [
-DKERNEL,
-D_FORTIFY_SOURCE=2,
-D__PROGRAM_START,
-D__ZEPHYR_SUPERVISOR__,
-D__ZEPHYR__=1,
# Includes (replace /home/trond/ncs/ with west topdir)
-isystem/home/trond/ncs/zephyr/include,
@trond-snekvik
trond-snekvik / .clangd
Created November 13, 2023 18:40
.clangd for Zephyr based on Compilation database
CompileFlags:
Add: [-ferror-limit=0]
Remove: [
-fno-printf-return-value,
-mfp16-format=*,
-fno-reorder-functions,
]
CompilationDatabase: /home/trond/ncs/zephyr/samples/bluetooth/mesh/build