mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 09:51:35 +08:00
boards/ enforce astyle
This commit is contained in:
@@ -132,9 +132,7 @@
|
||||
|
||||
#define BOARD_SIM_CLKDIV2_USBFRAC 2
|
||||
#define BOARD_SIM_CLKDIV2_USBDIV 7
|
||||
#define BOARD_SIM_CLKDIV2_FREQ (BOARD_SOPT2_FREQ / \
|
||||
BOARD_SIM_CLKDIV2_USBDIV * \
|
||||
BOARD_SIM_CLKDIV2_USBFRAC)
|
||||
#define BOARD_SIM_CLKDIV2_FREQ (BOARD_SOPT2_FREQ / BOARD_SIM_CLKDIV2_USBDIV * BOARD_SIM_CLKDIV2_USBFRAC)
|
||||
#define BOARD_USB_CLKSRC SIM_SOPT2_USBSRC
|
||||
#define BOARD_USB_FREQ BOARD_SIM_CLKDIV2_FREQ
|
||||
|
||||
@@ -147,9 +145,7 @@
|
||||
|
||||
#define BOARD_SIM_CLKDIV3_PLLFLLFRAC 1
|
||||
#define BOARD_SIM_CLKDIV3_PLLFLLDIV 2
|
||||
#define BOARD_SIM_CLKDIV3_FREQ (BOARD_SOPT2_FREQ / \
|
||||
BOARD_SIM_CLKDIV3_PLLFLLDIV * \
|
||||
BOARD_SIM_CLKDIV3_PLLFLLFRAC)
|
||||
#define BOARD_SIM_CLKDIV3_FREQ (BOARD_SOPT2_FREQ / BOARD_SIM_CLKDIV3_PLLFLLDIV * BOARD_SIM_CLKDIV3_PLLFLLFRAC)
|
||||
|
||||
#define BOARD_LPUART0_CLKSRC SIM_SOPT2_LPUARTSRC_MCGCLK
|
||||
#define BOARD_LPUART0_FREQ BOARD_SIM_CLKDIV3_FREQ
|
||||
@@ -502,14 +498,14 @@
|
||||
# define PROBE_6 (GPIO_LOWDRIVE | GPIO_OUTPUT_ZER0 | PIN_PORTE | PIN12)
|
||||
|
||||
# define PROBE_INIT(mask) \
|
||||
do { \
|
||||
if ((mask)& PROBE_N(1)) { kinetis_pinconfig(PROBE_1); } \
|
||||
if ((mask)& PROBE_N(2)) { kinetis_pinconfig(PROBE_2); } \
|
||||
if ((mask)& PROBE_N(3)) { kinetis_pinconfig(PROBE_3); } \
|
||||
if ((mask)& PROBE_N(4)) { kinetis_pinconfig(PROBE_4); } \
|
||||
if ((mask)& PROBE_N(5)) { kinetis_pinconfig(PROBE_5); } \
|
||||
if ((mask)& PROBE_N(6)) { kinetis_pinconfig(PROBE_6); } \
|
||||
} while(0)
|
||||
do { \
|
||||
if ((mask)& PROBE_N(1)) { kinetis_pinconfig(PROBE_1); } \
|
||||
if ((mask)& PROBE_N(2)) { kinetis_pinconfig(PROBE_2); } \
|
||||
if ((mask)& PROBE_N(3)) { kinetis_pinconfig(PROBE_3); } \
|
||||
if ((mask)& PROBE_N(4)) { kinetis_pinconfig(PROBE_4); } \
|
||||
if ((mask)& PROBE_N(5)) { kinetis_pinconfig(PROBE_5); } \
|
||||
if ((mask)& PROBE_N(6)) { kinetis_pinconfig(PROBE_6); } \
|
||||
} while(0)
|
||||
|
||||
# define PROBE(n,s) do {kinetis_gpiowrite(PROBE_##n,(s));}while(0)
|
||||
# define PROBE_MARK(n) PROBE(n,false);PROBE(n,true)
|
||||
|
||||
@@ -84,8 +84,7 @@ struct fmuk66_automount_config_s {
|
||||
* Private Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
static int fmuk66_attach(FAR const struct automount_lower_s *lower,
|
||||
automount_handler_t isr, FAR void *arg);
|
||||
static int fmuk66_attach(FAR const struct automount_lower_s *lower, automount_handler_t isr, FAR void *arg);
|
||||
static void fmuk66_enable(FAR const struct automount_lower_s *lower, bool enable);
|
||||
static bool fmuk66_inserted(FAR const struct automount_lower_s *lower);
|
||||
|
||||
@@ -129,8 +128,7 @@ static const struct fmuk66_automount_config_s g_sdhc_config = {
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
static int fmuk66_attach(FAR const struct automount_lower_s *lower,
|
||||
automount_handler_t isr, FAR void *arg)
|
||||
static int fmuk66_attach(FAR const struct automount_lower_s *lower, automount_handler_t isr, FAR void *arg)
|
||||
{
|
||||
FAR const struct fmuk66_automount_config_s *config;
|
||||
FAR struct fmuk66_automount_state_s *state;
|
||||
|
||||
Reference in New Issue
Block a user