Skip to content

Commit

Permalink
Cleanup RebbleOS.h
Browse files Browse the repository at this point in the history
Cleanup RebbleOS.h
  • Loading branch information
AliceGrey committed Mar 20, 2020
1 parent 7eb0d27 commit 2400092
Show file tree
Hide file tree
Showing 52 changed files with 63 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Apps/System/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/

#include "display.h"
#include "rebbleos.h"
#include "menu.h"

Expand Down
2 changes: 1 addition & 1 deletion Apps/System/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Author: Carson Katri <me@carsonkatri.com>
* Barry Carter <barry.carter@gmail.com>
*/

#include "display.h"
#include "rebbleos.h"
#include "notification.h"
#include "notification_layer.h"
Expand Down
2 changes: 1 addition & 1 deletion Apps/System/systemapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "display.h"
#include "rebbleos.h"
#include "systemapp.h"
#include "menu.h"
Expand Down
2 changes: 1 addition & 1 deletion Apps/System/testapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "display.h"
#include "rebbleos.h"
#include "menu.h"
#include "status_bar_layer.h"
Expand Down
1 change: 1 addition & 0 deletions Apps/System/tests/color_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Author: Author: Chris Multhaupt <chris.multhaupt@gmail.com>.
*/
#include "display.h"
#include "rebbleos.h"
#include "systemapp.h"
#include "menu.h"
Expand Down
2 changes: 1 addition & 1 deletion Apps/System/tests/overlay_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/

#include "display.h"
#include "rebbleos.h"
#include "systemapp.h"
#include "menu.h"
Expand Down
1 change: 1 addition & 0 deletions Apps/System/tests/test_test.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "display.h"
#include "rebbleos.h"
#include "systemapp.h"
#include "menu.h"
Expand Down
2 changes: 1 addition & 1 deletion Apps/System/tests/vibes_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Author: Elliot Hawkins <elliotshawkins@gmail.com>.
*/

#include "display.h"
#include "rebbleos.h"
#include "systemapp.h"
#include "menu.h"
Expand Down
2 changes: 1 addition & 1 deletion Apps/System/widgettest.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Carson Katri <me@carsonkatri.com>
*/

#include "display.h"
#include "rebbleos.h"
#include "test.h"
#include "librebble.h"
Expand Down
1 change: 1 addition & 0 deletions hw/drivers/stm32_bluetooth_cc256x/btstack_rebble.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "btstack_rebble.h"
#include "btstack_chipset_cc256x.h"
#include "hal_uart_dma.h"
#include "main.h"
#include "rebbleos.h"
#include "btstack_spp.h"
#include "hal_time_ms.h"
Expand Down
1 change: 1 addition & 0 deletions hw/platform/chalk/chalk_bluetooth.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "rbl_bluetooth.h"
#include "rebbleos.h"

/*
Expand Down
4 changes: 3 additions & 1 deletion rcore/appmanager.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/

#include "rebble_memory.h"
#include <stdlib.h>
#include "rebbleos.h"
#include "display.h"

#include "librebble.h"
#include "appmanager.h"
#include "systemapp.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/appmanager_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <stdlib.h>
#include "display.h"
#include "rebbleos.h"
#include "appmanager.h"
#include "systemapp.h"
Expand Down
3 changes: 3 additions & 0 deletions rcore/appmanager_app_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
*/

#include <stdlib.h>
#include "display.h"
#include "rebbleos.h"
#include "appmanager.h"
#include "main.h"
#include "overlay_manager.h"

/*
* Start an application by name
* The message contains the app name
Expand Down
3 changes: 3 additions & 0 deletions rcore/appmanager_app_runloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
*/

#include <stdlib.h>
#include "display.h"
#include "rebbleos.h"
#include "appmanager.h"
#include "main.h"
#include "overlay_manager.h"
#include "notification_manager.h"
#include "timers.h"
#include "ngfxwrap.h"


/* Configure Logging */
#define MODULE_NAME "apploop"
#define MODULE_TYPE "APLOOP"
Expand Down
2 changes: 2 additions & 0 deletions rcore/appmanager_app_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
*/

#include <stdlib.h>
#include "display.h"
#include "rebbleos.h"
#include "appmanager.h"
#include "main.h"
#include "overlay_manager.h"
#include "notification_manager.h"

Expand Down
4 changes: 2 additions & 2 deletions rcore/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
* This must be run in the scheduler, not before.
*
*/
#include "display.h"
#include "rebbleos.h"
#include "appmanager.h"

#include "semphr.h"
/* Semaphore to start drawing */
static SemaphoreHandle_t _display_start_sem;
static StaticSemaphore_t _display_start_sem_buf;
Expand Down
3 changes: 2 additions & 1 deletion rcore/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "display.h"
#include "rebbleos.h"
#include "platform.h"
#include "semphr.h"
#include "flash.h"
#include "fs.h"

Expand Down
2 changes: 1 addition & 1 deletion rcore/gyro.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "display.h"
#include "rebbleos.h"
2 changes: 1 addition & 1 deletion rcore/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "main.h"
#include "rebbleos.h"

extern int vsfmt(char *buf, unsigned int len, const char *ifmt, va_list ap);
Expand Down
2 changes: 1 addition & 1 deletion rcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "main.h"
#include "rebbleos.h"
#include "watchdog.h"
#include "ambient.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/notification_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/
#include "main.h"
#include "rebbleos.h"
#include "protocol_notification.h"
#include "notification_manager.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/overlay_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/
#include "main.h"
#include "rebbleos.h"
#include "ngfxwrap.h"
#include "overlay_manager.h"
Expand Down
2 changes: 2 additions & 0 deletions rcore/power.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include "main.h"
#include <stdbool.h>
#include "power.h"
#include "rebbleos.h"
#include "notification_manager.h"
#include "battery_state_service.h"
#include "flash.h"

static uint8_t _charge_mode_prev = 0;
static uint8_t _charge_mode = 0;
Expand Down
1 change: 1 addition & 0 deletions rcore/protocol/protocol.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include <stdlib.h>
#include "main.h"
#include "rebbleos.h"
#include "endpoint.h"
#include "protocol.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/protocol/protocol_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include <stdlib.h>
#include "main.h"
#include "rebbleos.h"
#include "protocol_system.h"
#include "pebble_protocol.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/protocol/protocol_blob.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/
#include "main.h"
#include "rebbleos.h"
#include "protocol_system.h"
#include "pebble_protocol.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/protocol/protocol_notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include "main.h"
#include <stdlib.h>
#include "rebbleos.h"
#include "appmanager.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/protocol/protocol_system.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "main.h"
#include "rebbleos.h"
#include "protocol.h"
#include "protocol_system.h"
Expand Down
2 changes: 1 addition & 1 deletion rcore/qemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "rebbleos.h"
#include "endpoint.h"
#include "protocol.h"

#include "semphr.h"
/* Configure Logging */
#define MODULE_NAME "qemu"
#define MODULE_TYPE "SYS"
Expand Down
2 changes: 1 addition & 1 deletion rcore/rebble_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "main.h"
#include "rebbleos.h"

/* Configure Logging */
Expand Down
1 change: 1 addition & 0 deletions rcore/rebble_memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include "FreeRTOS.h"
#include "semphr.h"
#include <string.h>
#include <stdlib.h>
#include "stdbool.h"
Expand Down
2 changes: 1 addition & 1 deletion rcore/rebble_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Joshua Wise <joshua@joshuawise.com>
*/

#include "main.h"
#include "rebbleos.h"
#include "strftime.h"

Expand Down
1 change: 1 addition & 0 deletions rcore/rebble_util.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "display.h"
#include "rebbleos.h"
#include "librebble.h"
#include "uuid.h"
Expand Down
4 changes: 3 additions & 1 deletion rcore/rebbleos.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "main.h"
#include "FreeRTOS.h"
#include "task.h"
#include "stdio.h"
#include "rbl_bluetooth.h"
#include "rebbleos.h"
#include "watchdog.h"
#include "ngfxwrap.h"
Expand All @@ -18,6 +19,7 @@
#include "blob_db_ramfs.h"
#include "rtoswrap.h"
#include "test.h"
#include "flash.h"

typedef uint8_t (*mod_callback)(void);
static TaskHandle_t _os_task;
Expand Down
22 changes: 0 additions & 22 deletions rcore/rebbleos.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,6 @@
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <inttypes.h>
#include "FreeRTOS.h"
#include "rebble_memory.h"
#include "platform.h"
#include "appmanager.h"
#include "ambient.h"
#include "task.h"
#include "semphr.h"
#include "display.h"
#include "rebble_time.h"
#include "main.h"
#include "log.h"
#include "debug.h"
#include "flash.h"
#include "resource.h"
#include "rebble_util.h"
#include "rbl_bluetooth.h"

#define VERSION "v0.0.0.2"

//Let's make sure the user is using an 'up to date' version of the compiler
Expand Down
2 changes: 1 addition & 1 deletion rcore/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/

#include "main.h"
#include "rebbleos.h"
#include "platform.h"
#include "flash.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/service/blob_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include "main.h"
#include "rebbleos.h"
#include "protocol_system.h"
#include "pebble_protocol.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/service/blob_db_ramfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>.
*/
#include "main.h"
#include "rebbleos.h"
#include "node_list.h"
#include "blob_db.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/service/blob_db_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* tests for blob database
* RebbleOS
*/
#include "main.h"
#include "rebbleos.h"
#include "protocol_system.h"
#include "pebble_protocol.h"
Expand Down
1 change: 1 addition & 0 deletions rcore/service/timeline.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*
* Author: Barry Carter <barry.carter@gmail.com>
*/
#include "main.h"
#include "rebbleos.h"
#include "protocol_system.h"
#include "pebble_protocol.h"
Expand Down
Loading

0 comments on commit 2400092

Please sign in to comment.