summaryrefslogtreecommitdiff
path: root/software/mpu/usb-cdc-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/mpu/usb-cdc-shell.c')
-rw-r--r--software/mpu/usb-cdc-shell.c23
1 files changed, 12 insertions, 11 deletions
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"