summaryrefslogtreecommitdiff
path: root/software/mpu
diff options
context:
space:
mode:
authorChristian Pointner <equinox@mur.at>2013-08-26 20:01:24 +0000
committerChristian Pointner <equinox@mur.at>2013-08-26 20:01:24 +0000
commit44312d6fc460eee27dd6ef524bcf461ca9ff7774 (patch)
treec986cd05363a8aa2b49c35f80eb1f92d61e6e2e8 /software/mpu
parentadded datasheet for M4 MPU (diff)
some cleanup
git-svn-id: https://svn.spreadspace.org/mur.sat@844 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'software/mpu')
-rw-r--r--software/mpu/main.c4
-rw-r--r--software/mpu/usb-cdc-shell.c23
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"