diff options
-rw-r--r-- | apps/mpeg.c | 12 | ||||
-rw-r--r-- | apps/tree.c | 2 | ||||
-rw-r--r-- | firmware/usbstack/usb_hid.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/apps/mpeg.c b/apps/mpeg.c index 514379c16c..eb2cc735ba 100644 --- a/apps/mpeg.c +++ b/apps/mpeg.c | |||
@@ -131,10 +131,10 @@ static struct trackdata trackdata[MAX_TRACK_ENTRIES]; | |||
131 | 131 | ||
132 | static unsigned int current_track_counter = 0; | 132 | static unsigned int current_track_counter = 0; |
133 | 133 | ||
134 | #ifndef SIMULATOR | ||
134 | /* Play time of the previous track */ | 135 | /* Play time of the previous track */ |
135 | unsigned long prev_track_elapsed; | 136 | static unsigned long prev_track_elapsed; |
136 | 137 | ||
137 | #ifndef SIMULATOR | ||
138 | static int track_read_idx = 0; | 138 | static int track_read_idx = 0; |
139 | static int track_write_idx = 0; | 139 | static int track_write_idx = 0; |
140 | #endif /* !SIMULATOR */ | 140 | #endif /* !SIMULATOR */ |
@@ -213,10 +213,10 @@ static int prerecord_count; /* Number of seconds in the prerecord buffer */ | |||
213 | static int prerecord_timeout; /* The tick count of the next prerecord data | 213 | static int prerecord_timeout; /* The tick count of the next prerecord data |
214 | store */ | 214 | store */ |
215 | 215 | ||
216 | unsigned long record_start_time; /* Value of current_tick when recording | 216 | static unsigned long record_start_time; /* Value of current_tick when recording |
217 | was started */ | 217 | was started */ |
218 | unsigned long pause_start_time; /* Value of current_tick when pause was | 218 | static unsigned long pause_start_time; /* Value of current_tick when pause was |
219 | started */ | 219 | started */ |
220 | static unsigned long last_rec_time; | 220 | static unsigned long last_rec_time; |
221 | static unsigned long num_rec_bytes; | 221 | static unsigned long num_rec_bytes; |
222 | static unsigned long last_rec_bytes; | 222 | static unsigned long last_rec_bytes; |
diff --git a/apps/tree.c b/apps/tree.c index 5a8445cacf..dda36903e7 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -84,7 +84,7 @@ struct gui_synclist tree_lists; | |||
84 | /* I put it here because other files doesn't use it yet, | 84 | /* I put it here because other files doesn't use it yet, |
85 | * but should be elsewhere since it will be used mostly everywhere */ | 85 | * but should be elsewhere since it will be used mostly everywhere */ |
86 | #ifdef HAVE_BUTTONBAR | 86 | #ifdef HAVE_BUTTONBAR |
87 | struct gui_buttonbar tree_buttonbar; | 87 | static struct gui_buttonbar tree_buttonbar; |
88 | #endif | 88 | #endif |
89 | static struct tree_context tc; | 89 | static struct tree_context tc; |
90 | 90 | ||
diff --git a/firmware/usbstack/usb_hid.c b/firmware/usbstack/usb_hid.c index 6847d0b45d..905f2f0230 100644 --- a/firmware/usbstack/usb_hid.c +++ b/firmware/usbstack/usb_hid.c | |||
@@ -168,14 +168,14 @@ typedef struct | |||
168 | bool is_key_released; | 168 | bool is_key_released; |
169 | } usb_hid_report_t; | 169 | } usb_hid_report_t; |
170 | 170 | ||
171 | usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT]; | 171 | static usb_hid_report_t usb_hid_reports[REPORT_ID_COUNT]; |
172 | 172 | ||
173 | static unsigned char report_descriptor[HID_BUF_SIZE_REPORT] | 173 | static unsigned char report_descriptor[HID_BUF_SIZE_REPORT] |
174 | USB_DEVBSS_ATTR __attribute__((aligned(32))); | 174 | USB_DEVBSS_ATTR __attribute__((aligned(32))); |
175 | 175 | ||
176 | static unsigned char send_buffer[HID_NUM_BUFFERS][HID_BUF_SIZE_MSG] | 176 | static unsigned char send_buffer[HID_NUM_BUFFERS][HID_BUF_SIZE_MSG] |
177 | USB_DEVBSS_ATTR __attribute__((aligned(32))); | 177 | USB_DEVBSS_ATTR __attribute__((aligned(32))); |
178 | size_t send_buffer_len[HID_NUM_BUFFERS]; | 178 | static size_t send_buffer_len[HID_NUM_BUFFERS]; |
179 | static int cur_buf_prepare; | 179 | static int cur_buf_prepare; |
180 | static int cur_buf_send; | 180 | static int cur_buf_send; |
181 | 181 | ||