diff options
Diffstat (limited to 'software/mpu')
-rw-r--r-- | software/mpu/main.c | 4 | ||||
-rw-r--r-- | software/mpu/usb-cdc-shell.c | 23 |
2 files changed, 14 insertions, 13 deletions
diff --git a/software/mpu/main.c b/software/mpu/main.c index bf85609..461c071 100644 --- a/software/mpu/main.c +++ b/software/mpu/main.c @@ -39,8 +39,8 @@ /* * Application entry point. */ -int main(void) { - +int main(void) +{ /* * System initializations. * - HAL initialization, this also initializes the configured device drivers diff --git a/software/mpu/usb-cdc-shell.c b/software/mpu/usb-cdc-shell.c index 3a8fb70..d58833d 100644 --- a/software/mpu/usb-cdc-shell.c +++ b/software/mpu/usb-cdc-shell.c @@ -68,11 +68,8 @@ static SerialUSBDriver SDU1; * Handles the GET_DESCRIPTOR callback. All required descriptors must be * handled here. */ -static const USBDescriptor *get_descriptor(USBDriver *usbp, - uint8_t dtype, - uint8_t dindex, - uint16_t lang) { - +static const USBDescriptor *get_descriptor(USBDriver *usbp, uint8_t dtype, uint8_t dindex, uint16_t lang) +{ (void)usbp; (void)lang; switch (dtype) { @@ -119,8 +116,8 @@ static const USBEndpointConfig ep2config = { /* * Handles the USB driver global events. */ -static void usb_event(USBDriver *usbp, usbevent_t event) { - +static void usb_event(USBDriver *usbp, usbevent_t event) +{ switch (event) { case USB_EVENT_RESET: return; @@ -177,7 +174,8 @@ static const SerialUSBConfig serusbcfg = { #define SHELL_WA_SIZE THD_WA_SIZE(2048) #define TEST_WA_SIZE THD_WA_SIZE(256) -static void cmd_mem(BaseSequentialStream *chp, int argc, char *argv[]) { +static void cmd_mem(BaseSequentialStream *chp, int argc, char *argv[]) +{ size_t n, size; (void)argv; @@ -191,7 +189,8 @@ static void cmd_mem(BaseSequentialStream *chp, int argc, char *argv[]) { chprintf(chp, "heap free total : %u bytes\r\n", size); } -static void cmd_threads(BaseSequentialStream *chp, int argc, char *argv[]) { +static void cmd_threads(BaseSequentialStream *chp, int argc, char *argv[]) +{ static const char *states[] = {THD_STATE_NAMES}; Thread *tp; @@ -212,7 +211,8 @@ static void cmd_threads(BaseSequentialStream *chp, int argc, char *argv[]) { } while (tp != NULL); } -static void cmd_test(BaseSequentialStream *chp, int argc, char *argv[]) { +static void cmd_test(BaseSequentialStream *chp, int argc, char *argv[]) +{ Thread *tp; (void)argv; @@ -229,7 +229,8 @@ static void cmd_test(BaseSequentialStream *chp, int argc, char *argv[]) { chThdWait(tp); } -static void cmd_write(BaseSequentialStream *chp, int argc, char *argv[]) { +static void cmd_write(BaseSequentialStream *chp, int argc, char *argv[]) +{ static uint8_t buf[] = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" |