Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
526dd049
Commit
526dd049
authored
Aug 21, 2014
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Application to application.
parent
931f04b8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
8 deletions
+18
-8
application.c
sw/freertos/src/apps/application.c
+1
-1
application.h
sw/freertos/src/apps/application.h
+2
-2
clock.c
sw/freertos/src/apps/clock.c
+1
-1
clock.h
sw/freertos/src/apps/clock.h
+6
-1
menu.c
sw/freertos/src/apps/menu.c
+2
-2
menu.h
sw/freertos/src/apps/menu.h
+6
-1
No files found.
sw/freertos/src/apps/application.c
View file @
526dd049
...
...
@@ -39,7 +39,7 @@
xQueueHandle
appQueue
;
void
startMain
(
A
pplication
*
app
)
{
void
startMain
(
a
pplication
*
app
)
{
appQueue
=
xQueueCreate
(
APP_QUEUE_LEN
,
sizeof
(
struct
event
));
if
(
!
appQueue
)
{
// TODO oops..
...
...
sw/freertos/src/apps/application.h
View file @
526dd049
...
...
@@ -51,14 +51,14 @@ typedef struct {
* @params Optional parameters, dependendent on application.
*/
void
(
*
main
)(
void
*
params
);
}
A
pplication
;
}
a
pplication
;
/**
* @brief Initializes the application task and event queue.
* After that runs one as the main application.
* @param app is the application to be run as the main one.
*/
void
startMain
(
A
pplication
*
app
);
void
startMain
(
a
pplication
*
app
);
#endif
/* APPLICATION_H */
sw/freertos/src/apps/clock.c
View file @
526dd049
...
...
@@ -109,7 +109,7 @@ void clock_main(void* params) {
}
}
A
pplication
clock
=
{
a
pplication
clock
=
{
.
name
=
"Clock"
,
.
main
=
clock_main
};
...
...
sw/freertos/src/apps/clock.h
View file @
526dd049
...
...
@@ -24,7 +24,12 @@
* Clock application.
*/
#ifndef CLOCK_H
#define CLOCK_H
#include "application.h"
extern
Application
clock
;
extern
application
clock
;
#endif
/* CLOCK_H */
sw/freertos/src/apps/menu.c
View file @
526dd049
...
...
@@ -70,7 +70,7 @@ struct ui_widget menu_screen = {
WF_ACTIVE
|
WF_VISIBLE
};
static
void
run
(
A
pplication
*
app
)
{
static
void
run
(
a
pplication
*
app
)
{
// Run the application
app
->
main
(
NULL
);
...
...
@@ -110,7 +110,7 @@ void menu_main(void* params) {
}
}
A
pplication
menu
=
{
a
pplication
menu
=
{
.
name
=
"Menu"
,
.
main
=
menu_main
};
...
...
sw/freertos/src/apps/menu.h
View file @
526dd049
...
...
@@ -24,7 +24,12 @@
* Menu application.
*/
#ifndef MENU_H
#define MENU_H
#include "application.h"
extern
Application
menu
;
extern
application
menu
;
#endif
/* MENU_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment