Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Sep 6, 2023
1 parent ddb2fc8 commit 1b6bd48
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 1 addition & 3 deletions Examples/MAX78000/CNN/facial_recognition/src/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ int formatSDHC()

printf("FORMATTING DRIVE\n");

MKFS_PARM format_options = {
.fmt = FM_ANY
};
MKFS_PARM format_options = { .fmt = FM_ANY };

if ((err = f_mkfs("", &format_options, work, sizeof(work))) !=
FR_OK) { //Format the default drive to FAT32
Expand Down
4 changes: 1 addition & 3 deletions Examples/MAX78000/CNN/kws20_demo/sd_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ int formatSDHC()

printf("FORMATTING DRIVE\n");

MKFS_PARM format_options = {
.fmt = FM_ANY
};
MKFS_PARM format_options = { .fmt = FM_ANY };

if ((err = f_mkfs("", &format_options, work, sizeof(work))) !=
FR_OK) { //Format the default drive to FAT32
Expand Down
7 changes: 7 additions & 0 deletions Libraries/CMSIS/Device/Maxim/GCC/temp.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ifeq "$(_OS)" "windows"

else
ifeq "1" "$(shell expr `$(CC) -dumpversion` \>= 12)"
LDFLAGS += -Xlinker --no-warn-rwx-segments
endif
endif
1 change: 0 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX78002/sdhc.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ void MXC_SDHC_Set_Clock_Config(unsigned int clk_div);
*/
unsigned int MXC_SDHC_Get_Clock_Config(void);


/**
* @brief Get the input clock frequency for the SDHC peripheral.
* @return Input clock frequency in Hz
Expand Down
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/SDHC/sdhc_me10.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ unsigned int MXC_SDHC_Get_Input_Clock_Freq(void)
if (MXC_GCR->pclk_div & MXC_F_GCR_PCLK_DIV_SDHCFRQ) {
return SystemCoreClock >> 1; // Div by 2
} else {
return 50000000; // UG specifies a hard-coded 50Mhz value in this case
return 50000000; // UG specifies a hard-coded 50Mhz value in this case
}
}

Expand Down
2 changes: 1 addition & 1 deletion Libraries/PeriphDrivers/Source/SDHC/sdhc_me13.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ unsigned int MXC_SDHC_Get_Input_Clock_Freq(void)
if (MXC_GCR->pclkdiv & MXC_F_GCR_PCLKDIV_SDHCFRQ) {
return SystemCoreClock >> 2; // Div by 4
} else {
return SystemCoreClock >> 1; // Div by 2
return SystemCoreClock >> 1; // Div by 2
}
}

Expand Down

0 comments on commit 1b6bd48

Please sign in to comment.