Skip to content

Commit ac28bb4

Browse files
committed
main: rename tasks/ to user/
1 parent f25563e commit ac28bb4

31 files changed

+69
-72
lines changed

main/inc/system/task.h

Lines changed: 0 additions & 13 deletions
This file was deleted.

main/inc/system/user.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* user.h
3+
*
4+
* Created on: 2018-02-16 18:00
5+
* Author: Jack Chen <redchenjs@live.com>
6+
*/
7+
8+
#ifndef INC_SYSTEM_USER_H_
9+
#define INC_SYSTEM_USER_H_
10+
11+
extern void user_init(void);
12+
13+
#endif /* INC_SYSTEM_USER_H_ */

main/inc/tasks/audio_daemon.h renamed to main/inc/user/audio_daemon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_AUDIO_DAEMON_H_
9-
#define INC_TASKS_AUDIO_DAEMON_H_
8+
#ifndef INC_USER_AUDIO_DAEMON_H_
9+
#define INC_USER_AUDIO_DAEMON_H_
1010

1111
#include <stdint.h>
1212

@@ -35,4 +35,4 @@ extern const uint8_t snd6_mp3_end[] asm("_binary_snd6_mp3_end");
3535
extern void audio_daemon(void *pvParameter);
3636
extern void audio_play_file(uint8_t filename_index);
3737

38-
#endif /* INC_TASKS_AUDIO_DAEMON_H_ */
38+
#endif /* INC_USER_AUDIO_DAEMON_H_ */

main/inc/tasks/audio_render.h renamed to main/inc/user/audio_render.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_AUDIO_RENDER_H_
9-
#define INC_TASKS_AUDIO_RENDER_H_
8+
#ifndef INC_USER_AUDIO_RENDER_H_
9+
#define INC_USER_AUDIO_RENDER_H_
1010

1111
extern void render_sample_block_mono(short *short_sample_buff, int no_samples);
1212
extern void render_sample_block(short *sample_buff_ch0, short *sample_buff_ch1, int num_samples, unsigned int num_channels);
1313
extern void set_dac_sample_rate(int rate);
1414

15-
#endif /* INC_TASKS_AUDIO_RENDER_H_ */
15+
#endif /* INC_USER_AUDIO_RENDER_H_ */

main/inc/tasks/blufi_daemon.h renamed to main/inc/user/blufi_daemon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_BLUFI_DAEMON_H_
9-
#define INC_TASKS_BLUFI_DAEMON_H_
8+
#ifndef INC_USER_BLUFI_DAEMON_H_
9+
#define INC_USER_BLUFI_DAEMON_H_
1010

1111
#include <stdint.h>
1212

1313
extern void blufi_daemon(void *pvParameter);
1414
extern void blufi_response(void);
1515

16-
#endif /* INC_TASKS_BLUFI_DAEMON_H_ */
16+
#endif /* INC_USER_BLUFI_DAEMON_H_ */

main/inc/tasks/blufi_security.h renamed to main/inc/user/blufi_security.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_BLUFI_SECURITY_H_
9-
#define INC_TASKS_BLUFI_SECURITY_H_
8+
#ifndef INC_USER_BLUFI_SECURITY_H_
9+
#define INC_USER_BLUFI_SECURITY_H_
1010

1111
#include <stdint.h>
1212

@@ -18,4 +18,4 @@ extern uint16_t blufi_security_crc_checksum(uint8_t iv8, uint8_t *data, int len)
1818
extern int blufi_security_init(void);
1919
extern void blufi_security_deinit(void);
2020

21-
#endif /* INC_TASKS_BLUFI_SECURITY_H_ */
21+
#endif /* INC_USER_BLUFI_SECURITY_H_ */

main/inc/tasks/gui_daemon.h renamed to main/inc/user/gui_daemon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_GUI_DAEMON_H_
9-
#define INC_TASKS_GUI_DAEMON_H_
8+
#ifndef INC_USER_GUI_DAEMON_H_
9+
#define INC_USER_GUI_DAEMON_H_
1010

1111
#include <stdint.h>
1212

@@ -71,4 +71,4 @@ extern const uint8_t ani8_160x80_gif_end[] asm("_binary_ani8_160x80_gif_end");
7171
extern void gui_daemon(void *pvParameter);
7272
extern void gui_show_image(uint8_t filename_index);
7373

74-
#endif /* INC_TASKS_GUI_DAEMON_H_ */
74+
#endif /* INC_USER_GUI_DAEMON_H_ */

main/inc/tasks/http2_client.h renamed to main/inc/user/http2_client.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_HTTP2_CLIENT_H_
9-
#define INC_TASKS_HTTP2_CLIENT_H_
8+
#ifndef INC_USER_HTTP2_CLIENT_H_
9+
#define INC_USER_HTTP2_CLIENT_H_
1010

1111
#include <stdint.h>
1212

@@ -53,4 +53,4 @@ extern int http2_client_do_putpost_with_nv(struct http2c_handle *hd, const nghtt
5353
http2c_putpost_data_cb_t send_cb,
5454
http2c_frame_data_recv_cb_t recv_cb);
5555

56-
#endif /* INC_TASKS_HTTP2_CLIENT_H_ */
56+
#endif /* INC_USER_HTTP2_CLIENT_H_ */

main/inc/tasks/http2_daemon.h renamed to main/inc/user/http2_daemon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_TASKS_HTTP2_DAEMON_H_
9-
#define INC_TASKS_HTTP2_DAEMON_H_
8+
#ifndef INC_USER_HTTP2_DAEMON_H_
9+
#define INC_USER_HTTP2_DAEMON_H_
1010

1111
extern void http2_daemon(void *pvParameter);
1212

13-
#endif /* INC_TASKS_HTTP2_DAEMON_H_ */
13+
#endif /* INC_USER_HTTP2_DAEMON_H_ */

main/inc/tasks/led_daemon.h renamed to main/inc/user/led_daemon.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* Author: Jack Chen <redchenjs@live.com>
66
*/
77

8-
#ifndef INC_LED_DAEMON_H_
9-
#define INC_LED_DAEMON_H_
8+
#ifndef INC_USER_LED_DAEMON_H_
9+
#define INC_USER_LED_DAEMON_H_
1010

1111
#include <stdint.h>
1212

1313
extern void led_daemon(void *pvParameter);
1414
extern void led_set_mode(uint8_t mode);
1515

16-
#endif /* INC_LED_DAEMON_H_ */
16+
#endif /* INC_USER_LED_DAEMON_H_ */

0 commit comments

Comments
 (0)