pinebuds/thirdparty/userapi/demo_app/LibDemo.cpp
Ben V. Brown 75381150fd Formatting
Formatting Pass 1

Lots of fixups to adding stdint and stdbool all over the place

Formatting Pass 2
Formatting Pass 3
Formatting Pass 4

Update app_bt_stream.cpp
2023-02-02 07:56:49 +11:00

41 lines
972 B
C++

#include "LibDemo.h"
#include "cmsis.h"
#include "cmsis_os.h"
#include "cqueue.h"
#include "demo_lib.h"
#include "hal_trace.h"
#include <string.h>
int demo_example_init(bool on, void *param) {
TRACE(0, "demo_example_init");
return 0;
}
int demo_example_start(bool on, void *param) {
TRACE(0, "demo_example_start");
return 0;
}
int demo_example_stop(bool on, void *param) {
TRACE(0, "demo_example_stop");
return 0;
}
#include "app_thirdparty.h"
THIRDPARTY_HANDLER_TAB(DEMO_LIB_NAME){
{{THIRDPARTY_FUNC_DEMO, THIRDPARTY_ID_DEMO, THIRDPARTY_START},
(APP_THIRDPARTY_HANDLE_CB_T)demo_example_start,
true,
NULL},
{{THIRDPARTY_FUNC_DEMO, THIRDPARTY_ID_DEMO, THIRDPARTY_STOP},
(APP_THIRDPARTY_HANDLE_CB_T)demo_example_stop,
true,
NULL},
{{THIRDPARTY_FUNC_DEMO, THIRDPARTY_ID_DEMO, THIRDPARTY_INIT},
(APP_THIRDPARTY_HANDLE_CB_T)demo_example_init,
true,
NULL},
};
THIRDPARTY_HANDLER_TAB_SIZE(DEMO_LIB_NAME)