aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2020-11-23 21:31:59 -0700
committerJosh Rahm <joshuarahm@gmail.com>2020-11-23 21:31:59 -0700
commit9dab2bf91ed3e6af7c7b07590ccc8c3b211a763a (patch)
tree1ada2a6e99bbbe4bf09ddf8c8a972b07474d4b77
parent60b1e3055c179312eef809fe1d01f58042b64d5f (diff)
downloadstm32l4-9dab2bf91ed3e6af7c7b07590ccc8c3b211a763a.tar.gz
stm32l4-9dab2bf91ed3e6af7c7b07590ccc8c3b211a763a.tar.bz2
stm32l4-9dab2bf91ed3e6af7c7b07590ccc8c3b211a763a.zip
add .ycm_extra_config and .gdb_init
-rw-r--r--02-usart/.gdbinit1
-rw-r--r--02-usart/.ycm_extra_conf.py21
2 files changed, 22 insertions, 0 deletions
diff --git a/02-usart/.gdbinit b/02-usart/.gdbinit
new file mode 100644
index 0000000..87932b3
--- /dev/null
+++ b/02-usart/.gdbinit
@@ -0,0 +1 @@
+set follow-fork-mode child
diff --git a/02-usart/.ycm_extra_conf.py b/02-usart/.ycm_extra_conf.py
new file mode 100644
index 0000000..8203412
--- /dev/null
+++ b/02-usart/.ycm_extra_conf.py
@@ -0,0 +1,21 @@
+import os
+import ycm_core
+
+flags = [
+ '-Wall',
+ '-DFOR_TESTING',
+ '-Iinclude',
+ '-Iinclude/arch/arm',
+ '-Itest_harness/',
+ '-DARCH_STMT32L4',
+ '-DDRY_RUN',
+ # -Iinclude/arch/arm -Itest_harness/ -DARCH_STM32L4 -DDRY_RUN -Wall -DFOR_TESTINGk
+ ]
+
+SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', ]
+
+def FlagsForFile( filename, **kwargs ):
+ return {
+ 'flags': flags,
+ 'do_cache': True
+ }