Blame view

FirstApp-MSP-EXP430G2/FirstApp-Prog.c 477 Bytes
Imanol-Mikel Barba Sabariego authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "FirstApp.h"
#include "Hal.h"

static FirstApp_data_t dataVal = -40;

void main() {
    Hal_init();
    FirstApp_start();
    Hal_idleLoop();
}

/* -------- SCHEMA CALLBACKS -------- */

void FirstApp_connectHandler(void) {
    Hal_connected();
}

void FirstApp_disconnectHandler(void) {
    Hal_disconnected();
}

void FirstApp_data_fetch(FirstApp_data_t* output) {
    *output = dataVal;
}

void FirstApp_data_store(FirstApp_data_t* input) {
    dataVal = *input;
}