diff options
-rw-r--r-- | 02-usart/.gdbinit | 1 | ||||
-rw-r--r-- | 02-usart/.ycm_extra_conf.py | 21 |
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 + } |