Merge pull request #10865 from kaspar030/uncrustify_change_disable_hint

uncrustify: change en/disable markers
This commit is contained in:
Kaspar Schleiser 2019-01-25 22:40:02 +01:00 committed by GitHub
commit 6cd81dbc87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -96,7 +96,7 @@ void board_init_clock(void)
/* Note: The range is limited to ~100MHz and depends on PLL settings */ /* Note: The range is limited to ~100MHz and depends on PLL settings */
PRCI_set_hfrosctrim_for_f_cpu(CPU_DESIRED_FREQ, PRCI_FREQ_UNDERSHOOT); PRCI_set_hfrosctrim_for_f_cpu(CPU_DESIRED_FREQ, PRCI_FREQ_UNDERSHOOT);
/* disable uncrustify *INDENT-OFF* */ /* begin{code-style-ignore} */
SPI0_REG(SPI_REG_FFMT) = /* setup "Fast Read Dual I/O" 1-1-2 */ SPI0_REG(SPI_REG_FFMT) = /* setup "Fast Read Dual I/O" 1-1-2 */
SPI_INSN_CMD_EN | /* Enable memory-mapped flash */ SPI_INSN_CMD_EN | /* Enable memory-mapped flash */
SPI_INSN_ADDR_LEN(3) | /* 25LP128 read commands have 3 address bytes */ SPI_INSN_ADDR_LEN(3) | /* 25LP128 read commands have 3 address bytes */
@ -106,7 +106,7 @@ void board_init_clock(void)
SPI_INSN_DATA_PROTO(SPI_PROTO_D) | /* data protocol for given instruction */ SPI_INSN_DATA_PROTO(SPI_PROTO_D) | /* data protocol for given instruction */
SPI_INSN_CMD_CODE(0xbb) | /* Set the instruction to "Fast Read Dual I/O" */ SPI_INSN_CMD_CODE(0xbb) | /* Set the instruction to "Fast Read Dual I/O" */
SPI_INSN_PAD_CODE(0x00); /* Dummy cycle sends 0 value bits */ SPI_INSN_PAD_CODE(0x00); /* Dummy cycle sends 0 value bits */
/* *INDENT-ON* */ /* end{code-style-ignore} */
SPI0_REG(SPI_REG_SCKDIV) = SCKDIV; SPI0_REG(SPI_REG_SCKDIV) = SCKDIV;
} }

View File

@ -1,3 +1,7 @@
#
# indentation
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
input_tab_size = 4 # original tab size input_tab_size = 4 # original tab size
output_tab_size = 4 # new tab size output_tab_size = 4 # new tab size
@ -82,3 +86,10 @@ align_right_cmt_span = 3 #
# #
set PROTO_WRAP ISR # Wrap ISR macros like functions set PROTO_WRAP ISR # Wrap ISR macros like functions
#
# enable / disable marker config
#
disable_processing_cmt = " begin{code-style-ignore}"
enable_processing_cmt = " end{code-style-ignore}"