Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Committer:
jmarkel44
Date:
Thu Sep 01 20:32:42 2016 +0000
Revision:
2:da28f21b72a1
Parent:
0:65cfa4873284
Child:
3:8ea4db957749
thread updates;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jmarkel44 0:65cfa4873284 1 /******************************************************************************
jmarkel44 0:65cfa4873284 2 *
jmarkel44 0:65cfa4873284 3 * File: global.h
jmarkel44 0:65cfa4873284 4 * Desciption: global data
jmarkel44 0:65cfa4873284 5 *
jmarkel44 0:65cfa4873284 6 *****************************************************************************/
jmarkel44 0:65cfa4873284 7 #ifndef GLOBAL_H
jmarkel44 0:65cfa4873284 8 #define GLOBAL_H
jmarkel44 0:65cfa4873284 9
jmarkel44 0:65cfa4873284 10 #include "mbed.h"
jmarkel44 0:65cfa4873284 11 #include "rtos.h"
jmarkel44 0:65cfa4873284 12 #include "ntshell.h"
jmarkel44 0:65cfa4873284 13
jmarkel44 2:da28f21b72a1 14 //#define SUPPRESS_OUTPUT
jmarkel44 2:da28f21b72a1 15
jmarkel44 0:65cfa4873284 16 extern int sig_continue;
jmarkel44 0:65cfa4873284 17
jmarkel44 0:65cfa4873284 18 typedef enum action_tag {
jmarkel44 0:65cfa4873284 19 ACTION_CREATE,
jmarkel44 0:65cfa4873284 20 ACTION_MODIFY,
jmarkel44 0:65cfa4873284 21 ACTION_DESTROY
jmarkel44 0:65cfa4873284 22 } Action_t;
jmarkel44 0:65cfa4873284 23
jmarkel44 0:65cfa4873284 24 typedef enum control_tag {
jmarkel44 0:65cfa4873284 25 CONTROL_TIMER = 0,
jmarkel44 0:65cfa4873284 26 CONTROL_PID = 1,
jmarkel44 0:65cfa4873284 27 CONTROL_SETPOINT = 2,
jmarkel44 0:65cfa4873284 28 CONTROL_COMPOSITE = 3,
jmarkel44 0:65cfa4873284 29 CONTROL_MANUAL = 4
jmarkel44 0:65cfa4873284 30 } Control_t;
jmarkel44 0:65cfa4873284 31
jmarkel44 0:65cfa4873284 32
jmarkel44 0:65cfa4873284 33 // message data type
jmarkel44 0:65cfa4873284 34 typedef struct message_tag {
jmarkel44 0:65cfa4873284 35 Action_t action;
jmarkel44 0:65cfa4873284 36 Control_t control;
jmarkel44 0:65cfa4873284 37 char controlFile[32];
jmarkel44 0:65cfa4873284 38 } Message_t;
jmarkel44 0:65cfa4873284 39
jmarkel44 0:65cfa4873284 40 extern Mail<Message_t, 16> MailBox;
jmarkel44 0:65cfa4873284 41
jmarkel44 0:65cfa4873284 42 extern ntshell_t ntshell;
jmarkel44 0:65cfa4873284 43
jmarkel44 0:65cfa4873284 44 extern int func_read(char *buf, int cnt);
jmarkel44 0:65cfa4873284 45 extern int func_write(const char *buf, int cnt);
jmarkel44 0:65cfa4873284 46 extern int func_cb_ntshell(const char *text);
jmarkel44 0:65cfa4873284 47 extern void func_cb_ntopt(int argc, char **argv);
jmarkel44 0:65cfa4873284 48
jmarkel44 0:65cfa4873284 49 #endif