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 18:57:04 2016 +0000
Revision:
0:65cfa4873284
Child:
2:da28f21b72a1
Base version (threading + messaging based on mbed 5.0);

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 0:65cfa4873284 14 extern int sig_continue;
jmarkel44 0:65cfa4873284 15
jmarkel44 0:65cfa4873284 16 typedef enum action_tag {
jmarkel44 0:65cfa4873284 17 ACTION_CREATE,
jmarkel44 0:65cfa4873284 18 ACTION_MODIFY,
jmarkel44 0:65cfa4873284 19 ACTION_DESTROY
jmarkel44 0:65cfa4873284 20 } Action_t;
jmarkel44 0:65cfa4873284 21
jmarkel44 0:65cfa4873284 22 typedef enum control_tag {
jmarkel44 0:65cfa4873284 23 CONTROL_TIMER = 0,
jmarkel44 0:65cfa4873284 24 CONTROL_PID = 1,
jmarkel44 0:65cfa4873284 25 CONTROL_SETPOINT = 2,
jmarkel44 0:65cfa4873284 26 CONTROL_COMPOSITE = 3,
jmarkel44 0:65cfa4873284 27 CONTROL_MANUAL = 4
jmarkel44 0:65cfa4873284 28 } Control_t;
jmarkel44 0:65cfa4873284 29
jmarkel44 0:65cfa4873284 30
jmarkel44 0:65cfa4873284 31 // message data type
jmarkel44 0:65cfa4873284 32 typedef struct message_tag {
jmarkel44 0:65cfa4873284 33 Action_t action;
jmarkel44 0:65cfa4873284 34 Control_t control;
jmarkel44 0:65cfa4873284 35 char controlFile[32];
jmarkel44 0:65cfa4873284 36 } Message_t;
jmarkel44 0:65cfa4873284 37
jmarkel44 0:65cfa4873284 38 extern Mail<Message_t, 16> MailBox;
jmarkel44 0:65cfa4873284 39
jmarkel44 0:65cfa4873284 40 extern ntshell_t ntshell;
jmarkel44 0:65cfa4873284 41
jmarkel44 0:65cfa4873284 42 extern int func_read(char *buf, int cnt);
jmarkel44 0:65cfa4873284 43 extern int func_write(const char *buf, int cnt);
jmarkel44 0:65cfa4873284 44 extern int func_cb_ntshell(const char *text);
jmarkel44 0:65cfa4873284 45 extern void func_cb_ntopt(int argc, char **argv);
jmarkel44 0:65cfa4873284 46
jmarkel44 0:65cfa4873284 47 #endif