Skip to content

Commit

Permalink
uncrustify: Add newline at EOF + update all
Browse files Browse the repository at this point in the history
  • Loading branch information
pengi committed May 15, 2020
1 parent 9c68c57 commit ef9fca4
Show file tree
Hide file tree
Showing 37 changed files with 191 additions and 183 deletions.
10 changes: 5 additions & 5 deletions src/core/config.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -65,4 +65,4 @@ const char *config_get_peripheral_config(
const char *tag)
{
return map_get(config_per, tag);
}
}
8 changes: 4 additions & 4 deletions src/core/config.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down
16 changes: 8 additions & 8 deletions src/core/interface.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -67,21 +67,21 @@ interface_header_t *interface_create(
interface_header_t *iface = malloc(decl->decl->storage_size);
if (iface == NULL) {
/* TODO: error handling */
asm("bkpt 255");
asm ("bkpt 255");
return NULL;
}
iface->peripheral = decl;
iface->rscs = interface_resource_allocate(decl, &cur_conf);
if (iface->rscs == NULL) {
/* TODO: error handling */
asm("bkpt 255");
asm ("bkpt 255");
return NULL;
}
if (decl->decl->init(iface, cur_conf) < 0) {
/* TODO: error handling */
asm("bkpt 255");
asm ("bkpt 255");
return NULL;
}

return iface;
}
}
8 changes: 4 additions & 4 deletions src/core/interface.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/core/interface_types.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -54,4 +54,4 @@ static inline void interface_serial_tx_wait_done(
}
interface_serial_t *if_ser = (interface_serial_t *) iface;
if_ser->tx_wait_done(if_ser);
}
}
10 changes: 5 additions & 5 deletions src/core/main.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -117,4 +117,4 @@ void main_task(
printf("Tick... %d\n", i++);
LL_GPIO_ResetOutputPin(GPIOA, 1 << 5);
}
}
}
10 changes: 5 additions & 5 deletions src/core/module.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand All @@ -33,4 +33,4 @@ int module_init(
}
}
return -1;
}
}
10 changes: 5 additions & 5 deletions src/core/module.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand All @@ -36,4 +36,4 @@ struct module_decl_s {

int module_init(
const char *name,
const char *config);
const char *config);
8 changes: 4 additions & 4 deletions src/core/peripheral.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/core/peripheral.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -117,4 +117,4 @@ const peripheral_instance_decl_t *peripheral_get_by_tag(
const peripheral_instance_resource_t *peripheral_get_resource_by_tag(
const peripheral_instance_decl_t *peripheral,
int arg_nr,
const char *tag);
const char *tag);
10 changes: 5 additions & 5 deletions src/core/resource.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -89,4 +89,4 @@ bool resource_allocate(
} else {
return false;
}
}
}
10 changes: 5 additions & 5 deletions src/core/resource.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -62,4 +62,4 @@ const resource_decl_t *resource_get_by_tag(
const char *tag);

bool resource_allocate(
const resource_decl_t *rsc);
const resource_decl_t *rsc);
10 changes: 5 additions & 5 deletions src/lib/map.c
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/*
* NodeFlight - platform for embedded control systems
* NodeFlight - platform for embedded control systems
* Copyright (C) 2020 Max Sikström
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Expand Down Expand Up @@ -102,4 +102,4 @@ void *map_get(
map = map->next;
}
return NULL;
}
}
Loading

0 comments on commit ef9fca4

Please sign in to comment.