fix trailing space and new line

temporarily disable codespell
This commit is contained in:
hathach 2023-03-17 16:12:49 +07:00
parent 2faad42cb1
commit 3623ba1884
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
581 changed files with 2553 additions and 2694 deletions

View File

@ -13,11 +13,11 @@ repos:
- repo: local - repo: local
hooks: hooks:
- id: codespell #- id: codespell
name: codespell # name: codespell
entry: codespell # entry: codespell
types_or: [c, header] # types_or: [c, header]
language: system # language: system
- id: unit-test - id: unit-test
name: unit-test name: unit-test

View File

@ -15,4 +15,3 @@ python:
submodules: submodules:
include: [] include: []
recursive: false recursive: false

View File

@ -31,4 +31,3 @@ if __name__ == '__main__':
plt.ylabel('Amplitude') plt.ylabel('Amplitude')
plt.title('MicNode 4 Channel') plt.title('MicNode 4 Channel')
plt.show() plt.show()

View File

@ -35,4 +35,3 @@ if __name__ == '__main__':
samples = np.array(myrecording) samples = np.array(myrecording)
np.savetxt('Output.csv', samples, delimiter=",", fmt='%s') np.savetxt('Output.csv', samples, delimiter=",", fmt='%s')

View File

@ -35,4 +35,3 @@ if __name__ == '__main__':
samples = np.array(myrecording) samples = np.array(myrecording)
np.savetxt('Output.csv', samples, delimiter=",", fmt='%s') np.savetxt('Output.csv', samples, delimiter=",", fmt='%s')

View File

@ -65,4 +65,3 @@ function isDevice(board,d){
// product id 0xff is matches all // product id 0xff is matches all
return d.vendorId==board[0] && (d.productId==board[1] || board[1] == 0xFFFF); return d.vendorId==board[0] && (d.productId==board[1] || board[1] == 0xFFFF);
} }

View File

@ -68,4 +68,3 @@ void tuh_msc_umount_cb(uint8_t dev_addr)
(void) dev_addr; (void) dev_addr;
printf("A MassStorage device is unmounted\r\n"); printf("A MassStorage device is unmounted\r\n");
} }

View File

@ -254,4 +254,3 @@ void chip_reboot(void)
dbg_memory_copy(0xfe, 0, 0, 255); dbg_memory_copy(0xfe, 0, 0, 255);
#endif #endif
} }

View File

@ -165,6 +165,3 @@ SECTIONS
} >RAM } >RAM
} }

View File

@ -36,8 +36,3 @@
#endif /* __CH32V30x_CONF_H */ #endif /* __CH32V30x_CONF_H */

View File

@ -45,5 +45,3 @@ __attribute__((used)) void HardFault_Handler_impl(void)
{ {
} }
} }

View File

@ -14,5 +14,3 @@
#endif /* __CH32V30x_IT_H */ #endif /* __CH32V30x_IT_H */

View File

@ -377,8 +377,3 @@ extern uint32_t __get_SP(void);
#endif #endif

View File

@ -25,6 +25,3 @@ extern void SystemCoreClockUpdate(void);
#endif #endif
#endif /*__CH32V30x_SYSTEM_H */ #endif /*__CH32V30x_SYSTEM_H */

View File

@ -242,4 +242,3 @@ SECTIONS
/* Check that intvect is at the beginning of RAM */ /* Check that intvect is at the beginning of RAM */
ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM") ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM")
} }

View File

@ -242,4 +242,3 @@ SECTIONS
/* Check that intvect is at the beginning of RAM */ /* Check that intvect is at the beginning of RAM */
ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM") ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM")
} }

View File

@ -150,4 +150,3 @@ int board_uart_write(void const * buf, int len)
(void) buf; (void) len; (void) buf; (void) len;
return 0; return 0;
} }

View File

@ -5,4 +5,3 @@ idf_component_register(SRCS "${component_srcs}"
PRIV_INCLUDE_DIRS "" PRIV_INCLUDE_DIRS ""
PRIV_REQUIRES "driver" PRIV_REQUIRES "driver"
REQUIRES "") REQUIRES "")

View File

@ -21,4 +21,3 @@ UF2_FAMILY_ID = 0xbfdd4eee
$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin $(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin
@echo CREATE $@ @echo CREATE $@
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^ $(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^

View File

@ -150,4 +150,3 @@ int board_uart_write(void const * buf, int len)
(void) buf; (void) len; (void) buf; (void) len;
return 0; return 0;
} }

View File

@ -5,4 +5,3 @@ idf_component_register(SRCS "${component_srcs}"
PRIV_INCLUDE_DIRS "" PRIV_INCLUDE_DIRS ""
PRIV_REQUIRES "driver" PRIV_REQUIRES "driver"
REQUIRES "") REQUIRES "")

View File

@ -23,4 +23,3 @@ UF2_FAMILY_ID = 0xc47e5767
$(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin $(BUILD)/$(PROJECT).uf2: $(BUILD)/$(PROJECT).bin
@echo CREATE $@ @echo CREATE $@
$(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^ $(PYTHON) $(TOP)/tools/uf2/utils/uf2conv.py -f $(UF2_FAMILY_ID) -b 0x0 -c -o $@ $^

View File

@ -214,4 +214,3 @@ SECTIONS
ASSERT(__StackLimit >= __HeapLimit, "region m_data overflowed with stack and heap") ASSERT(__StackLimit >= __HeapLimit, "region m_data overflowed with stack and heap")
} }

View File

@ -231,4 +231,3 @@ SECTIONS
ASSERT(__StackLimit >= __HeapLimit, "region m_data overflowed with stack and heap") ASSERT(__StackLimit >= __HeapLimit, "region m_data overflowed with stack and heap")
} }

View File

@ -8,4 +8,3 @@ JLINK_DEVICE = ATSAMD21G18
# flash using dfu-util # flash using dfu-util
flash: $(BUILD)/$(PROJECT).bin flash: $(BUILD)/$(PROJECT).bin
dfu-util -a 0 -d 1d50:615c -D $< || dfu-util -a 0 -d 16d0:05a5 -D $< dfu-util -a 0 -d 1d50:615c -D $< || dfu-util -a 0 -d 16d0:05a5 -D $<

View File

@ -31,4 +31,3 @@
// UART // UART
#define UART_SERCOM 0 #define UART_SERCOM 0

View File

@ -2,4 +2,3 @@ CFLAGS += -D__SAMD21E18A__ -DCFG_EXAMPLE_VIDEO_READONLY
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = $(BOARD_PATH)/trinket_m0.ld LD_FILE = $(BOARD_PATH)/trinket_m0.ld

View File

@ -7,4 +7,3 @@ LD_FILE = $(BOARD_PATH)/$(BOARD).ld
JLINK_DEVICE = ATSAMD51J19 JLINK_DEVICE = ATSAMD51J19
flash: flash-bossac flash: flash-bossac

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -318,4 +318,3 @@
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -185,5 +185,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -186,5 +186,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -16,4 +16,3 @@ JLINK_DEVICE = stm32h750ibk6_m7
# flash target using on-board stlink # flash target using on-board stlink
flash: flash-stlink flash: flash-stlink

View File

@ -172,5 +172,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -169,5 +169,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -169,5 +169,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -19,4 +19,3 @@ JLINK_DEVICE = stm32h745xi_m7
# flash target using on-board stlink # flash target using on-board stlink
flash: flash-stlink flash: flash-stlink

View File

@ -171,5 +171,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -335,4 +335,3 @@
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/

View File

@ -165,5 +165,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -180,5 +180,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -179,5 +179,3 @@ SECTIONS
.ARM.attributes 0 : { *(.ARM.attributes) } .ARM.attributes 0 : { *(.ARM.attributes) }
} }

View File

@ -503,4 +503,3 @@
#endif #endif
#endif /* STM32U5xx_HAL_CONF_H */ #endif /* STM32U5xx_HAL_CONF_H */

View File

@ -167,5 +167,3 @@ SECTIONS
MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED MB_MEM1 (NOLOAD) : { *(MB_MEM1) } >RAM_SHARED
MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED MB_MEM2 (NOLOAD) : { _sMB_MEM2 = . ; *(MB_MEM2) ; _eMB_MEM2 = . ; } >RAM_SHARED
} }

View File

@ -175,4 +175,3 @@ uint32_t board_millis (void)
return system_ticks; return system_ticks;
} }
#endif #endif

View File

@ -5,5 +5,3 @@ Most of the files there can't be redistributed.
Registers definition file `DA1469xAB.h` and some **ARM** originated headers are have licenses that allow Registers definition file `DA1469xAB.h` and some **ARM** originated headers are have licenses that allow
for redistribution. for redistribution.
Whole SDK repository can be downloaded from Dialog Semiconductor web page `https://www.dialog.com` Whole SDK repository can be downloaded from Dialog Semiconductor web page `https://www.dialog.com`

View File

@ -24,4 +24,3 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE. POSSIBILITY OF SUCH DAMAGE.
---------------------------------------------------------------------------*/ ---------------------------------------------------------------------------*/

View File

@ -268,4 +268,3 @@
#endif /* __CMSIS_COMPILER_H */ #endif /* __CMSIS_COMPILER_H */

View File

@ -344,4 +344,3 @@ __STATIC_INLINE void ARM_MPU_Load_NS(uint32_t rnr, ARM_MPU_Region_t const* table
#endif #endif
#endif #endif

View File

@ -225,4 +225,3 @@ SECTIONS
/* Check that intvect is at the beginning of RAM */ /* Check that intvect is at the beginning of RAM */
ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM") ASSERT(__intvect_start__ == ORIGIN(RAM), "intvect is not at beginning of RAM")
} }

View File

@ -162,4 +162,3 @@ void mcu_gpio_exit_sleep(void);
#endif #endif
#endif /* __MCU_MCU_H_ */ #endif /* __MCU_MCU_H_ */

View File

@ -366,4 +366,3 @@ R0.15 (November 6, 2022)
Fixed f_mkfs() creates broken exFAT volume when the size of volume is >= 2^32 sectors. Fixed f_mkfs() creates broken exFAT volume when the size of volume is >= 2^32 sectors.
Fixed string functions cannot write the unicode characters not in BMP when FF_LFN_UNICODE == 2 (UTF-8). Fixed string functions cannot write the unicode characters not in BMP when FF_LFN_UNICODE == 2 (UTF-8).
Fixed a compatibility issue in identification of GPT header. Fixed a compatibility issue in identification of GPT header.

View File

@ -18,4 +18,3 @@ FILES
module is only a generic file system layer and it does not depend on any specific module is only a generic file system layer and it does not depend on any specific
storage device. You need to provide a low level disk I/O module written to storage device. You need to provide a low level disk I/O module written to
control the storage device that attached to the target system. control the storage device that attached to the target system.

View File

@ -226,4 +226,3 @@ DRESULT disk_ioctl (
return RES_PARERR; return RES_PARERR;
} }

View File

@ -7081,4 +7081,3 @@ FRESULT f_setcp (
return FR_OK; return FR_OK;
} }
#endif /* FF_CODE_PAGE == 0 */ #endif /* FF_CODE_PAGE == 0 */

View File

@ -205,4 +205,3 @@ void ff_mutex_give (
} }
#endif /* FF_FS_REENTRANT */ #endif /* FF_FS_REENTRANT */

View File

@ -316,4 +316,3 @@ typedef struct TU_ATTR_PACKED
TU_VERIFY_STATIC(sizeof(usbtmc_read_stb_interrupt_488_t) == 2u, "struct wrong length"); TU_VERIFY_STATIC(sizeof(usbtmc_read_stb_interrupt_488_t) == 2u, "struct wrong length");
#endif #endif

View File

@ -874,4 +874,3 @@ void dcd_int_disable (uint8_t rhport)
} }
#endif // #if OPT_MCU_ESP32S2 || OPT_MCU_ESP32S3 #endif // #if OPT_MCU_ESP32S2 || OPT_MCU_ESP32S3

View File

@ -44,4 +44,3 @@ void hcd_int_disable(uint8_t rhport)
} }
#endif #endif

View File

@ -575,4 +575,3 @@ void dcd_int_handler(uint8_t rhport)
} }
#endif #endif

View File

@ -715,4 +715,3 @@ void hcd_int_handler(uint8_t hostid)
#endif #endif

View File

@ -1379,4 +1379,3 @@ static bool dcd_read_packet_memory_ff(tu_fifo_t * ff, uint16_t src, uint16_t wNB
} }
#endif #endif

View File

@ -59,4 +59,3 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
return 0; return 0;
} }

View File

@ -71,4 +71,3 @@ RNDIS_PACKET_TYPE_FUNCTIONAL="\x00\x00\x40\x00"
# NIC driver frames that a Token Ring NIC receives. # NIC driver frames that a Token Ring NIC receives.
RNDIS_PACKET_TYPE_MAC_FRAME="\x00\x00\x80\x00" RNDIS_PACKET_TYPE_MAC_FRAME="\x00\x00\x80\x00"
RNDIS_PACKET_TYPE_NO_LOCAL="\x00\x01\x00\x00" RNDIS_PACKET_TYPE_NO_LOCAL="\x00\x01\x00\x00"

View File

@ -132,4 +132,3 @@ endif
ifneq ($(LOGGER),) ifneq ($(LOGGER),)
CMAKE_DEFSYM += -DLOGGER=$(LOGGER) CMAKE_DEFSYM += -DLOGGER=$(LOGGER)
endif endif

View File

@ -96,4 +96,3 @@ module Ceedling
DEFAULT_CEEDLING_CONFIG[:plugins][:load_paths] << gem_dir DEFAULT_CEEDLING_CONFIG[:plugins][:load_paths] << gem_dir
end end
end end

View File

@ -379,4 +379,3 @@ class Configurator
end end

View File

@ -146,4 +146,3 @@ class FileFinder
return @file_finder_helper.find_file_in_collection(file_path, file_list, complain) return @file_finder_helper.find_file_in_collection(file_path, file_list, complain)
end end
end end

View File

@ -52,5 +52,3 @@ class FileFinderHelper
end end
end end

View File

@ -16,4 +16,3 @@ def par_map(n, things, &block)
end end
threads.each { |t| t.join } threads.each { |t| t.join }
end end

View File

@ -23,4 +23,3 @@ rule(/#{PROJECT_TEST_PREPROCESS_INCLUDES_PATH}\/.+/ => [
]) do |file| ]) do |file|
@ceedling[:generator].generate_shallow_includes_list(TEST_SYM, file.source) @ceedling[:generator].generate_shallow_includes_list(TEST_SYM, file.source)
end end

View File

@ -96,4 +96,3 @@ namespace RELEASE_SYM do
end end
end end

View File

@ -12,4 +12,3 @@ rule(/#{PROJECT_RELEASE_DEPENDENCIES_PATH}\/#{'.+\\'+EXTENSION_DEPENDENCIES}$/ =
@ceedling[:file_path_utils].form_release_build_c_object_filepath(dep.source), @ceedling[:file_path_utils].form_release_build_c_object_filepath(dep.source),
dep.name) dep.name)
end end

View File

@ -70,4 +70,3 @@ namespace TEST_SYM do
@ceedling[:test_invoker].setup_and_invoke([test.source]) @ceedling[:test_invoker].setup_and_invoke([test.source])
end end
end end

View File

@ -12,4 +12,3 @@ rule(/#{PROJECT_TEST_DEPENDENCIES_PATH}\/#{'.+\\'+EXTENSION_DEPENDENCIES}$/ => [
@ceedling[:file_path_utils].form_test_build_c_object_filepath(dep.source), @ceedling[:file_path_utils].form_test_build_c_object_filepath(dep.source),
dep.name) dep.name)
end end

View File

@ -113,4 +113,3 @@ task :summary do
puts "\nNOTE: Summaries may be out of date with project sources.\n\n" puts "\nNOTE: Summaries may be out of date with project sources.\n\n"
end end
end end

View File

@ -109,5 +109,3 @@ namespace :files do
end end
end end

View File

@ -27,4 +27,3 @@ task RELEASE_SYM => [:directories] do
@ceedling[:plugin_manager].post_release @ceedling[:plugin_manager].post_release
end end
end end

View File

@ -59,4 +59,3 @@ namespace TEST_SYM do
end end
end end

View File

@ -37,4 +37,3 @@ class Beep < Plugin
end end
end end
end end

View File

@ -12,4 +12,3 @@ BRANCHES: <%=sprintf(format_string, hash[:coverage][:branches])%>%
% else % else
BRANCHES: none BRANCHES: none
% end % end

View File

@ -89,4 +89,3 @@ class CommandHooks < Plugin
end end
end end
end end

View File

@ -12,4 +12,3 @@ BRANCHES: <%=sprintf(format_string, hash[:coverage][:branches])%>%
% else % else
BRANCHES: none BRANCHES: none
% end % end

View File

@ -115,5 +115,3 @@ Your options are as follows:
- `:camel` - camelFilesAreSimilarButStartLow - `:camel` - camelFilesAreSimilarButStartLow
- `:snake` - snake_case_is_all_lower_and_uses_underscores - `:snake` - snake_case_is_all_lower_and_uses_underscores
- `:caps` - CAPS_FEELS_LIKE_YOU_ARE_SCREAMING - `:caps` - CAPS_FEELS_LIKE_YOU_ARE_SCREAMING

View File

@ -56,4 +56,3 @@ IGNORED: <%=sprintf(format_string, ignored)%>
No tests executed. No tests executed.
% end % end

View File

@ -75,4 +75,3 @@ SUBPROJECTS_PATHS.each do |subproj|
# Finally, add the static library to our RELEASE build dependency list # Finally, add the static library to our RELEASE build dependency list
task RELEASE_SYM => ["#{subproj_build_root}/#{subproj_name}#{EXTENSION_SUBPROJECTS}"] task RELEASE_SYM => ["#{subproj_build_root}/#{subproj_name}#{EXTENSION_SUBPROJECTS}"]
end end

View File

@ -43,4 +43,3 @@ void Throw(CEXCEPTION_T ExceptionID)
} <- finish off that local scope we created to have our own variables } <- finish off that local scope we created to have our own variables
if (CExceptionFrames[CEXCEPTION_GET_ID].Exception != CEXCEPTION_NONE) <- start the actual 'catch' processing if we have an exception id saved away if (CExceptionFrames[CEXCEPTION_GET_ID].Exception != CEXCEPTION_NONE) <- start the actual 'catch' processing if we have an exception id saved away
*/ */

View File

@ -213,4 +213,3 @@ void CMock_Guts_MemFreeFinal(void)
} }
#endif #endif
} }

View File

@ -33,4 +33,3 @@ module DIY #:nodoc:#
end end
end end
end end

Some files were not shown because too many files have changed in this diff Show More