Skip to content

Commit 562958b

Browse files
committed
drivers/sdmmc_sdhc: preprocessor directive indentation
1 parent 464534a commit 562958b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

drivers/sdmmc/sdmmc_sdhc.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,45 +48,45 @@
4848

4949
#if defined(CPU_SAMD5X) || defined(CPU_SAME5X)
5050

51-
#ifndef SDHC_CLOCK
52-
#define SDHC_CLOCK SAM0_GCLK_MAIN
53-
#endif
51+
# ifndef SDHC_CLOCK
52+
# define SDHC_CLOCK SAM0_GCLK_MAIN
53+
# endif
5454

55-
#ifndef SDHC_CLOCK_SLOW
56-
#define SDHC_CLOCK_SLOW SAM0_GCLK_TIMER
57-
#endif
55+
# ifndef SDHC_CLOCK_SLOW
56+
# define SDHC_CLOCK_SLOW SAM0_GCLK_TIMER
57+
# endif
5858

5959
#else
60-
#error "CPU not supported"
60+
# error "CPU not supported"
6161
#endif
6262

6363
/* limit the Default and High Speed clock rates for debugging */
6464
#if CONFIG_SDMMC_CLK_MAX_400KHZ
65-
#define CONFIG_SDMMC_CLK_MAX KHZ(400)
65+
# define CONFIG_SDMMC_CLK_MAX KHZ(400)
6666
#elif CONFIG_SDMMC_CLK_MAX_1MHZ
67-
#define CONFIG_SDMMC_CLK_MAX MHZ(1)
67+
# define CONFIG_SDMMC_CLK_MAX MHZ(1)
6868
#elif CONFIG_SDMMC_CLK_MAX_4MHZ
69-
#define CONFIG_SDMMC_CLK_MAX MHZ(4)
69+
# define CONFIG_SDMMC_CLK_MAX MHZ(4)
7070
#elif CONFIG_SDMMC_CLK_MAX_10MHZ
71-
#define CONFIG_SDMMC_CLK_MAX MHZ(10)
71+
# define CONFIG_SDMMC_CLK_MAX MHZ(10)
7272
#elif CONFIG_SDMMC_CLK_MAX_20MHZ
73-
#define CONFIG_SDMMC_CLK_MAX MHZ(20)
73+
# define CONFIG_SDMMC_CLK_MAX MHZ(20)
7474
#elif CONFIG_SDMMC_CLK_MAX_25MHZ
75-
#define CONFIG_SDMMC_CLK_MAX MHZ(25)
75+
# define CONFIG_SDMMC_CLK_MAX MHZ(25)
7676
#else
77-
#define CONFIG_SDMMC_CLK_MAX MHZ(50)
77+
# define CONFIG_SDMMC_CLK_MAX MHZ(50)
7878
#endif
7979

8080
/* millisecond timer definitions dependent on active ztimer backend */
8181
#if IS_USED(MODULE_ZTIMER_MSEC)
82-
#define _ZTIMER_CLOCK ZTIMER_MSEC
83-
#define _ZTIMER_TICKS_PER_MS 1
82+
# define _ZTIMER_CLOCK ZTIMER_MSEC
83+
# define _ZTIMER_TICKS_PER_MS 1
8484

8585
#elif IS_USED(MODULE_ZTIMER_USEC)
86-
#define _ZTIMER_CLOCK ZTIMER_USEC
87-
#define _ZTIMER_TICKS_PER_MS US_PER_MS
86+
# define _ZTIMER_CLOCK ZTIMER_USEC
87+
# define _ZTIMER_TICKS_PER_MS US_PER_MS
8888
#else
89-
#error "Either module ztimer_msec or ztimer_usec is needed"
89+
# error "Either module ztimer_msec or ztimer_usec is needed"
9090
#endif
9191

9292
#define _ZTIMER_ACQUIRE() ztimer_acquire(_ZTIMER_CLOCK)

0 commit comments

Comments
 (0)