Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Committer:
jmarkel44
Date:
Tue Sep 06 17:51:37 2016 +0000
Revision:
3:8ea4db957749
Parent:
2:da28f21b72a1
Child:
7:c0c03193612d
Base version

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