Create style call in Makefile
This commit is contained in:
@@ -74,8 +74,8 @@ typedef struct {
|
||||
Note: Depending on devices, some channels may not be available on package pins. Refer to device datasheet for channels availability.
|
||||
Note: On STM32F1 devices with several ADC: Only ADC1 can access internal measurement channels (VrefInt/TempSensor)
|
||||
Note: On STM32F10xx8 and STM32F10xxB devices: A low-amplitude voltage glitch may be generated (on ADC input 0) on the PA0 pin, when the ADC is converting with
|
||||
injection trigger. It is advised to distribute the analog channels so that Channel 0 is configured as an injected channel. Refer to errata
|
||||
sheet of these devices for more details. */
|
||||
injection trigger. It is advised to distribute the analog channels so that Channel 0 is configured as an injected channel. Refer to
|
||||
errata sheet of these devices for more details. */
|
||||
uint32_t InjectedRank; /*!< Rank in the injected group sequencer
|
||||
This parameter must be a value of @ref ADCEx_injected_rank
|
||||
Note: In case of need to disable a channel or change order of conversion sequencer, rank containing a previous channel setting can be overwritten by the new channel
|
||||
|
||||
@@ -511,7 +511,8 @@ void _premain_init(void) {
|
||||
* by __libc_fini_array function, so we defined a new function
|
||||
* to do initialization
|
||||
*/
|
||||
void _postmain_fini(int status) { /* TODO: Add your own finishing code here, called after main */ }
|
||||
void _postmain_fini(int status) { /* TODO: Add your own finishing code here, called after main */
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief _init function called in __libc_init_array()
|
||||
@@ -522,7 +523,8 @@ void _postmain_fini(int status) { /* TODO: Add your own finishing code here, cal
|
||||
* \note
|
||||
* Please use \ref _premain_init function now
|
||||
*/
|
||||
void _init(void) { /* Don't put any code here, please use _premain_init now */ }
|
||||
void _init(void) { /* Don't put any code here, please use _premain_init now */
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief _fini function called in __libc_fini_array()
|
||||
@@ -533,6 +535,7 @@ void _init(void) { /* Don't put any code here, please use _premain_init now */ }
|
||||
* \note
|
||||
* Please use \ref _postmain_fini function now
|
||||
*/
|
||||
void _fini(void) { /* Don't put any code here, please use _postmain_fini now */ }
|
||||
void _fini(void) { /* Don't put any code here, please use _postmain_fini now */
|
||||
}
|
||||
|
||||
/** @} */ /* End of Doxygen Group NMSIS_Core_SystemAndClock */
|
||||
|
||||
@@ -31,7 +31,12 @@ SOURCE_CORE_DIR = ./Core/Src
|
||||
SOURCE_DRIVERS_DIR = ./Core/Drivers
|
||||
INC_PD_DRIVERS_DIR = ./Core/Drivers/FUSB302
|
||||
SOURCE_MIDDLEWARES_DIR = ./Middlewares
|
||||
# Find-all's used for formatting
|
||||
ALL_INCLUDES = $(shell find ./ -type f -name '*.h') \
|
||||
$(shell find ./ -type f -name '*.hpp')
|
||||
|
||||
ALL_SOURCE = $(shell find ./ -type f -name '*.c') \
|
||||
$(shell find ./ -type f -name '*.cpp')
|
||||
# Device dependent settings
|
||||
ifeq ($(model),$(filter $(model),TS100 TS80 TS80P))
|
||||
$(info Building for Miniware )
|
||||
@@ -316,6 +321,15 @@ clean :
|
||||
rm -Rf $(OUTPUT_DIR_BASE)
|
||||
rm -Rf $(HEXFILE_DIR)
|
||||
|
||||
style:
|
||||
@for src in $(ALL_SOURCE) $(ALL_INCLUDES); do \
|
||||
echo "Formatting $$src..." ; \
|
||||
clang-format -i "$$src" ; \
|
||||
done
|
||||
@echo "Done"
|
||||
|
||||
.PHONY: style
|
||||
|
||||
# pull in dependency info for *existing* .o files
|
||||
-include $(OUT_OBJS:.o=.d)
|
||||
-include $(OUT_OBJS_CPP:.o=.d)
|
||||
|
||||
Reference in New Issue
Block a user