Commit 574edda57608a3606d1a730cf1b51f5e052a3f6c

Authored by Imanol-Mikel Barba Sabariego
1 parent c6a7328b

--no commit message

Showing 41 changed files with 4230 additions and 9 deletions
Blinker-MSP-EXP430G2/.project 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>Blinker-MSP-EXP430G2</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>com.emmoco.mcmtooling.core.mcmToolingBuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>com.emmoco.mcmtooling.example.mcmToolingBuilder</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + </buildSpec>
  19 + <natures>
  20 + <nature>com.emmoco.mcmtooling.example.mcmToolingExampleNature</nature>
  21 + <nature>com.emmoco.mcmtooling.core.mcmToolingNature</nature>
  22 + </natures>
  23 + <linkedResources>
  24 + <link>
  25 + <name>Hal</name>
  26 + <type>2</type>
  27 + <locationURI>EM_PLATFORM_LOC/Hal</locationURI>
  28 + </link>
  29 + </linkedResources>
  30 + <variableList>
  31 + <variable>
  32 + <name>EM_PLATFORM_LOC</name>
  33 + <value>$%7BWORKSPACE_LOC%7D/Platform-MSP-EXP430G2</value>
  34 + </variable>
  35 + </variableList>
  36 +</projectDescription>
... ...
Blinker-MSP-EXP430G2/Blinker-Prog.c 0 → 100644
  1 +#include "Blinker.h"
  2 +#include "Hal.h"
  3 +
  4 +static void tickHandler(void);
  5 +
  6 +static Blinker_cmd_t cmdVal = Blinker_START_CMD;
  7 +static Blinker_count_t countVal = 0;
  8 +static Blinker_delay_t delayVal = 1.2 * Blinker_delay_scale;
  9 +
  10 +#define FOREVER -1
  11 +
  12 +static Blinker_count_t curCount = FOREVER;
  13 +static Blinker_delay_t curTime = 0;
  14 +
  15 +void main() {
  16 + Hal_init();
  17 + Hal_tickStart(Blinker_delay_step, tickHandler);
  18 + Blinker_start();
  19 + Hal_idleLoop();
  20 +}
  21 +
  22 +static void tickHandler(void) {
  23 +
  24 + if (cmdVal == Blinker_STOP_CMD) {
  25 + return;
  26 + }
  27 +
  28 + if (curTime < delayVal) {
  29 + curTime += Blinker_delay_step;
  30 + return;
  31 + }
  32 +
  33 + if (curCount == FOREVER || curCount-- > 0) {
  34 + Hal_ledToggle();
  35 + }
  36 + else {
  37 + cmdVal = Blinker_STOP_CMD;
  38 + Hal_ledOff();
  39 + }
  40 + curTime = 0;
  41 + Blinker_ledState_indicate();
  42 +}
  43 +
  44 +/* -------- SCHEMA CALLBACKS -------- */
  45 +
  46 +void Blinker_connectHandler(void) {
  47 + Hal_connected();
  48 +}
  49 +
  50 +void Blinker_disconnectHandler(void) {
  51 + Hal_disconnected();
  52 +}
  53 +
  54 +void Blinker_cmd_store(Blinker_cmd_t* input) {
  55 + cmdVal = *input;
  56 + switch (cmdVal) {
  57 + case Blinker_START_CMD:
  58 + curCount = countVal > 0 ? countVal * 2 : FOREVER;
  59 + curTime = 0;
  60 + break;
  61 + case Blinker_STOP_CMD:
  62 + Hal_ledOff();
  63 + break;
  64 + }
  65 +}
  66 +
  67 +void Blinker_count_fetch(Blinker_count_t* output) {
  68 + *output = countVal;
  69 +}
  70 +
  71 +void Blinker_count_store(Blinker_count_t* input) {
  72 + countVal = *input;
  73 +}
  74 +
  75 +void Blinker_delay_fetch(Blinker_delay_t* output) {
  76 + *output = delayVal;
  77 +}
  78 +
  79 +void Blinker_delay_store(Blinker_delay_t* input) {
  80 + delayVal = *input;
  81 +}
  82 +
  83 +void Blinker_ledState_fetch(Blinker_ledState_t* output) {
  84 + *output = Hal_ledRead() ? Blinker_LED_ON : Blinker_LED_OFF;
  85 +}
  86 +
... ...
Blinker-MSP-EXP430G2/Blinker.ems 0 → 100644
  1 +version = "1.0.0";
  2 +description = "Blinker, the hello world program for mobile control";
  3 +
  4 +schema Blinker {
  5 +
  6 + /* -------- resource cmd -------- */
  7 +
  8 + enum Cmd {
  9 + START_CMD, STOP_CMD
  10 + };
  11 +
  12 + Cmd cmd {
  13 + writeonly
  14 + };
  15 +
  16 + /* -------- resource count -------- */
  17 +
  18 + int16 count {
  19 + readwrite
  20 + };
  21 +
  22 + /* -------- resource delay -------- */
  23 +
  24 + num <0.5, 2.0, 0.100> delay {
  25 + readwrite
  26 + };
  27 +
  28 + /* -------- resource ledState -------- */
  29 +
  30 + enum LedState {
  31 + LED_OFF, LED_ON
  32 + };
  33 +
  34 + LedState ledState {
  35 + indicator
  36 + };
  37 +
  38 +};
... ...
Blinker-MSP-EXP430G2/Em/Blinker-STUBS.c 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-07-30T13:03:35T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#include "Blinker.h"
  5 +
  6 +#ifdef Blinker_STUBS_ /* enables optional inclusion of application stubs */
  7 +
  8 +/* Copy the function skeletons below into your own application source file */
  9 +
  10 +void Blinker_connectHandler(void) {
  11 + /* TODO: application is now connected */
  12 +}
  13 +
  14 +void Blinker_disconnectHandler(void) {
  15 + /* TODO: application is now disconnected */
  16 +}
  17 +
  18 +void Blinker_cmd_store(Blinker_cmd_t* input) {
  19 + /* TODO: write resource 'cmd' from 'input' */
  20 +}
  21 +
  22 +void Blinker_count_fetch(Blinker_count_t* output) {
  23 + /* TODO: read resource 'count' into 'output' */
  24 +}
  25 +
  26 +void Blinker_count_store(Blinker_count_t* input) {
  27 + /* TODO: write resource 'count' from 'input' */
  28 +}
  29 +
  30 +void Blinker_delay_fetch(Blinker_delay_t* output) {
  31 + /* TODO: read resource 'delay' into 'output' */
  32 +}
  33 +
  34 +void Blinker_delay_store(Blinker_delay_t* input) {
  35 + /* TODO: write resource 'delay' from 'input' */
  36 +}
  37 +
  38 +void Blinker_ledState_fetch(Blinker_ledState_t* output) {
  39 + /* TODO: read resource 'ledState' into 'output' */
  40 +}
  41 +
  42 +#endif /* application stubs */
... ...
Blinker-MSP-EXP430G2/Em/Blinker.c 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-07-30T13:03:35T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#include "Em_Message.h"
  5 +#include "Blinker.h"
  6 +
  7 +#ifdef __cplusplus
  8 +extern "C" {
  9 +#endif
  10 +
  11 +#define Em_Message_protocolLevel 13
  12 +
  13 +typedef struct Em_App_Message {
  14 + uint8_t dummy[3];
  15 + uint8_t sot;
  16 + Em_Message_Header hdr;
  17 + uint8_t data[20];
  18 +} Em_App_Message;
  19 +
  20 +const uint8_t Em_App_hash[] = {100, 133, 204, 118, 171, 105, 196, 176, 165, 61, 177, 160, 190, 191, 194, 241, 13, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))};
  21 +
  22 +const uint8_t Em_App_build[] = {71, 133, 240, 134, 71, 1, 0, 0};
  23 +
  24 +#define Em_App_APP_RESOURCE_COUNT 4
  25 +#define Em_App_SYS_RESOURCE_COUNT 9
  26 +
  27 +#define Em_App_ACCEPT Blinker_accept
  28 +#define Em_App_ACTIVATEPARAMETERS Blinker_activateParameters
  29 +#define Em_App_BROADCASTOFF Blinker_broadcastOff
  30 +#define Em_App_DISCONNECT Blinker_disconnect
  31 +#define Em_App_PAIRINGON Blinker_pairingOn
  32 +#define Em_App_PAIRINGOFF Blinker_pairingOff
  33 +#define Em_App_RESET Blinker_reset
  34 +#define Em_App_SETDEVICENAME Blinker_setDeviceName
  35 +#define Em_App_START Blinker_start
  36 +
  37 +#define Em_App_CONNECTHANDLER Blinker_connectHandler
  38 +#define Em_App_DISCONNECTHANDLER Blinker_disconnectHandler
  39 +
  40 +#define Em_App_MAX_INDICATOR 2
  41 +
  42 +/* BEGIN common code */
  43 +
  44 +enum {Em_App_IDLE, Em_App_STARTING, Em_App_DISCONNECTED, Em_App_CONNECTED};
  45 +
  46 +typedef struct Em_App_Indicator {
  47 + uint8_t dummy[3];
  48 + uint8_t sot;
  49 + Em_Message_Header hdr;
  50 + uint8_t data[Em_Message_INDSIZE];
  51 +} Em_App_Indicator;
  52 +
  53 +union { uint32_t align; Em_App_Message msg; } Em_App_msg_u;
  54 +union { uint32_t align; Em_App_Indicator ind; } Em_App_ind_u;
  55 +#define Em_App_msg Em_App_msg_u.msg
  56 +#define Em_App_ind Em_App_ind_u.ind
  57 +
  58 +void (*Em_App_pdHdlr)(void);
  59 +
  60 +const uint16_t Em_App_endian = 0x0100;
  61 +
  62 +Em_Message_Size Em_App_recvIdx;
  63 +Em_Message_Size Em_App_recvSize;
  64 +Em_Message_Size Em_App_xmitIdx;
  65 +Em_Message_Size Em_App_xmitSize;
  66 +
  67 +uint8_t Em_App_state = Em_App_IDLE;
  68 +int32_t Em_App_fileIndex = 0;
  69 +uint32_t Em_App_xmitMask = 0;
  70 +
  71 +uint8_t* Em_App_valp;
  72 +uint8_t* Em_App_bufp;
  73 +const char* Em_App_desc;
  74 +
  75 +uint8_t* Em_App_inBuf = (uint8_t*)&Em_App_msg.hdr;
  76 +uint8_t* Em_App_outBuf = 0;
  77 +
  78 +uint8_t* _Em_Message_rxBuf = 0;
  79 +uint8_t _Em_Message_rxCnt = 0;
  80 +
  81 +uint8_t* _Em_Message_txBuf = 0;
  82 +uint8_t _Em_Message_txCnt = 0;
  83 +
  84 +#define Em_App_DEVNAME_LEN 9
  85 +const char* Em_App_devName = 0;
  86 +
  87 +void Em_App_fetchDispatch(void);
  88 +void Em_Message_marshallToBuf(uint8_t* valp, uint8_t* bufp, const char* desc);
  89 +void Em_Message_marshallToVal(uint8_t* valp, uint8_t* bufp, const char* desc);
  90 +void Em_App_storeDispatch(void);
  91 +void Em_App_sendIndicator(Em_Message_ResId indId);
  92 +void Em_App_sendResponse(Em_Message_Kind kind, Em_Message_Size size);
  93 +void Em_App_startIndSend(void);
  94 +void Em_App_startResSend(void);
  95 +void Em_App_sysFetchDispatch(void);
  96 +void Em_App_sysStoreDispatch(void);
  97 +bool Em_App_xmitReady(Em_Message_ResId indId);
  98 +
  99 +void Em_Message_nextXmit(void) {
  100 + uint8_t key = Em_Hal_lock();
  101 + if (Em_App_xmitMask != 0) {
  102 + uint8_t i;
  103 + uint32_t m;
  104 + for (i = 0, m = 0x1; i < Em_App_MAX_INDICATOR; i++, m <<= 1) {
  105 + if (Em_App_xmitMask & m) {
  106 + Em_App_xmitMask &= ~m;
  107 + if (i == 0) {
  108 + Em_App_startResSend();
  109 + }
  110 + else {
  111 + Em_App_sendIndicator(i - 1);
  112 + }
  113 + break;
  114 + }
  115 + }
  116 + }
  117 + Em_Hal_unlock(key);
  118 +}
  119 +
  120 +void Em_Message_restart(void) {
  121 + Em_App_START();
  122 +}
  123 +
  124 +void Em_App_ACCEPT(bool enable) {
  125 + if (Em_App_state == Em_App_CONNECTED) {
  126 + return;
  127 + }
  128 + Em_App_ind.sot = 0;
  129 + Em_App_ind.hdr.kind = Em_Message_ACCEPT;
  130 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  131 + Em_App_ind.hdr.resId = enable;
  132 + Em_App_startIndSend();
  133 +}
  134 +
  135 +void Em_App_ACTIVATEPARAMETERS(uint8_t group) {
  136 + if (Em_App_state == Em_App_IDLE || Em_App_state == Em_App_STARTING) {
  137 + return;
  138 + }
  139 + Em_App_ind.sot = 0;
  140 + Em_App_ind.hdr.kind = Em_Message_ACTIVE_PARAMS;
  141 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  142 + Em_App_ind.hdr.resId = group;
  143 + Em_App_startIndSend();
  144 +}
  145 +
  146 +void Em_App_BROADCASTOFF(void) {
  147 + Em_App_ind.sot = 0;
  148 + Em_App_ind.hdr.kind = Em_Message_INDICATOR;
  149 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  150 + Em_App_ind.hdr.resId = 0;
  151 + Em_App_startIndSend();
  152 +}
  153 +
  154 +void Em_App_DISCONNECT(void) {
  155 + if (Em_App_state != Em_App_CONNECTED) {
  156 + return;
  157 + }
  158 + Em_App_state = Em_App_DISCONNECTED;
  159 + Em_App_ind.sot = 0;
  160 + Em_App_ind.hdr.kind = Em_Message_DISCONNECT;
  161 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  162 + Em_App_ind.hdr.resId = 0;
  163 + Em_App_startIndSend();
  164 +}
  165 +
  166 +void Em_Message_dispatch(void) {
  167 + if (Em_App_state == Em_App_IDLE) {
  168 + return;
  169 + }
  170 + switch (Em_App_msg.hdr.kind) {
  171 + case Em_Message_CONNECT:
  172 + Em_App_state = Em_App_CONNECTED;
  173 + Em_App_CONNECTHANDLER();
  174 + break;
  175 + case Em_Message_DISCONNECT:
  176 + Em_App_state = Em_App_DISCONNECTED;
  177 + Em_App_DISCONNECTHANDLER();
  178 + break;
  179 + case Em_Message_PAIRING_DONE:
  180 + if (Em_App_pdHdlr) {
  181 + (*Em_App_pdHdlr)();
  182 + }
  183 + break;
  184 + case Em_Message_FETCH:
  185 + if (Em_App_msg.hdr.resId < 0x80) {
  186 + Em_App_fetchDispatch();
  187 + }
  188 + else {
  189 + Em_App_sysFetchDispatch();
  190 + }
  191 + break;
  192 + case Em_Message_STORE:
  193 + if (Em_App_msg.hdr.resId < 0x80) {
  194 + Em_App_storeDispatch();
  195 + }
  196 + else {
  197 + Em_App_sysStoreDispatch();
  198 + }
  199 + break;
  200 + }
  201 +}
  202 +
  203 +void Em_App_marshallToBuf() {
  204 + char ch;
  205 + while ((ch = *Em_App_desc++)) {
  206 + switch (ch) {
  207 + case '0' : {
  208 + *Em_App_bufp++ = 0;
  209 + break;
  210 + }
  211 + case '1' : {
  212 + *Em_App_bufp++ = *Em_App_valp & 0xFF;
  213 + break;
  214 + }
  215 + case '2' : {
  216 + uint16_t v16 = *(uint16_t*)Em_App_valp;
  217 + *Em_App_bufp++ = v16 & 0xFF;
  218 + *Em_App_bufp++ = (v16 >> 8) & 0xFF;
  219 + break;
  220 + }
  221 + case '4' : {
  222 + if (((uint32_t)Em_App_valp & 0x1)) Em_App_valp++;
  223 + uint32_t v32 = *(uint32_t*)Em_App_valp++;
  224 + *Em_App_bufp++ = v32 & 0xFF;
  225 + *Em_App_bufp++ = (v32 >> 8) & 0xFF;
  226 + *Em_App_bufp++ = (v32 >> 16) & 0xFF;
  227 + *Em_App_bufp++ = (v32 >> 24) & 0xFF;
  228 + break;
  229 + }
  230 + }
  231 + Em_App_valp += 1;
  232 + }
  233 +}
  234 +
  235 +void Em_App_marshallToVal() {
  236 + char ch;
  237 + while ((ch = *Em_App_desc++)) {
  238 + switch (ch) {
  239 + case '0' : {
  240 + *Em_App_valp = 0;
  241 + Em_App_bufp += 1;
  242 + break;
  243 + }
  244 + case '1' : {
  245 + *Em_App_valp = *Em_App_bufp++ & 0xFF;
  246 + break;
  247 + }
  248 + case '2' : {
  249 + uint16_t v16 = *Em_App_bufp++ & 0xFF;
  250 + v16 |= (*Em_App_bufp++ << 8);
  251 + *(uint16_t*)Em_App_valp = v16;
  252 + break;
  253 + }
  254 + case '4' : {
  255 + if (((uint32_t)Em_App_valp & 0x1)) Em_App_valp++;
  256 + uint32_t v32 = (uint32_t)*Em_App_bufp++ & 0xFF;
  257 + v32 |= ((uint32_t)*Em_App_bufp++ << 8);
  258 + v32 |= ((uint32_t)*Em_App_bufp++ << 16);
  259 + v32 |= ((uint32_t)*Em_App_bufp++ << 24);
  260 + *(uint32_t*)Em_App_valp++ = v32;
  261 + break;
  262 + }
  263 + }
  264 + Em_App_valp += 1;
  265 + }
  266 +}
  267 +
  268 +void Em_App_PAIRINGOFF(void(*handler)(void)) {
  269 + Em_App_PAIRINGON(0, handler);
  270 +}
  271 +
  272 +void Em_App_PAIRINGON(uint8_t secs, void(*handler)(void)) {
  273 + if (Em_App_state != Em_App_DISCONNECTED) {
  274 + return;
  275 + }
  276 + Em_App_pdHdlr = handler;
  277 + Em_App_ind.sot = 0;
  278 + Em_App_ind.hdr.kind = Em_Message_PAIRING;
  279 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  280 + Em_App_ind.hdr.resId = secs;
  281 + Em_App_startIndSend();
  282 +}
  283 +
  284 +void Em_App_RESET(void) {
  285 + Em_Hal_reset();
  286 + _Em_Message_rxBuf = _Em_Message_txBuf = 0;
  287 + _Em_Message_rxCnt = _Em_Message_txCnt = 0;
  288 + Em_App_recvIdx = Em_App_recvSize = Em_App_xmitIdx = Em_App_xmitSize = 0;
  289 + Em_App_state = Em_App_IDLE;
  290 + Em_App_fileIndex = 0;
  291 + Em_App_xmitMask = 0;
  292 +}
  293 +
  294 +void Em_App_SETDEVICENAME(const char* name) {
  295 + Em_App_devName = name;
  296 +}
  297 +
  298 +void Em_App_START(void) {
  299 + Em_App_RESET();
  300 + Em_App_state = Em_App_STARTING;
  301 +}
  302 +
  303 +void Em_App_sendResponse(Em_Message_Kind kind, Em_Message_Size size) {
  304 + if (Em_App_state != Em_App_IDLE) {
  305 + Em_App_msg.sot = 0;
  306 + Em_App_msg.hdr.kind = kind;
  307 + Em_App_msg.hdr.size = size + sizeof (Em_Message_Header);
  308 + if (Em_App_xmitReady(0)) {
  309 + Em_App_startResSend();
  310 + }
  311 + }
  312 +}
  313 +
  314 +void Em_App_startIndSend(void) {
  315 + Em_App_outBuf = (uint8_t*)&Em_App_ind.sot;
  316 + Em_App_xmitSize = Em_App_ind.hdr.size + 1;
  317 + Em_App_xmitIdx = 0;
  318 + Em_Hal_startSend();
  319 +}
  320 +
  321 +void Em_App_startResSend(void) {
  322 + Em_App_outBuf = (uint8_t*)&Em_App_msg.sot;
  323 + Em_App_xmitSize = Em_App_msg.hdr.size + 1;
  324 + Em_App_xmitIdx = 0;
  325 + Em_Hal_startSend();
  326 +}
  327 +
  328 +void Em_App_sysFetchDispatch(void) {
  329 + uint8_t size = 0;
  330 + int i, j;
  331 + switch (Em_App_msg.hdr.resId) {
  332 + case Em_Message_SYS_SCHEMA_HASH:
  333 + for (i = 0; i < sizeof (Em_App_hash); i++) {
  334 + Em_App_msg.data[i] = Em_App_hash[i];
  335 + }
  336 + Em_App_msg.data[sizeof (Em_App_hash)] = *((uint8_t*)&Em_App_endian);
  337 + size = sizeof (Em_App_hash) + 1;
  338 + break;
  339 + case Em_Message_SYS_MCM_NAME:
  340 + if (Em_App_devName) {
  341 + for (i = 0; i < Em_App_DEVNAME_LEN; i++) {
  342 + if ((Em_App_msg.data[i] = Em_App_devName[i]) == 0) {
  343 + break;
  344 + }
  345 + }
  346 + for (j = i; j < Em_App_DEVNAME_LEN; j++) {
  347 + Em_App_msg.data[j] = 0;
  348 + }
  349 + size = Em_App_DEVNAME_LEN;
  350 + }
  351 + break;
  352 + case Em_Message_SYS_EAP_PROTOCOL_LEVEL:
  353 + *((Em_Message_protocolLevel_t*)Em_App_msg.data) = Em_Message_protocolLevel;
  354 + size = sizeof (Em_Message_protocolLevel_t);
  355 + break;
  356 + case Em_Message_SYS_EAP_BUILD_DATE:
  357 + for (i = 0; i < sizeof (Em_App_build); i++) {
  358 + Em_App_msg.data[i] = Em_App_build[i];
  359 + }
  360 + size = sizeof (Em_App_build);
  361 + break;
  362 + case Em_Message_SYS_RESOURCE_COUNT:
  363 + Em_App_msg.data[0] = Em_App_APP_RESOURCE_COUNT;
  364 + Em_App_msg.data[1] = Em_App_SYS_RESOURCE_COUNT;
  365 + size = 2;
  366 + break;
  367 + }
  368 + Em_App_sendResponse(Em_Message_FETCH_DONE, size);
  369 +}
  370 +
  371 +void Em_App_sysStoreDispatch(void) {
  372 + switch (Em_App_msg.hdr.resId) {
  373 + case Em_Message_SYS_FILE_INDEX_RESET:
  374 + Em_App_fileIndex = 0;
  375 + break;
  376 + }
  377 + Em_App_sendResponse(Em_Message_STORE_DONE, 0);
  378 +}
  379 +
  380 +bool Em_App_xmitReady(Em_Message_ResId indId) {
  381 + uint8_t key = Em_Hal_lock();
  382 + bool res = _Em_Message_txBuf == 0 && Em_App_xmitMask == 0;
  383 + if (!res) {
  384 + Em_App_xmitMask |= (1 << indId);
  385 + }
  386 + Em_Hal_unlock(key);
  387 + return res;
  388 +}
  389 +
  390 +/* END common code */
  391 +
  392 +void Em_App_fetchDispatch(void) {
  393 + uint8_t size = 0;
  394 + switch (Em_App_msg.hdr.resId) {
  395 + case 0: {
  396 + break;
  397 + }
  398 + case 2: {
  399 +#ifdef Em_16BIT
  400 + Blinker_count_t val;
  401 + Em_App_valp = (uint8_t*)&val;
  402 + Em_App_bufp = Em_App_msg.data;
  403 + Em_App_desc = "2";
  404 + Blinker_count_fetch(&val);
  405 + Em_App_marshallToBuf();
  406 +#else
  407 + Blinker_count_fetch((void*)Em_App_msg.data);
  408 +#endif
  409 + size = 2;
  410 + break;
  411 + }
  412 + case 3: {
  413 +#ifdef Em_16BIT
  414 + Blinker_delay_t val;
  415 + Em_App_valp = (uint8_t*)&val;
  416 + Em_App_bufp = Em_App_msg.data;
  417 + Em_App_desc = "2";
  418 + Blinker_delay_fetch(&val);
  419 + Em_App_marshallToBuf();
  420 +#else
  421 + Blinker_delay_fetch((void*)Em_App_msg.data);
  422 +#endif
  423 + size = 2;
  424 + break;
  425 + }
  426 + case 4: {
  427 +#ifdef Em_16BIT
  428 + Blinker_ledState_t val;
  429 + Em_App_valp = (uint8_t*)&val;
  430 + Em_App_bufp = Em_App_msg.data;
  431 + Em_App_desc = "1";
  432 + Blinker_ledState_fetch(&val);
  433 + Em_App_marshallToBuf();
  434 +#else
  435 + Blinker_ledState_fetch((void*)Em_App_msg.data);
  436 +#endif
  437 + size = 1;
  438 + break;
  439 + }
  440 + }
  441 + Em_App_sendResponse(Em_Message_FETCH_DONE, size);
  442 +}
  443 +
  444 +void Em_App_storeDispatch(void) {
  445 + switch (Em_App_msg.hdr.resId) {
  446 + case 0: {
  447 + break;
  448 + }
  449 + case 1: {
  450 +#ifdef Em_16BIT
  451 + Blinker_cmd_t val;
  452 + Em_App_valp = (uint8_t*)&val;
  453 + Em_App_bufp = Em_App_msg.data;
  454 + Em_App_desc = "1";
  455 + Em_App_marshallToVal();
  456 + Blinker_cmd_store(&val);
  457 +#else
  458 + Blinker_cmd_store((void*)Em_App_msg.data);
  459 +#endif
  460 + break;
  461 + }
  462 + case 2: {
  463 +#ifdef Em_16BIT
  464 + Blinker_count_t val;
  465 + Em_App_valp = (uint8_t*)&val;
  466 + Em_App_bufp = Em_App_msg.data;
  467 + Em_App_desc = "2";
  468 + Em_App_marshallToVal();
  469 + Blinker_count_store(&val);
  470 +#else
  471 + Blinker_count_store((void*)Em_App_msg.data);
  472 +#endif
  473 + break;
  474 + }
  475 + case 3: {
  476 +#ifdef Em_16BIT
  477 + Blinker_delay_t val;
  478 + Em_App_valp = (uint8_t*)&val;
  479 + Em_App_bufp = Em_App_msg.data;
  480 + Em_App_desc = "2";
  481 + Em_App_marshallToVal();
  482 + Blinker_delay_store(&val);
  483 +#else
  484 + Blinker_delay_store((void*)Em_App_msg.data);
  485 +#endif
  486 + break;
  487 + }
  488 + }
  489 + Em_App_sendResponse(Em_Message_STORE_DONE, 0);
  490 +}
  491 +
  492 +void Em_App_sendIndicator(Em_Message_ResId indId) {
  493 + Em_Message_Size resId = 0;
  494 + Em_Message_Size size = 0;
  495 + switch (indId) {
  496 + case 1: {
  497 +#ifdef Em_16BIT
  498 + Blinker_ledState_t val;
  499 + Em_App_valp = (uint8_t*)&val;
  500 + Em_App_bufp = Em_App_ind.data;
  501 + Em_App_desc = "1";
  502 + Blinker_ledState_fetch(&val);
  503 + Em_App_marshallToBuf();
  504 +#else
  505 + Blinker_ledState_fetch((Blinker_ledState_t*)&Em_App_ind.data);
  506 +#endif
  507 + resId = 4;
  508 + size = 1;
  509 + break;
  510 + }
  511 + }
  512 + Em_App_ind.sot = 0;
  513 + Em_App_ind.hdr.kind = Em_Message_INDICATOR;
  514 + Em_App_ind.hdr.size = sizeof (Em_Message_Header) + size;
  515 + Em_App_ind.hdr.resId = resId;
  516 + Em_App_startIndSend();
  517 +}
  518 +
  519 +void Blinker_ledState_indicate(void) {
  520 + if (Em_App_state == Em_App_CONNECTED && Em_App_xmitReady(1 + 1)) Em_App_sendIndicator(1);
  521 +}
  522 +
  523 +#ifdef __cplusplus
  524 +}
  525 +#endif
  526 +
... ...
Blinker-MSP-EXP430G2/Em/Blinker.h 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.Blinker on 2014-07-30T13:03:35T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#ifndef Blinker__H
  5 +#define Blinker__H
  6 +
  7 +#include "Em_Types.h"
  8 +#include "Em_Message.h"
  9 +
  10 +#ifdef __cplusplus
  11 +extern "C" {
  12 +#endif
  13 +
  14 +/* -------- connection callback functions implemented by the application -------- */
  15 +
  16 +void Blinker_connectHandler(void);
  17 +void Blinker_disconnectHandler(void);
  18 +
  19 +/* -------- resource types defined in the schema -------- */
  20 +
  21 +/* enum Cmd */
  22 +typedef uint8_t Blinker_Cmd;
  23 +#define Blinker_START_CMD 0
  24 +#define Blinker_STOP_CMD 1
  25 +
  26 +/* enum LedState */
  27 +typedef uint8_t Blinker_LedState;
  28 +#define Blinker_LED_OFF 0
  29 +#define Blinker_LED_ON 1
  30 +
  31 +/* -------- resource callback functions implemented by the application -------- */
  32 +
  33 +/* resource cmd */
  34 +typedef Blinker_Cmd Blinker_cmd_t;
  35 +extern void Blinker_cmd_store(Blinker_cmd_t* input);
  36 +
  37 +/* resource count */
  38 +typedef int16_t Blinker_count_t;
  39 +extern void Blinker_count_fetch(Blinker_count_t* output);
  40 +extern void Blinker_count_store(Blinker_count_t* input);
  41 +
  42 +/* resource delay */
  43 +typedef uint16_t Blinker_delay_t;
  44 +#define Blinker_delay_min 500
  45 +#define Blinker_delay_max 2000
  46 +#define Blinker_delay_step 100
  47 +#define Blinker_delay_scale 1000
  48 +extern void Blinker_delay_fetch(Blinker_delay_t* output);
  49 +extern void Blinker_delay_store(Blinker_delay_t* input);
  50 +
  51 +/* resource ledState */
  52 +typedef Blinker_LedState Blinker_ledState_t;
  53 +extern void Blinker_ledState_fetch(Blinker_ledState_t* output);
  54 +extern void Blinker_ledState_indicate(void); /* called by the application */
  55 +
  56 +/* -------- application functions implemented in Blinker.c -------- */
  57 +
  58 +void Blinker_accept(bool enable);
  59 +void Blinker_activateParameters(uint8_t group);
  60 +void Blinker_broadcastOff(void);
  61 +void Blinker_disconnect(void);
  62 +void Blinker_pairingOn(uint8_t secs, void(*handler)(void));
  63 +void Blinker_pairingOff(void(*handler)(void));
  64 +void Blinker_reset(void);
  65 +void Blinker_setDeviceName(const char* name);
  66 +void Blinker_start(void);
  67 +
  68 +#ifdef __cplusplus
  69 +}
  70 +#endif
  71 +
  72 +#endif /* Blinker__H */
... ...
Blinker-MSP-EXP430G2/Em/Em_Message.h 0 → 100644
  1 +#ifndef Em_Message_H_
  2 +#define Em_Message_H_
  3 +
  4 +#include "Em_Types.h"
  5 +
  6 +#ifdef __cplusplus
  7 +extern "C" {
  8 +#endif
  9 +
  10 +/* -------- SRT FUNCTIONS CALLED BY HAL -------- */
  11 +
  12 +static inline bool Em_Message_addByte(uint8_t b);
  13 +extern void Em_Message_dispatch(void);
  14 +static inline bool Em_Message_getByte(uint8_t* bp);
  15 +extern void Em_Message_restart(void);
  16 +static inline bool Em_Message_startRx(void);
  17 +static inline uint8_t Em_Message_startTx(void);
  18 +
  19 +
  20 +/* -------- HAL FUNCTIONS CALLED BY SRT -------- */
  21 +
  22 +extern uint8_t Em_Hal_lock(void);
  23 +extern void Em_Hal_reset(void);
  24 +extern void Em_Hal_startSend(void);
  25 +extern void Em_Hal_unlock(uint8_t key);
  26 +extern void Em_Hal_watchOff(void);
  27 +extern void Em_Hal_watchOn(void);
  28 +
  29 +
  30 +/* -------- MESSAGE FORMAT -------- */
  31 +
  32 +/* protocolLevel #4 */
  33 +#define Em_Message_INDSIZE 4
  34 +
  35 +typedef uint8_t Em_Message_Size;
  36 +typedef uint8_t Em_Message_Kind;
  37 +/* protocolLevel #12 -- split 16-bit resId into <resId, chan> */
  38 +typedef uint8_t Em_Message_ResId;
  39 +typedef uint8_t Em_Message_Chan;
  40 +
  41 +#define Em_Message_NOP 0
  42 +#define Em_Message_FETCH 1
  43 +#define Em_Message_FETCH_DONE 2
  44 +#define Em_Message_STORE 3
  45 +#define Em_Message_STORE_DONE 4
  46 +#define Em_Message_INDICATOR 5
  47 +#define Em_Message_CONNECT 6
  48 +#define Em_Message_DISCONNECT 7
  49 +#define Em_Message_ECHO 8
  50 +/* protocolLevel #3 */
  51 +/* protocolLevel #6 -- rename from BROADCAST to PAIRING */
  52 +#define Em_Message_PAIRING 9
  53 +#define Em_Message_PAIRING_DONE 10
  54 +/* protocolLevel #7 */
  55 +#define Em_Message_OFFLINE 11
  56 +/* protocolLevel #8 */
  57 +#define Em_Message_ACCEPT 12
  58 +/* protocolLevel #13 */
  59 +#define Em_Message_START 13
  60 +#define Em_Message_ACTIVE_PARAMS 14
  61 +
  62 +typedef struct Em_Message_Header {
  63 + Em_Message_Size size;
  64 + Em_Message_Kind kind;
  65 + Em_Message_ResId resId;
  66 + Em_Message_Chan chan;
  67 +} Em_Message_Header;
  68 +
  69 +typedef uint16_t Em_Message_protocolLevel_t;
  70 +
  71 +/* protocolLevel #1 */
  72 +
  73 +/* protocolLevel #10 */
  74 +/* #define Em_Message_SYS_SCHEMA_UUID 0xFF */
  75 +
  76 +#define Em_Message_SYS_MCM_PROTOCOL_LEVEL 0xFE
  77 +#define Em_Message_SYS_EAP_PROTOCOL_LEVEL 0xFD
  78 +#define Em_Message_SYS_EAP_BUILD_DATE 0xFC
  79 +
  80 +/* protocolLevel #2 */
  81 +#define Em_Message_SYS_FILE_INDEX_RESET 0xFB
  82 +
  83 +/* protocolLevel #5 */
  84 +#define Em_Message_SYS_SCHEMA_HASH 0xFA
  85 +
  86 +/* protocolLevel #7 */
  87 +#define Em_Message_SYS_RESOURCE_COUNT 0xF9
  88 +
  89 +/* protocolLevel #9 */
  90 +#define Em_Message_SYS_MOBILE_RSSI 0xF8
  91 +
  92 +/* protocolLevel #11 */
  93 +#define Em_Message_SYS_MCM_DISCONNECT 0xF7
  94 +
  95 +/* protocolLevel #13a */
  96 +#define Em_Message_SYS_MCM_NAME 0xF5
  97 +
  98 +
  99 +/* -------- PRIVATE -------- */
  100 +
  101 +extern void Em_Message_nextXmit(void);
  102 +
  103 +extern uint8_t* Em_App_inBuf;
  104 +extern uint8_t* Em_App_outBuf;
  105 +extern Em_Message_Size Em_App_xmitSize;
  106 +
  107 +extern uint8_t* _Em_Message_rxBuf;
  108 +extern uint8_t _Em_Message_rxCnt;
  109 +
  110 +extern uint8_t* _Em_Message_txBuf;
  111 +extern uint8_t _Em_Message_txCnt;
  112 +
  113 +static inline bool Em_Message_addByte(uint8_t b) {
  114 + if (_Em_Message_rxCnt == 0) {
  115 + if (b == 0) {
  116 + return false;
  117 + }
  118 + _Em_Message_rxCnt = b;
  119 + }
  120 + *_Em_Message_rxBuf++ = b;
  121 + if (--_Em_Message_rxCnt == 0) {
  122 + _Em_Message_rxBuf = 0;
  123 + if (_Em_Message_txBuf == 0) {
  124 + Em_Hal_watchOff();
  125 + }
  126 + return true;
  127 + }
  128 + else {
  129 + return false;
  130 + }
  131 +}
  132 +
  133 +static inline bool Em_Message_getByte(uint8_t* bp) {
  134 + if (_Em_Message_txBuf == 0) {
  135 + return false;
  136 + }
  137 + if (_Em_Message_txCnt == 0) {
  138 + _Em_Message_txCnt = *_Em_Message_txBuf + 1;
  139 + }
  140 + if (--_Em_Message_txCnt > 0) {
  141 + *bp = *_Em_Message_txBuf++;
  142 + return true;
  143 + }
  144 + else {
  145 + _Em_Message_txBuf = 0;
  146 + Em_App_xmitSize = 0;
  147 + Em_Message_nextXmit();
  148 + if (_Em_Message_rxBuf == 0) {
  149 + Em_Hal_watchOff();
  150 + }
  151 + return false;
  152 + }
  153 +}
  154 +
  155 +static inline bool Em_Message_startRx(void) {
  156 + if (_Em_Message_rxBuf == 0) {
  157 + _Em_Message_rxBuf = Em_App_inBuf;
  158 + if (_Em_Message_txBuf == 0) {
  159 + Em_Hal_watchOn();
  160 + }
  161 + return true;
  162 + }
  163 + else {
  164 + return false;
  165 + }
  166 +}
  167 +
  168 +static inline uint8_t Em_Message_startTx(void) {
  169 + _Em_Message_txBuf = Em_App_outBuf + 1;
  170 + _Em_Message_txCnt = 0;
  171 + if (_Em_Message_rxBuf == 0) {
  172 + Em_Hal_watchOn();
  173 + }
  174 + return 0;
  175 +}
  176 +
  177 +
  178 +#ifdef __cplusplus
  179 +}
  180 +#endif
  181 +
  182 +#endif /*Em_Message_H_*/
... ...
Blinker-MSP-EXP430G2/Em/Em_Types.h 0 → 100644
  1 +#ifndef Em_Types_H_
  2 +#define Em_Types_H_
  3 +
  4 +#ifndef Em_NOSTDBOOL
  5 +#include <stdbool.h>
  6 +#endif
  7 +
  8 +#ifndef Em_NOSTDINT
  9 +#include <stdint.h>
  10 +#endif
  11 +
  12 +#ifdef Em_16BIT
  13 +typedef signed char int8_t;
  14 +typedef unsigned char uint8_t;
  15 +#endif
  16 +
  17 +#endif /*Em_Types_H_*/
... ...
Blinker-MSP-EXP430G2/Em/blinker.json 0 → 100644
  1 +{
  2 + "resources": {
  3 + "$eapProtocolLevel": {
  4 + "id": -3,
  5 + "align": 2,
  6 + "attributes": {"readonly": true},
  7 + "type": "u2",
  8 + "access": "r",
  9 + "size": 2
  10 + },
  11 + "count": {
  12 + "id": 2,
  13 + "align": 2,
  14 + "attributes": {"readwrite": true},
  15 + "type": "i2",
  16 + "access": "rw",
  17 + "size": 2
  18 + },
  19 + "$activeGroup": {
  20 + "id": -10,
  21 + "align": 1,
  22 + "pack": 1,
  23 + "attributes": {"readwrite": true},
  24 + "type": "E:system@emmoco.com.System/ParameterGroup",
  25 + "access": "rw",
  26 + "size": 1
  27 + },
  28 + "$mcmDisconnect": {
  29 + "id": -9,
  30 + "align": 1,
  31 + "attributes": {"writeonly": true},
  32 + "type": "u1",
  33 + "access": "w",
  34 + "size": 1
  35 + },
  36 + "$eapBuildDate": {
  37 + "dim": 8,
  38 + "id": -4,
  39 + "align": 1,
  40 + "attributes": {"readonly": true},
  41 + "type": "A8:u1",
  42 + "access": "r",
  43 + "size": 8
  44 + },
  45 + "ledState": {
  46 + "id": 4,
  47 + "align": 1,
  48 + "pack": 1,
  49 + "attributes": {"indicator": true},
  50 + "type": "E:@emmoco.com.Blinker/LedState",
  51 + "access": "ir",
  52 + "size": 1
  53 + },
  54 + "$resourceCount": {
  55 + "id": -7,
  56 + "align": 1,
  57 + "attributes": {"readonly": true},
  58 + "type": "S:system@emmoco.com.System/ResourceCount",
  59 + "access": "r",
  60 + "size": 2
  61 + },
  62 + "$schemaHash": {
  63 + "dim": 20,
  64 + "id": -6,
  65 + "align": 1,
  66 + "attributes": {"readonly": true},
  67 + "type": "A20:u1",
  68 + "access": "r",
  69 + "size": 20
  70 + },
  71 + "cmd": {
  72 + "id": 1,
  73 + "align": 1,
  74 + "pack": 1,
  75 + "attributes": {"writeonly": true},
  76 + "type": "E:@emmoco.com.Blinker/Cmd",
  77 + "access": "w",
  78 + "size": 1
  79 + },
  80 + "$mcmProtocolLevel": {
  81 + "id": -2,
  82 + "align": 2,
  83 + "attributes": {"readonly": true},
  84 + "type": "u2",
  85 + "access": "r",
  86 + "size": 2
  87 + },
  88 + "$mobileRssi": {
  89 + "id": -8,
  90 + "align": 1,
  91 + "attributes": {"readonly": true},
  92 + "type": "i1",
  93 + "access": "r",
  94 + "size": 1
  95 + },
  96 + "delay": {
  97 + "id": 3,
  98 + "align": 2,
  99 + "pack": 4,
  100 + "attributes": {"readwrite": true},
  101 + "type": "N:0.500000,2.000000,0.100000,3/u2/15",
  102 + "access": "rw",
  103 + "size": 2
  104 + },
  105 + "$fileIndexReset": {
  106 + "id": -5,
  107 + "align": 2,
  108 + "attributes": {"writeonly": true},
  109 + "type": "i2",
  110 + "access": "w",
  111 + "size": 2
  112 + }
  113 + },
  114 + "resourceNamesSys": [
  115 + "$activeGroup",
  116 + "$eapBuildDate",
  117 + "$eapProtocolLevel",
  118 + "$fileIndexReset",
  119 + "$mcmDisconnect",
  120 + "$mcmProtocolLevel",
  121 + "$mobileRssi",
  122 + "$resourceCount",
  123 + "$schemaHash"
  124 + ],
  125 + "manifest": {
  126 + "protocolLevel": 13,
  127 + "hash": [
  128 + 100,
  129 + 133,
  130 + 204,
  131 + 118,
  132 + 171,
  133 + 105,
  134 + 196,
  135 + 176,
  136 + 165,
  137 + 61,
  138 + 177,
  139 + 160,
  140 + 190,
  141 + 191,
  142 + 194,
  143 + 241
  144 + ],
  145 + "toolVersion": "13.4.1.201311121909",
  146 + "name": "Blinker",
  147 + "$$md5": "6485cc76ab69c4b0a53db1a0bebfc2f1",
  148 + "build": [
  149 + 71,
  150 + 133,
  151 + 240,
  152 + 134,
  153 + 71,
  154 + 1,
  155 + 0,
  156 + 0
  157 + ],
  158 + "date": "2014-07-30T13:03:35T",
  159 + "maxAlign": 2,
  160 + "maxSize": 20,
  161 + "version": "1.0.0"
  162 + },
  163 + "resourceNames": [
  164 + "cmd",
  165 + "count",
  166 + "delay",
  167 + "ledState",
  168 + "$mcmProtocolLevel",
  169 + "$eapProtocolLevel",
  170 + "$eapBuildDate",
  171 + "$fileIndexReset",
  172 + "$schemaHash",
  173 + "$resourceCount",
  174 + "$mobileRssi",
  175 + "$mcmDisconnect",
  176 + "$activeGroup"
  177 + ],
  178 + "attributes": {
  179 + "description": "Blinker, the hello world program for mobile control",
  180 + "version": "1.0.0"
  181 + },
  182 + "resourceNamesApp": [
  183 + "cmd",
  184 + "count",
  185 + "delay",
  186 + "ledState"
  187 + ],
  188 + "types": {
  189 + "@emmoco.com.Blinker/LedState": {
  190 + "values": [
  191 + "LED_OFF",
  192 + "LED_ON"
  193 + ],
  194 + "align": 1,
  195 + "pack": 1,
  196 + "type": "E:@emmoco.com.Blinker/LedState",
  197 + "size": 1
  198 + },
  199 + "system@emmoco.com.System/ResourceCount": {
  200 + "packed": false,
  201 + "align": 1,
  202 + "type": "S:system@emmoco.com.System/ResourceCount",
  203 + "size": 2,
  204 + "fields": [
  205 + {
  206 + "pad": 0,
  207 + "align": 1,
  208 + "name": "app",
  209 + "type": "u1",
  210 + "size": 1
  211 + },
  212 + {
  213 + "pad": 0,
  214 + "align": 1,
  215 + "name": "sys",
  216 + "type": "u1",
  217 + "size": 1
  218 + }
  219 + ]
  220 + },
  221 + "std:i2": {
  222 + "align": 2,
  223 + "size": 2
  224 + },
  225 + "std:i1": {
  226 + "align": 1,
  227 + "size": 1
  228 + },
  229 + "std:u1": {
  230 + "align": 1,
  231 + "size": 1
  232 + },
  233 + "system@emmoco.com.System/ParameterGroup": {
  234 + "values": [
  235 + "GROUP_A",
  236 + "GROUP_B"
  237 + ],
  238 + "align": 1,
  239 + "pack": 1,
  240 + "type": "E:system@emmoco.com.System/ParameterGroup",
  241 + "size": 1
  242 + },
  243 + "@emmoco.com.Blinker/Cmd": {
  244 + "values": [
  245 + "START_CMD",
  246 + "STOP_CMD"
  247 + ],
  248 + "align": 1,
  249 + "pack": 1,
  250 + "type": "E:@emmoco.com.Blinker/Cmd",
  251 + "size": 1
  252 + },
  253 + "std:u2": {
  254 + "align": 2,
  255 + "size": 2
  256 + }
  257 + },
  258 + "imports": {"@emmoco.com.Blinker": true}
  259 +}
0 260 \ No newline at end of file
... ...
Blinker-MSP-EXP430G2/Output/Blinker-Prog.hex 0 → 100644
  1 +:10C000005542200135D0085A824562023140000471
  2 +:10C010003F4006000F9308249242620220012F83C2
  3 +:10C020009F4FA4C80002F8233F405C000F930724F1
  4 +:10C030009242620220011F83CF430602F923B0120D
  5 +:10C04000F2C43E4060C03F406400B01224C6B0124B
  6 +:10C0500046C1B012C2C532D0F000FD3F30405CC8CE
  7 +:10C06000D293060215241F4208021F9200021128D3
  8 +:10C070001F4202023F9306240E4F3E53824E02029D
  9 +:10C080001F930C38B0121CC682430802B012C8C4F9
  10 +:10C0900030413F506400824F08023041D2430602D3
  11 +:10C0A000B01202C6F13FB012E4C43041B012EAC48B
  12 +:10C0B00030416F4FC24F06024F930A201F420A02BF
  13 +:10C0C0001F930C380F5F824F0202824308023041F7
  14 +:10C0D0005F9301243041B01202C630413F43F33F29
  15 +:10C0E0009F420A0200003041A24F0A0230419F42A3
  16 +:10C0F000000200003041A24F000230410B120B4FF2
  17 +:10C10000B0120AC6CB4F00003B413041B01252C6BC
  18 +:10C110008243100282431402C2430E02C24312023F
  19 +:10C12000C2432D02C2435E02C2433C02C2432C0200
  20 +:10C13000C243200282431C0282431E028243180231
  21 +:10C1400082431A023041B0120CC1D2432002304166
  22 +:10C15000B01246C13041B240330216025F4234028F
  23 +:10C160005F53C24F2D02C2435E02B012A8C63041D7
  24 +:10C17000B240410216025F4242025F53C24F2D029B
  25 +:10C18000C2435E02B012A8C630410B120A12091255
  26 +:10C190000812484FB01248C6494F1A4218021B42B3
  27 +:10C1A0001A028293100224241E434F487FF00F008E
  28 +:10C1B00018200C4E8E108E118E108E110D4E0E4AC0
  29 +:10C1C0000F4B0EDC0FDD824E1802824F1A024A43DB
  30 +:10C1D0004F49B012DAC64F4A384139413A413B41E2
  31 +:10C1E00030410E5E7F53E5270E5E7F53FA23E13F19
  32 +:10C1F0000A93DA230B93D8235A43EA3FC2932002CF
  33 +:10C2000001203041C2434102C24F43026E52C24E2E
  34 +:10C2100042024F43B0128AC14F93F327B01270C14C
  35 +:10C220003041F290FBFF4402042082431C0282430F
  36 +:10C230001E024E436F42B012FCC130415F424402C5
  37 +:10C240007F500B007F90090005284E436F43B012CA
  38 +:10C25000FCC130414F4F0F5F104F5EC81C420C02B3
  39 +:10C260000C93F3273F4046020E430D4C0D5E6D4D7F
  40 +:10C27000CF4D00004D9340241E531F533E900900A4
  41 +:10C28000F4234E4E6F43B012FCC13041E2424602ED
  42 +:10C29000F240090047026E436F43B012FCC13041C7
  43 +:10C2A0003F4090C83E404602FE4F00001E533F9064
  44 +:10C2B000A3C8FA23D24286C859027E4014006F43B5
  45 +:10C2C000B012FCC130413F4088C83E404602FE4F9C
  46 +:10C2D00000001E533F9090C8FA237E426F43B01275
  47 +:10C2E000FCC13041F2400D004602C24347026E439A
  48 +:10C2F0006F43B012FCC130413E523E503E02CE432D
  49 +:10C3000000001E533E904F02FA237E4009006F4307
  50 +:10C31000B012FCC130415F4244027F9003001B24F5
  51 +:10C320006F9210246F9305244E436F43B012FCC1EB
  52 +:10C3300030413F404602B012E0C06E436F43B0123E
  53 +:10C34000FCC130413F404602B012FCC05E436F4327
  54 +:10C35000B012FCC130413F404602B012EEC06E4305
  55 +:10C360006F43B012FCC130415F4244026F931C2402
  56 +:10C370007F90030010245F9305244E436F42B01258
  57 +:10C38000FCC130413F404602B012B2C04E436F4242
  58 +:10C39000B012FCC130413F404602B012F6C04E43DD
  59 +:10C3A0006F42B012FCC130413F404602B012E8C0BB
  60 +:10C3B0004E436F42B012FCC13041C29320020424AC
  61 +:10C3C000F2900B004302012830415F4243020F5FAD
  62 +:10C3D000104F70C81F425A020F93F6278F12304138
  63 +:10C3E000E2432002B012ACC03041F2400300200210
  64 +:10C3F000B012A6C03041C29344020938B01268C3DB
  65 +:10C400003041C29344020638B01216C33041B01214
  66 +:10C4100022C23041B0123CC230415F930E246E42C2
  67 +:10C420004F43C2433302F24005003502C24E34028C
  68 +:10C43000C24F3602B01256C130413F403802B012EE
  69 +:10C44000FCC07E4005006F42EC3F0B12B01248C6A4
  70 +:10C450004B4F1E4218021F421A020E9307200F93E1
  71 +:10C4600005204F4BB012DAC63B4130410C4E0D4F08
  72 +:10C470001CF30DF30C930C240C4E0D4F3CF0FEFFFF
  73 +:10C480003DF3824C1802824D1A02B01270C1E93F8E
  74 +:10C490000D93F2230C4E0D4F2CF30DF30C930D2442
  75 +:10C4A0000C4E0D4F3CF0FDFF3DF3824C1802824DC7
  76 +:10C4B0001A024F43B0121AC4D43F0D93F1234F4BCD
  77 +:10C4C000B012DAC63B413041F29003002002012451
  78 +:10C4D00030416F43B0128AC14F93FA275F43B012C5
  79 +:10C4E0001AC43041D2D321003041F2F0FEFF2100C6
  80 +:10C4F0003041B240805A2001C24358005F42FF10D1
  81 +:10C500007F930824C2435600D242FF105700D24204
  82 +:10C51000FE105600F2D080FF5700F2402400530076
  83 +:10C52000F2D040002200F2F0BFFF2100D2D322005F
  84 +:10C53000F2F0FEFF2100F2D22A00F2F0F7FF29000C
  85 +:10C54000F2D010002A00F2F0EFFF2900F2D2290009
  86 +:10C55000F2F0F7FF2900B240200180011F42900154
  87 +:10C560003F50B80B824F9401B24010008401D2D3E7
  88 +:10C570006100E2D32600E2D34100E2D22600E2D2FB
  89 +:10C580004100D2D32A00D2D32900F2F0FDFF2A00C5
  90 +:10C59000E2D32C00F2F0FDFF2B00E2D32D00F2F0ED
  91 +:10C5A000FEFF2900F24081FF6100F2400C006400B0
  92 +:10C5B000F2426200F2F0FEFF6100B240BAC328020C
  93 +:10C5C00030410B120A12091232D232C2034319420D
  94 +:10C5D0002202824322020993032032D0D800F53F81
  95 +:10C5E00032D23A4024021B430F4B0FF904242F4A46
  96 +:10C5F0000F9301248F120B5B2A533A902A02F423E3
  97 +:10C60000E43FF2F0BFFF210030415E4221003EF0E6
  98 +:10C6100040005F430E9301204F433041F2E0400061
  99 +:10C6200021003041824E26020E4F0E5E0F5E0F5FDC
  100 +:10C630000F5F824F2A021E4290010E5F824E9201CE
  101 +:10C64000B2401000820130410F4232C203437FF2F8
  102 +:10C6500030410D427DF232C20343F2F0FEFF290069
  103 +:10C660003E4064003F404C011F83FE2303430343CD
  104 +:10C670003E53F823D2D329003E40F4013F404C0101
  105 +:10C680001F83FE23034303433E53F823F2F0FEFFD0
  106 +:10C690000300F2F0FDFF0300F2F0FDFF2B00D2D308
  107 +:10C6A00001004F4D02DF30411F4216021F53824FDF
  108 +:10C6B0001002C2430E02829314020324C243670095
  109 +:10C6C00030411F4290013F50B80B824F9401B2405D
  110 +:10C6D00010008401C243670030414F4F02DF3041F8
  111 +:10C6E0000F120E120E4232C2034392D322024F4E59
  112 +:10C6F0007FF24F4F02DFF2F0F7FF2300F2D2250066
  113 +:10C70000B1C0D00004003E413F4100130F120E1291
  114 +:10C710005E426600829314023324F2F0FEFF290089
  115 +:10C72000D2D32900C29312020A204E930620B1C030
  116 +:10C73000D00004003E413F410013C24E12021F428E
  117 +:10C740001402CF4E00001F53824F14025F421202A8
  118 +:10C750007F53C24F1202EB238243140282931002D2
  119 +:10C760001F240E4232C20343A2D222024F4E7FF256
  120 +:10C770004F4F02DFB1C0D00004003E413F410013E3
  121 +:10C7800092420402140282931002C7231F429001B6
  122 +:10C790003F50B80B824F9401B24010008401BD3F5E
  123 +:10C7A00082438401DE3F0F120E1292522A0292013E
  124 +:10C7B0000E4232C20343A2D322024F4E7FF24F4FAA
  125 +:10C7C00002DFB1C0D00004003E413F4100130F1210
  126 +:10C7D0000E120D120C125F422B002FF317241F4272
  127 +:10C7E00010020F9310245E420E024E9302206E4FF1
  128 +:10C7F0005E537E53C24E0E0211246E4F1F53824F62
  129 +:10C800001002C24E6700F2F0FDFF2B00B1C0D00055
  130 +:10C8100008003C413D413E413F410013824310022C
  131 +:10C82000C2432D02B0124AC482931402EC23824305
  132 +:10C830008401E93F0F120E120D120C121F421E014D
  133 +:10C840002F93072082438401B01250C1B1C0D000A1
  134 +:0EC8500008003C413D413E413F4100130013B2
  135 +:10C85E005CC24AC24AC24AC28CC2A0C24AC2C6C244
  136 +:10C86E00E4C2C8C302C4C8C3F6C3C8C3C8C3EAC3BC
  137 +:10C87E00E0C3C8C3C8C3D4C300014785F0864701CF
  138 +:10C88E0000006485CC76AB69C4B0A53DB1A0BEBF37
  139 +:06C89E00C2F10D001100C3
  140 +:06C8A400B004FFFF420298
  141 +:02C8AA0000008C
  142 +:10FFE0005CC05CC0E0C6CEC75CC05CC05CC00CC777
  143 +:10FFF0005CC05CC05CC05CC034C8A6C75CC000C04C
  144 +:040000030000C00039
  145 +:00000001FF
... ...
Blinker-MSP-EXP430G2/Output/Blinker-Prog.map 0 → 100644
  1 +Archive member included because of file (symbol)
  2 +
  3 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  4 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o (_reset_vector__)
  5 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  6 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__watchdog_support)
  7 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  8 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__init_stack)
  9 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  10 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__low_level_init)
  11 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  12 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__do_copy_data)
  13 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  14 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__do_clear_bss)
  15 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  16 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__stop_progExec__)
  17 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  18 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (_endless_loop__)
  19 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  20 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o (_unexpected_)
  21 +
  22 +Allocating common symbols
  23 +Common symbol size file
  24 +
  25 +Em_App_recvIdx 0x1 Output/Blinker.obj
  26 +Em_App_xmitSize 0x1 Output/Blinker.obj
  27 +Em_App_valp 0x2 Output/Blinker.obj
  28 +Em_App_ind_u 0xc Output/Blinker.obj
  29 +Em_App_recvSize 0x1 Output/Blinker.obj
  30 +Em_App_msg_u 0x1c Output/Blinker.obj
  31 +Em_App_pdHdlr 0x2 Output/Blinker.obj
  32 +Em_App_bufp 0x2 Output/Blinker.obj
  33 +Em_App_xmitIdx 0x1 Output/Blinker.obj
  34 +Em_App_desc 0x2 Output/Blinker.obj
  35 +
  36 +Discarded input sections
  37 +
  38 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  39 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  40 + .text.crt0 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  41 + .text 0x0000000000000000 0x0 Output/Blinker-Prog.obj
  42 + .data 0x0000000000000000 0x0 Output/Blinker-Prog.obj
  43 + .bss 0x0000000000000000 0x0 Output/Blinker-Prog.obj
  44 + .text 0x0000000000000000 0x0 Output/Blinker.obj
  45 + .data 0x0000000000000000 0x0 Output/Blinker.obj
  46 + .bss 0x0000000000000000 0x0 Output/Blinker.obj
  47 + .text.Em_App_marshallToBuf
  48 + 0x0000000000000000 0xd4 Output/Blinker.obj
  49 + .text.Em_App_marshallToVal
  50 + 0x0000000000000000 0x11a Output/Blinker.obj
  51 + .text.Blinker_setDeviceName
  52 + 0x0000000000000000 0x6 Output/Blinker.obj
  53 + .text.Blinker_pairingOn
  54 + 0x0000000000000000 0x24 Output/Blinker.obj
  55 + .text.Blinker_pairingOff
  56 + 0x0000000000000000 0xa Output/Blinker.obj
  57 + .text.Blinker_disconnect
  58 + 0x0000000000000000 0x26 Output/Blinker.obj
  59 + .text.Blinker_broadcastOff
  60 + 0x0000000000000000 0x1c Output/Blinker.obj
  61 + .text.Blinker_activateParameters
  62 + 0x0000000000000000 0x1e Output/Blinker.obj
  63 + .text.Blinker_accept
  64 + 0x0000000000000000 0x20 Output/Blinker.obj
  65 + .text 0x0000000000000000 0x0 Output/Hal.obj
  66 + .data 0x0000000000000000 0x0 Output/Hal.obj
  67 + .bss 0x0000000000000000 0x0 Output/Hal.obj
  68 + .text.buttonHandler
  69 + 0x0000000000000000 0x28 Output/Hal.obj
  70 + .text.Hal_buttonEnable
  71 + 0x0000000000000000 0x3c Output/Hal.obj
  72 + .text.Hal_debugOn
  73 + 0x0000000000000000 0x18 Output/Hal.obj
  74 + .text.Hal_debugOff
  75 + 0x0000000000000000 0x1a Output/Hal.obj
  76 + .text.Hal_debugPulse
  77 + 0x0000000000000000 0x24 Output/Hal.obj
  78 + .text.Hal_delay
  79 + 0x0000000000000000 0x16 Output/Hal.obj
  80 + .text.Hal_ledOn
  81 + 0x0000000000000000 0x8 Output/Hal.obj
  82 + .text.Em_Hal_watchOff
  83 + 0x0000000000000000 0x6 Output/Hal.obj
  84 + .text.Em_Hal_watchOn
  85 + 0x0000000000000000 0x14 Output/Hal.obj
  86 + .bss.appButtonHandler
  87 + 0x0000000000000000 0x2 Output/Hal.obj
  88 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  89 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  90 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  91 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  92 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  93 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  94 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  95 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  96 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  97 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  98 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  99 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  100 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  101 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  102 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  103 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  104 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  105 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  106 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  107 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  108 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  109 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  110 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  111 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  112 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  113 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  114 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  115 +
  116 +Memory Configuration
  117 +
  118 +Name Origin Length Attributes
  119 +sfr 0x0000000000000000 0x0000000000000010
  120 +peripheral_8bit 0x0000000000000010 0x00000000000000f0
  121 +peripheral_16bit 0x0000000000000100 0x0000000000000100
  122 +ram 0x0000000000000200 0x0000000000000200 xw
  123 +infomem 0x0000000000001000 0x0000000000000100
  124 +infod 0x0000000000001000 0x0000000000000040
  125 +infoc 0x0000000000001040 0x0000000000000040
  126 +infob 0x0000000000001080 0x0000000000000040
  127 +infoa 0x00000000000010c0 0x0000000000000040
  128 +rom 0x000000000000c000 0x0000000000003fe0 xr
  129 +vectors 0x000000000000ffe0 0x0000000000000020
  130 +bsl 0x0000000000000000 0x0000000000000000
  131 +far_rom 0x0000000000000000 0x0000000000000000
  132 +*default* 0x0000000000000000 0xffffffffffffffff
  133 +
  134 +Linker script and memory map
  135 +
  136 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  137 +LOAD Output/Blinker-Prog.obj
  138 +LOAD Output/Blinker.obj
  139 +LOAD Output/Hal.obj
  140 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libgcc.a
  141 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a
  142 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libgcc.a
  143 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a
  144 + 0x0000000000000040 PROVIDE (__info_segment_size, 0x40)
  145 + 0x0000000000001000 PROVIDE (__infod, 0x1000)
  146 + 0x0000000000001040 PROVIDE (__infoc, 0x1040)
  147 + 0x0000000000001080 PROVIDE (__infob, 0x1080)
  148 + 0x00000000000010c0 PROVIDE (__infoa, 0x10c0)
  149 + 0x0000000000000000 __IE1 = 0x0
  150 + 0x0000000000000002 __IFG1 = 0x2
  151 + 0x0000000000000001 __IE2 = 0x1
  152 + 0x0000000000000003 __IFG2 = 0x3
  153 + 0x0000000000000048 __ADC10DTC0 = 0x48
  154 + 0x0000000000000049 __ADC10DTC1 = 0x49
  155 + 0x000000000000004a __ADC10AE0 = 0x4a
  156 + 0x00000000000001b0 __ADC10CTL0 = 0x1b0
  157 + 0x00000000000001b2 __ADC10CTL1 = 0x1b2
  158 + 0x00000000000001b4 __ADC10MEM = 0x1b4
  159 + 0x00000000000001bc __ADC10SA = 0x1bc
  160 + 0x0000000000000056 __DCOCTL = 0x56
  161 + 0x0000000000000057 __BCSCTL1 = 0x57
  162 + 0x0000000000000058 __BCSCTL2 = 0x58
  163 + 0x0000000000000053 __BCSCTL3 = 0x53
  164 + 0x0000000000000059 __CACTL1 = 0x59
  165 + 0x000000000000005a __CACTL2 = 0x5a
  166 + 0x000000000000005b __CAPD = 0x5b
  167 + 0x0000000000000128 __FCTL1 = 0x128
  168 + 0x000000000000012a __FCTL2 = 0x12a
  169 + 0x000000000000012c __FCTL3 = 0x12c
  170 + 0x0000000000000020 __P1IN = 0x20
  171 + 0x0000000000000021 __P1OUT = 0x21
  172 + 0x0000000000000022 __P1DIR = 0x22
  173 + 0x0000000000000023 __P1IFG = 0x23
  174 + 0x0000000000000024 __P1IES = 0x24
  175 + 0x0000000000000025 __P1IE = 0x25
  176 + 0x0000000000000026 __P1SEL = 0x26
  177 + 0x0000000000000041 __P1SEL2 = 0x41
  178 + 0x0000000000000027 __P1REN = 0x27
  179 + 0x0000000000000028 __P2IN = 0x28
  180 + 0x0000000000000029 __P2OUT = 0x29
  181 + 0x000000000000002a __P2DIR = 0x2a
  182 + 0x000000000000002b __P2IFG = 0x2b
  183 + 0x000000000000002c __P2IES = 0x2c
  184 + 0x000000000000002d __P2IE = 0x2d
  185 + 0x000000000000002e __P2SEL = 0x2e
  186 + 0x0000000000000042 __P2SEL2 = 0x42
  187 + 0x000000000000002f __P2REN = 0x2f
  188 + 0x0000000000000018 __P3IN = 0x18
  189 + 0x0000000000000019 __P3OUT = 0x19
  190 + 0x000000000000001a __P3DIR = 0x1a
  191 + 0x000000000000001b __P3SEL = 0x1b
  192 + 0x0000000000000043 __P3SEL2 = 0x43
  193 + 0x0000000000000010 __P3REN = 0x10
  194 + 0x000000000000012e __TA0IV = 0x12e
  195 + 0x0000000000000160 __TA0CTL = 0x160
  196 + 0x0000000000000162 __TA0CCTL0 = 0x162
  197 + 0x0000000000000164 __TA0CCTL1 = 0x164
  198 + 0x0000000000000166 __TA0CCTL2 = 0x166
  199 + 0x0000000000000170 __TA0R = 0x170
  200 + 0x0000000000000172 __TA0CCR0 = 0x172
  201 + 0x0000000000000174 __TA0CCR1 = 0x174
  202 + 0x0000000000000176 __TA0CCR2 = 0x176
  203 + 0x000000000000011e __TA1IV = 0x11e
  204 + 0x0000000000000180 __TA1CTL = 0x180
  205 + 0x0000000000000182 __TA1CCTL0 = 0x182
  206 + 0x0000000000000184 __TA1CCTL1 = 0x184
  207 + 0x0000000000000186 __TA1CCTL2 = 0x186
  208 + 0x0000000000000190 __TA1R = 0x190
  209 + 0x0000000000000192 __TA1CCR0 = 0x192
  210 + 0x0000000000000194 __TA1CCR1 = 0x194
  211 + 0x0000000000000196 __TA1CCR2 = 0x196
  212 + 0x0000000000000060 __UCA0CTL0 = 0x60
  213 + 0x0000000000000061 __UCA0CTL1 = 0x61
  214 + 0x0000000000000062 __UCA0BR0 = 0x62
  215 + 0x0000000000000063 __UCA0BR1 = 0x63
  216 + 0x0000000000000064 __UCA0MCTL = 0x64
  217 + 0x0000000000000065 __UCA0STAT = 0x65
  218 + 0x0000000000000066 __UCA0RXBUF = 0x66
  219 + 0x0000000000000067 __UCA0TXBUF = 0x67
  220 + 0x000000000000005d __UCA0ABCTL = 0x5d
  221 + 0x000000000000005e __UCA0IRTCTL = 0x5e
  222 + 0x000000000000005f __UCA0IRRCTL = 0x5f
  223 + 0x0000000000000068 __UCB0CTL0 = 0x68
  224 + 0x0000000000000069 __UCB0CTL1 = 0x69
  225 + 0x000000000000006a __UCB0BR0 = 0x6a
  226 + 0x000000000000006b __UCB0BR1 = 0x6b
  227 + 0x000000000000006c __UCB0I2CIE = 0x6c
  228 + 0x000000000000006d __UCB0STAT = 0x6d
  229 + 0x000000000000006e __UCB0RXBUF = 0x6e
  230 + 0x000000000000006f __UCB0TXBUF = 0x6f
  231 + 0x0000000000000118 __UCB0I2COA = 0x118
  232 + 0x000000000000011a __UCB0I2CSA = 0x11a
  233 + 0x0000000000000120 __WDTCTL = 0x120
  234 + 0x00000000000010f8 __CALDCO_16MHZ = 0x10f8
  235 + 0x00000000000010f9 __CALBC1_16MHZ = 0x10f9
  236 + 0x00000000000010fa __CALDCO_12MHZ = 0x10fa
  237 + 0x00000000000010fb __CALBC1_12MHZ = 0x10fb
  238 + 0x00000000000010fc __CALDCO_8MHZ = 0x10fc
  239 + 0x00000000000010fd __CALBC1_8MHZ = 0x10fd
  240 + 0x00000000000010fe __CALDCO_1MHZ = 0x10fe
  241 + 0x00000000000010ff __CALBC1_1MHZ = 0x10ff
  242 +
  243 +.hash
  244 + *(.hash)
  245 +
  246 +.dynsym
  247 + *(.dynsym)
  248 +
  249 +.dynstr
  250 + *(.dynstr)
  251 +
  252 +.gnu.version
  253 + *(.gnu.version)
  254 +
  255 +.gnu.version_d
  256 + *(.gnu.version_d)
  257 +
  258 +.gnu.version_r
  259 + *(.gnu.version_r)
  260 +
  261 +.rel.init
  262 + *(.rel.init)
  263 +
  264 +.rela.init
  265 + *(.rela.init)
  266 +
  267 +.rel.fini
  268 + *(.rel.fini)
  269 +
  270 +.rela.fini
  271 + *(.rela.fini)
  272 +
  273 +.rel.text
  274 + *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
  275 +
  276 +.rela.text
  277 + *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  278 +
  279 +.rel.rodata
  280 + *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
  281 +
  282 +.rela.rodata
  283 + *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  284 +
  285 +.rel.data
  286 + *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
  287 +
  288 +.rela.data
  289 + *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  290 +
  291 +.rel.bss
  292 + *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
  293 +
  294 +.rela.bss
  295 + *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  296 +
  297 +.rel.ctors
  298 + *(.rel.ctors)
  299 +
  300 +.rela.ctors
  301 + *(.rela.ctors)
  302 +
  303 +.rel.dtors
  304 + *(.rel.dtors)
  305 +
  306 +.rela.dtors
  307 + *(.rela.dtors)
  308 +
  309 +.rel.got
  310 + *(.rel.got)
  311 +
  312 +.rela.got
  313 + *(.rela.got)
  314 +
  315 +.rel.plt
  316 + *(.rel.plt)
  317 +
  318 +.rela.plt
  319 + *(.rela.plt)
  320 +
  321 +.text 0x000000000000c000 0x85e
  322 + 0x000000000000c000 . = ALIGN (0x2)
  323 + *(.init .init.*)
  324 + *(.init0)
  325 + .init0 0x000000000000c000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  326 + 0x000000000000c000 _reset_vector__
  327 + *(.init1)
  328 + .init1 0x000000000000c000 0xc /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  329 + 0x000000000000c000 __watchdog_support
  330 + *(.init2)
  331 + .init2 0x000000000000c00c 0x4 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  332 + 0x000000000000c00c __init_stack
  333 + *(.init3)
  334 + .init3 0x000000000000c010 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  335 + 0x000000000000c010 __low_level_init
  336 + *(.init4)
  337 + .init4 0x000000000000c010 0x18 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  338 + 0x000000000000c010 __do_copy_data
  339 + .init4 0x000000000000c028 0x16 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  340 + 0x000000000000c028 __do_clear_bss
  341 + *(.init5)
  342 + *(.init6)
  343 + *(.init7)
  344 + *(.init8)
  345 + *(.init9)
  346 + .init9 0x000000000000c03e 0x18 Output/Blinker-Prog.obj
  347 + 0x000000000000c03e main
  348 + *(.fini9)
  349 + .fini9 0x000000000000c056 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  350 + 0x000000000000c056 __stop_progExec__
  351 + *(.fini8)
  352 + *(.fini7)
  353 + *(.fini6)
  354 + *(.fini5)
  355 + *(.fini4)
  356 + *(.fini3)
  357 + *(.fini2)
  358 + *(.fini1)
  359 + *(.fini0)
  360 + .fini0 0x000000000000c056 0x6 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  361 + 0x000000000000c056 _endless_loop__
  362 + *(.fini .fini.*)
  363 + 0x000000000000c05c . = ALIGN (0x2)
  364 + 0x000000000000c05c __ctors_start = .
  365 + *(.ctors)
  366 + 0x000000000000c05c __ctors_end = .
  367 + 0x000000000000c05c __dtors_start = .
  368 + *(.dtors)
  369 + 0x000000000000c05c __dtors_end = .
  370 + 0x000000000000c05c . = ALIGN (0x2)
  371 + *(.text .text.* .gnu.linkonce.t.*)
  372 + .text 0x000000000000c05c 0x4 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  373 + 0x000000000000c05c __isr_1
  374 + 0x000000000000c05c __isr_4
  375 + 0x000000000000c05c __isr_11
  376 + 0x000000000000c05c __isr_5
  377 + 0x000000000000c05c __isr_10
  378 + 0x000000000000c05c __isr_0
  379 + 0x000000000000c05c __isr_8
  380 + 0x000000000000c05c __isr_9
  381 + 0x000000000000c05c __isr_6
  382 + 0x000000000000c05c __isr_14
  383 + .text.tickHandler
  384 + 0x000000000000c060 0x46 Output/Blinker-Prog.obj
  385 + .text.Blinker_connectHandler
  386 + 0x000000000000c0a6 0x6 Output/Blinker-Prog.obj
  387 + 0x000000000000c0a6 Blinker_connectHandler
  388 + .text.Blinker_disconnectHandler
  389 + 0x000000000000c0ac 0x6 Output/Blinker-Prog.obj
  390 + 0x000000000000c0ac Blinker_disconnectHandler
  391 + .text.Blinker_cmd_store
  392 + 0x000000000000c0b2 0x2e Output/Blinker-Prog.obj
  393 + 0x000000000000c0b2 Blinker_cmd_store
  394 + .text.Blinker_count_fetch
  395 + 0x000000000000c0e0 0x8 Output/Blinker-Prog.obj
  396 + 0x000000000000c0e0 Blinker_count_fetch
  397 + .text.Blinker_count_store
  398 + 0x000000000000c0e8 0x6 Output/Blinker-Prog.obj
  399 + 0x000000000000c0e8 Blinker_count_store
  400 + .text.Blinker_delay_fetch
  401 + 0x000000000000c0ee 0x8 Output/Blinker-Prog.obj
  402 + 0x000000000000c0ee Blinker_delay_fetch
  403 + .text.Blinker_delay_store
  404 + 0x000000000000c0f6 0x6 Output/Blinker-Prog.obj
  405 + 0x000000000000c0f6 Blinker_delay_store
  406 + .text.Blinker_ledState_fetch
  407 + 0x000000000000c0fc 0x10 Output/Blinker-Prog.obj
  408 + 0x000000000000c0fc Blinker_ledState_fetch
  409 + .text.Blinker_reset
  410 + 0x000000000000c10c 0x3a Output/Blinker.obj
  411 + 0x000000000000c10c Blinker_reset
  412 + .text.Blinker_start
  413 + 0x000000000000c146 0xa Output/Blinker.obj
  414 + 0x000000000000c146 Blinker_start
  415 + .text.Em_Message_restart
  416 + 0x000000000000c150 0x6 Output/Blinker.obj
  417 + 0x000000000000c150 Em_Message_restart
  418 + .text.Em_App_startIndSend
  419 + 0x000000000000c156 0x1a Output/Blinker.obj
  420 + 0x000000000000c156 Em_App_startIndSend
  421 + .text.Em_App_startResSend
  422 + 0x000000000000c170 0x1a Output/Blinker.obj
  423 + 0x000000000000c170 Em_App_startResSend
  424 + .text.Em_App_xmitReady
  425 + 0x000000000000c18a 0x72 Output/Blinker.obj
  426 + 0x000000000000c18a Em_App_xmitReady
  427 + .text.Em_App_sendResponse
  428 + 0x000000000000c1fc 0x26 Output/Blinker.obj
  429 + 0x000000000000c1fc Em_App_sendResponse
  430 + .text.Em_App_sysStoreDispatch
  431 + 0x000000000000c222 0x1a Output/Blinker.obj
  432 + 0x000000000000c222 Em_App_sysStoreDispatch
  433 + .text.Em_App_sysFetchDispatch
  434 + 0x000000000000c23c 0xda Output/Blinker.obj
  435 + 0x000000000000c23c Em_App_sysFetchDispatch
  436 + .text.Em_App_fetchDispatch
  437 + 0x000000000000c316 0x52 Output/Blinker.obj
  438 + 0x000000000000c316 Em_App_fetchDispatch
  439 + .text.Em_App_storeDispatch
  440 + 0x000000000000c368 0x52 Output/Blinker.obj
  441 + 0x000000000000c368 Em_App_storeDispatch
  442 + .text.Em_Message_dispatch
  443 + 0x000000000000c3ba 0x60 Output/Blinker.obj
  444 + 0x000000000000c3ba Em_Message_dispatch
  445 + .text.Em_App_sendIndicator
  446 + 0x000000000000c41a 0x30 Output/Blinker.obj
  447 + 0x000000000000c41a Em_App_sendIndicator
  448 + .text.Em_Message_nextXmit
  449 + 0x000000000000c44a 0x7e Output/Blinker.obj
  450 + 0x000000000000c44a Em_Message_nextXmit
  451 + .text.Blinker_ledState_indicate
  452 + 0x000000000000c4c8 0x1c Output/Blinker.obj
  453 + 0x000000000000c4c8 Blinker_ledState_indicate
  454 + .text.Hal_connected
  455 + 0x000000000000c4e4 0x6 Output/Hal.obj
  456 + 0x000000000000c4e4 Hal_connected
  457 + .text.Hal_disconnected
  458 + 0x000000000000c4ea 0x8 Output/Hal.obj
  459 + 0x000000000000c4ea Hal_disconnected
  460 + .text.Hal_init
  461 + 0x000000000000c4f2 0xd0 Output/Hal.obj
  462 + 0x000000000000c4f2 Hal_init
  463 + .text.Hal_idleLoop
  464 + 0x000000000000c5c2 0x40 Output/Hal.obj
  465 + 0x000000000000c5c2 Hal_idleLoop
  466 + .text.Hal_ledOff
  467 + 0x000000000000c602 0x8 Output/Hal.obj
  468 + 0x000000000000c602 Hal_ledOff
  469 + .text.Hal_ledRead
  470 + 0x000000000000c60a 0x12 Output/Hal.obj
  471 + 0x000000000000c60a Hal_ledRead
  472 + .text.Hal_ledToggle
  473 + 0x000000000000c61c 0x8 Output/Hal.obj
  474 + 0x000000000000c61c Hal_ledToggle
  475 + .text.Hal_tickStart
  476 + 0x000000000000c624 0x24 Output/Hal.obj
  477 + 0x000000000000c624 Hal_tickStart
  478 + .text.Em_Hal_lock
  479 + 0x000000000000c648 0xa Output/Hal.obj
  480 + 0x000000000000c648 Em_Hal_lock
  481 + .text.Em_Hal_reset
  482 + 0x000000000000c652 0x56 Output/Hal.obj
  483 + 0x000000000000c652 Em_Hal_reset
  484 + .text.Em_Hal_startSend
  485 + 0x000000000000c6a8 0x32 Output/Hal.obj
  486 + 0x000000000000c6a8 Em_Hal_startSend
  487 + .text.Em_Hal_unlock
  488 + 0x000000000000c6da 0x6 Output/Hal.obj
  489 + 0x000000000000c6da Em_Hal_unlock
  490 + .text.buttonIsr
  491 + 0x000000000000c6e0 0x2c Output/Hal.obj
  492 + 0x000000000000c6e0 __isr_2
  493 + 0x000000000000c6e0 buttonIsr
  494 + .text.rxIsr 0x000000000000c70c 0x9a Output/Hal.obj
  495 + 0x000000000000c70c rxIsr
  496 + 0x000000000000c70c __isr_7
  497 + .text.timerIsr
  498 + 0x000000000000c7a6 0x28 Output/Hal.obj
  499 + 0x000000000000c7a6 timerIsr
  500 + 0x000000000000c7a6 __isr_13
  501 + .text.txAckIsr
  502 + 0x000000000000c7ce 0x66 Output/Hal.obj
  503 + 0x000000000000c7ce txAckIsr
  504 + 0x000000000000c7ce __isr_3
  505 + .text.uartWatchdogIsr
  506 + 0x000000000000c834 0x28 Output/Hal.obj
  507 + 0x000000000000c834 uartWatchdogIsr
  508 + 0x000000000000c834 __isr_12
  509 + .text.crt0 0x000000000000c85c 0x2 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  510 + 0x000000000000c85c _unexpected_
  511 + 0x000000000000c85e . = ALIGN (0x2)
  512 +
  513 +.rodata 0x000000000000c85e 0x46
  514 + 0x000000000000c85e . = ALIGN (0x2)
  515 + *(.rodata .rodata.* .gnu.linkonce.r.*)
  516 + .rodata.Em_App_sysFetchDispatch
  517 + 0x000000000000c85e 0x12 Output/Blinker.obj
  518 + .rodata.Em_Message_dispatch
  519 + 0x000000000000c870 0x16 Output/Blinker.obj
  520 + .rodata.Em_App_endian
  521 + 0x000000000000c886 0x2 Output/Blinker.obj
  522 + 0x000000000000c886 Em_App_endian
  523 + .rodata.Em_App_build
  524 + 0x000000000000c888 0x8 Output/Blinker.obj
  525 + 0x000000000000c888 Em_App_build
  526 + .rodata.Em_App_hash
  527 + 0x000000000000c890 0x13 Output/Blinker.obj
  528 + 0x000000000000c890 Em_App_hash
  529 + 0x000000000000c8a4 . = ALIGN (0x2)
  530 + *fill* 0x000000000000c8a3 0x1 00
  531 + 0x000000000000c8a4 _etext = .
  532 +
  533 +.data 0x0000000000000200 0x6 load address 0x000000000000c8a4
  534 + 0x0000000000000200 . = ALIGN (0x2)
  535 + 0x0000000000000200 PROVIDE (__data_start, .)
  536 + *(.data .data.* .gnu.linkonce.d.*)
  537 + .data.delayVal
  538 + 0x0000000000000200 0x2 Output/Blinker-Prog.obj
  539 + .data.curCount
  540 + 0x0000000000000202 0x2 Output/Blinker-Prog.obj
  541 + .data.Em_App_inBuf
  542 + 0x0000000000000204 0x2 Output/Blinker.obj
  543 + 0x0000000000000204 Em_App_inBuf
  544 + 0x0000000000000206 . = ALIGN (0x2)
  545 + 0x0000000000000206 _edata = .
  546 + 0x000000000000c8a4 PROVIDE (__data_load_start, LOADADDR (.data))
  547 + 0x0000000000000006 PROVIDE (__data_size, SIZEOF (.data))
  548 +
  549 +.bss 0x0000000000000206 0x5c load address 0x000000000000c8aa
  550 + 0x0000000000000206 PROVIDE (__bss_start, .)
  551 + *(.bss .bss.*)
  552 + .bss.cmdVal 0x0000000000000206 0x1 Output/Blinker-Prog.obj
  553 + *fill* 0x0000000000000207 0x1 00
  554 + .bss.curTime 0x0000000000000208 0x2 Output/Blinker-Prog.obj
  555 + .bss.countVal 0x000000000000020a 0x2 Output/Blinker-Prog.obj
  556 + .bss.Em_App_devName
  557 + 0x000000000000020c 0x2 Output/Blinker.obj
  558 + 0x000000000000020c Em_App_devName
  559 + .bss._Em_Message_txCnt
  560 + 0x000000000000020e 0x1 Output/Blinker.obj
  561 + 0x000000000000020e _Em_Message_txCnt
  562 + *fill* 0x000000000000020f 0x1 00
  563 + .bss._Em_Message_txBuf
  564 + 0x0000000000000210 0x2 Output/Blinker.obj
  565 + 0x0000000000000210 _Em_Message_txBuf
  566 + .bss._Em_Message_rxCnt
  567 + 0x0000000000000212 0x1 Output/Blinker.obj
  568 + 0x0000000000000212 _Em_Message_rxCnt
  569 + *fill* 0x0000000000000213 0x1 00
  570 + .bss._Em_Message_rxBuf
  571 + 0x0000000000000214 0x2 Output/Blinker.obj
  572 + 0x0000000000000214 _Em_Message_rxBuf
  573 + .bss.Em_App_outBuf
  574 + 0x0000000000000216 0x2 Output/Blinker.obj
  575 + 0x0000000000000216 Em_App_outBuf
  576 + .bss.Em_App_xmitMask
  577 + 0x0000000000000218 0x4 Output/Blinker.obj
  578 + 0x0000000000000218 Em_App_xmitMask
  579 + .bss.Em_App_fileIndex
  580 + 0x000000000000021c 0x4 Output/Blinker.obj
  581 + 0x000000000000021c Em_App_fileIndex
  582 + .bss.Em_App_state
  583 + 0x0000000000000220 0x1 Output/Blinker.obj
  584 + 0x0000000000000220 Em_App_state
  585 + *fill* 0x0000000000000221 0x1 00
  586 + .bss.handlerEvents
  587 + 0x0000000000000222 0x2 Output/Hal.obj
  588 + .bss.handlerTab
  589 + 0x0000000000000224 0x6 Output/Hal.obj
  590 + .bss.clockTick
  591 + 0x000000000000022a 0x2 Output/Hal.obj
  592 + *(COMMON)
  593 + COMMON 0x000000000000022c 0x36 Output/Blinker.obj
  594 + 0x000000000000022c Em_App_recvIdx
  595 + 0x000000000000022d Em_App_xmitSize
  596 + 0x000000000000022e Em_App_valp
  597 + 0x0000000000000230 Em_App_ind_u
  598 + 0x000000000000023c Em_App_recvSize
  599 + 0x000000000000023e Em_App_msg_u
  600 + 0x000000000000025a Em_App_pdHdlr
  601 + 0x000000000000025c Em_App_bufp
  602 + 0x000000000000025e Em_App_xmitIdx
  603 + 0x0000000000000260 Em_App_desc
  604 + 0x0000000000000262 . = ALIGN (0x2)
  605 + 0x0000000000000262 PROVIDE (__bss_end, .)
  606 + 0x000000000000005c PROVIDE (__bss_size, SIZEOF (.bss))
  607 +
  608 +.noinit 0x0000000000000262 0x2 load address 0x000000000000c8aa
  609 + 0x0000000000000262 PROVIDE (__noinit_start, .)
  610 + *(.noinit .noinit.*)
  611 + .noinit.crt0 0x0000000000000262 0x2 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  612 + 0x0000000000000262 __wdt_clear_value
  613 + 0x0000000000000264 . = ALIGN (0x2)
  614 + 0x0000000000000264 PROVIDE (__noinit_end, .)
  615 + 0x0000000000000264 . = ALIGN (0x2)
  616 + 0x0000000000000264 _end = .
  617 +
  618 +.infomem 0x0000000000001000 0x0
  619 + *(.infomem)
  620 + 0x0000000000001000 . = ALIGN (0x2)
  621 + *(.infomem.*)
  622 +
  623 +.infomemnobits 0x0000000000001000 0x0
  624 + *(.infomemnobits)
  625 + 0x0000000000001000 . = ALIGN (0x2)
  626 + *(.infomemnobits.*)
  627 +
  628 +.infoa
  629 + *(.infoa .infoa.*)
  630 +
  631 +.infob
  632 + *(.infob .infob.*)
  633 +
  634 +.infoc
  635 + *(.infoc .infoc.*)
  636 +
  637 +.infod
  638 + *(.infod .infod.*)
  639 +
  640 +.vectors 0x000000000000ffe0 0x20
  641 + 0x000000000000ffe0 PROVIDE (__vectors_start, .)
  642 + *(.vectors*)
  643 + .vectors 0x000000000000ffe0 0x20 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  644 + 0x000000000000ffe0 __ivtbl_16
  645 + 0x0000000000010000 _vectors_end = .
  646 +
  647 +.fartext 0x0000000000000000 0x0
  648 + 0x0000000000000000 . = ALIGN (0x2)
  649 + *(.fartext)
  650 + 0x0000000000000000 . = ALIGN (0x2)
  651 + *(.fartext.*)
  652 + 0x0000000000000000 _efartext = .
  653 +
  654 +.profiler
  655 + *(.profiler)
  656 +
  657 +.stab
  658 + *(.stab)
  659 +
  660 +.stabstr
  661 + *(.stabstr)
  662 +
  663 +.stab.excl
  664 + *(.stab.excl)
  665 +
  666 +.stab.exclstr
  667 + *(.stab.exclstr)
  668 +
  669 +.stab.index
  670 + *(.stab.index)
  671 +
  672 +.stab.indexstr
  673 + *(.stab.indexstr)
  674 +
  675 +.comment
  676 + *(.comment)
  677 +
  678 +.debug
  679 + *(.debug)
  680 +
  681 +.line
  682 + *(.line)
  683 +
  684 +.debug_srcinfo
  685 + *(.debug_srcinfo)
  686 +
  687 +.debug_sfnames
  688 + *(.debug_sfnames)
  689 +
  690 +.debug_aranges 0x0000000000000000 0x198
  691 + *(.debug_aranges)
  692 + .debug_aranges
  693 + 0x0000000000000000 0x38 Output/Blinker-Prog.obj
  694 + .debug_aranges
  695 + 0x0000000000000038 0x70 Output/Blinker.obj
  696 + .debug_aranges
  697 + 0x00000000000000a8 0x78 Output/Hal.obj
  698 + .debug_aranges
  699 + 0x0000000000000120 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  700 + .debug_aranges
  701 + 0x0000000000000134 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  702 + .debug_aranges
  703 + 0x0000000000000148 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  704 + .debug_aranges
  705 + 0x000000000000015c 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  706 + .debug_aranges
  707 + 0x0000000000000170 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  708 + .debug_aranges
  709 + 0x0000000000000184 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  710 +
  711 +.debug_pubnames
  712 + *(.debug_pubnames)
  713 +
  714 +.debug_info 0x0000000000000000 0x1bfd
  715 + *(.debug_info)
  716 + .debug_info 0x0000000000000000 0x310 Output/Blinker-Prog.obj
  717 + .debug_info 0x0000000000000310 0x91b Output/Blinker.obj
  718 + .debug_info 0x0000000000000c2b 0xc78 Output/Hal.obj
  719 + .debug_info 0x00000000000018a3 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  720 + .debug_info 0x0000000000001932 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  721 + .debug_info 0x00000000000019c1 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  722 + .debug_info 0x0000000000001a50 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  723 + .debug_info 0x0000000000001adf 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  724 + .debug_info 0x0000000000001b6e 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  725 + *(.gnu.linkonce.wi.*)
  726 +
  727 +.debug_abbrev 0x0000000000000000 0x715
  728 + *(.debug_abbrev)
  729 + .debug_abbrev 0x0000000000000000 0x103 Output/Blinker-Prog.obj
  730 + .debug_abbrev 0x0000000000000103 0x240 Output/Blinker.obj
  731 + .debug_abbrev 0x0000000000000343 0x35a Output/Hal.obj
  732 + .debug_abbrev 0x000000000000069d 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  733 + .debug_abbrev 0x00000000000006b1 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  734 + .debug_abbrev 0x00000000000006c5 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  735 + .debug_abbrev 0x00000000000006d9 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  736 + .debug_abbrev 0x00000000000006ed 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  737 + .debug_abbrev 0x0000000000000701 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  738 +
  739 +.debug_line 0x0000000000000000 0xbad
  740 + *(.debug_line)
  741 + .debug_line 0x0000000000000000 0x19d Output/Blinker-Prog.obj
  742 + .debug_line 0x000000000000019d 0x3b8 Output/Blinker.obj
  743 + .debug_line 0x0000000000000555 0x3a9 Output/Hal.obj
  744 + .debug_line 0x00000000000008fe 0x72 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  745 + .debug_line 0x0000000000000970 0x70 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  746 + .debug_line 0x00000000000009e0 0x76 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  747 + .debug_line 0x0000000000000a56 0x76 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  748 + .debug_line 0x0000000000000acc 0x71 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  749 + .debug_line 0x0000000000000b3d 0x70 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  750 +
  751 +.debug_frame 0x0000000000000000 0x3aa
  752 + *(.debug_frame)
  753 + .debug_frame 0x0000000000000000 0x90 Output/Blinker-Prog.obj
  754 + .debug_frame 0x0000000000000090 0x17a Output/Blinker.obj
  755 + .debug_frame 0x000000000000020a 0x1a0 Output/Hal.obj
  756 +
  757 +.debug_str 0x0000000000000000 0x9b0
  758 + *(.debug_str)
  759 + .debug_str 0x0000000000000000 0x266 Output/Blinker-Prog.obj
  760 + 0x2a2 (size before relaxing)
  761 + .debug_str 0x0000000000000266 0x3e3 Output/Blinker.obj
  762 + 0x554 (size before relaxing)
  763 + .debug_str 0x0000000000000649 0x367 Output/Hal.obj
  764 + 0x5a7 (size before relaxing)
  765 +
  766 +.debug_loc 0x0000000000000000 0x64e
  767 + *(.debug_loc)
  768 + .debug_loc 0x0000000000000000 0x31 Output/Blinker-Prog.obj
  769 + .debug_loc 0x0000000000000031 0x438 Output/Blinker.obj
  770 + .debug_loc 0x0000000000000469 0x1e5 Output/Hal.obj
  771 +
  772 +.debug_macinfo
  773 + *(.debug_macinfo)
  774 +
  775 +.debug_pubtypes
  776 + *(.debug_pubtypes)
  777 +
  778 +.debug_ranges 0x0000000000000000 0x19c
  779 + *(.debug_ranges)
  780 + .debug_ranges 0x0000000000000000 0x2c Output/Blinker-Prog.obj
  781 + .debug_ranges 0x000000000000002c 0x64 Output/Blinker.obj
  782 + .debug_ranges 0x0000000000000090 0x10c Output/Hal.obj
  783 + 0x0000000000000400 PROVIDE (__stack, (ORIGIN (ram) + 0x200))
  784 + 0x000000000000c8a4 PROVIDE (__data_start_rom, _etext)
  785 + 0x000000000000c8aa PROVIDE (__data_end_rom, (_etext + SIZEOF (.data)))
  786 +OUTPUT(Output/Blinker-Prog.out elf32-msp430)
... ...
Blinker-MSP-EXP430G2/Output/Blinker-Prog.obj 0 → 100644
No preview for this file type
Blinker-MSP-EXP430G2/Output/Blinker-Prog.out 0 → 100755
No preview for this file type
Blinker-MSP-EXP430G2/Output/Blinker.obj 0 → 100644
No preview for this file type
Blinker-MSP-EXP430G2/Output/Hal.obj 0 → 100644
No preview for this file type
Blinker-MSP-EXP430G2/Schema-Imports/system@emmoco.com/System.ems 0 → 100644
  1 +owner = "system@emmoco.com"
  2 +
  3 +schema System {
  4 +
  5 + // protocolLevel #13
  6 +
  7 + enum ParameterGroup {
  8 + GROUP_A, GROUP_B
  9 + }
  10 +
  11 + // protocolLevel #1
  12 +
  13 + uint8 $schemaUuid[16] { // protocolLevel #10 -- invisible to applications
  14 + readonly
  15 + }
  16 +
  17 + uint16 $mcmProtocolLevel {
  18 + readonly
  19 + }
  20 +
  21 + uint16 $eapProtocolLevel {
  22 + readonly
  23 + }
  24 +
  25 + uint8 $eapBuildDate[8] { // protocolLevel #5 -- rename from $eapBuildNumber
  26 + readonly
  27 + }
  28 +
  29 + // protocolLevel #2
  30 +
  31 + int16 $fileIndexReset {
  32 + writeonly
  33 + }
  34 +
  35 + // protocolLevel #5
  36 +
  37 + // protocolLevel #12 -- increase size to 20
  38 +
  39 + uint8 $schemaHash[20] {
  40 + readonly
  41 + }
  42 +
  43 + // protocolLevel #7
  44 +
  45 + struct ResourceCount {
  46 + uint8 app
  47 + uint8 sys
  48 + }
  49 +
  50 + ResourceCount $resourceCount {
  51 + readonly
  52 + }
  53 +
  54 + // protocolLevel #9
  55 +
  56 + int8 $mobileRssi {
  57 + readonly
  58 + }
  59 +
  60 + // protocolLevel #11
  61 +
  62 + uint8 $mcmDisconnect {
  63 + writeonly
  64 + }
  65 +
  66 + // protocolLevel #13
  67 +
  68 + ParameterGroup $activeGroup {
  69 + readwrite
  70 + }
  71 +
  72 +}
... ...
Blinker-MSP-EXP430G2/bundle.properties 0 → 100644
  1 +# generated file - do not edit
  2 +
  3 +bundle.requires = com.emmoco.schema.translator
  4 +com.emmoco.framework.Properties.applicationDirectory = Em
  5 +com.emmoco.framework.Properties.schemaDestinationDirectory = Em
  6 +com.emmoco.framework.Properties.serverAPIToken =
  7 +com.emmoco.framework.Properties.align16 = 2
  8 +com.emmoco.framework.Properties.align32 = 4
  9 +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/em-builder/Blinker-MSP-EXP430G2/Blinker.ems
  10 +com.emmoco.framework.Properties.toolVersion = 13.4.1.201311121909
... ...
Blinker-MSP-EXP430G2/makefile 0 → 100644
  1 +APPNAME = Blinker
  2 +PLATFORM = ../Platform-MSP-EXP430G2
  3 +
  4 +include $(PLATFORM)/rules.mk
... ...
DUREX/Output/DUREX-Prog.map
... ... @@ -783,17 +783,17 @@ LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib
783 783 .debug_frame 0x00000000000003bc 0x1e /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(strcmp.o)
784 784 .debug_frame 0x00000000000003da 0x38 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(memcpy.o)
785 785  
786   -.debug_str 0x0000000000000000 0xa8e
  786 +.debug_str 0x0000000000000000 0xa89
787 787 *(.debug_str)
788   - .debug_str 0x0000000000000000 0x2bb Output/DUREX-Prog.obj
789   - 0x2f4 (size before relaxing)
790   - .debug_str 0x00000000000002bb 0x3d9 Output/DUREX.obj
791   - 0x53a (size before relaxing)
792   - .debug_str 0x0000000000000694 0x367 Output/Hal.obj
793   - 0x598 (size before relaxing)
794   - .debug_str 0x00000000000009fb 0x5f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(strcmp.o)
  788 + .debug_str 0x0000000000000000 0x2b6 Output/DUREX-Prog.obj
  789 + 0x2ef (size before relaxing)
  790 + .debug_str 0x00000000000002b6 0x3d9 Output/DUREX.obj
  791 + 0x535 (size before relaxing)
  792 + .debug_str 0x000000000000068f 0x367 Output/Hal.obj
  793 + 0x593 (size before relaxing)
  794 + .debug_str 0x00000000000009f6 0x5f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(strcmp.o)
795 795 0xde (size before relaxing)
796   - .debug_str 0x0000000000000a5a 0x34 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(memcpy.o)
  796 + .debug_str 0x0000000000000a55 0x34 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a(memcpy.o)
797 797 0x100 (size before relaxing)
798 798  
799 799 .debug_loc 0x0000000000000000 0x868
... ...
DUREX/Output/DUREX-Prog.obj
No preview for this file type
DUREX/Output/DUREX-Prog.out
No preview for this file type
DUREX/Output/DUREX.obj
No preview for this file type
DUREX/Output/Hal.obj
No preview for this file type
FirstApp-MSP-EXP430G2/.project 0 → 100644
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>FirstApp-MSP-EXP430G2</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>com.emmoco.mcmtooling.core.mcmToolingBuilder</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + <buildCommand>
  14 + <name>com.emmoco.mcmtooling.example.mcmToolingBuilder</name>
  15 + <arguments>
  16 + </arguments>
  17 + </buildCommand>
  18 + </buildSpec>
  19 + <natures>
  20 + <nature>com.emmoco.mcmtooling.example.mcmToolingExampleNature</nature>
  21 + <nature>com.emmoco.mcmtooling.core.mcmToolingNature</nature>
  22 + </natures>
  23 + <linkedResources>
  24 + <link>
  25 + <name>Hal</name>
  26 + <type>2</type>
  27 + <locationURI>EM_PLATFORM_LOC/Hal</locationURI>
  28 + </link>
  29 + </linkedResources>
  30 + <variableList>
  31 + <variable>
  32 + <name>EM_PLATFORM_LOC</name>
  33 + <value>$%7BWORKSPACE_LOC%7D/Platform-MSP-EXP430G2</value>
  34 + </variable>
  35 + </variableList>
  36 +</projectDescription>
... ...
FirstApp-MSP-EXP430G2/Em/Em_Message.h 0 → 100644
  1 +#ifndef Em_Message_H_
  2 +#define Em_Message_H_
  3 +
  4 +#include "Em_Types.h"
  5 +
  6 +#ifdef __cplusplus
  7 +extern "C" {
  8 +#endif
  9 +
  10 +/* -------- SRT FUNCTIONS CALLED BY HAL -------- */
  11 +
  12 +static inline bool Em_Message_addByte(uint8_t b);
  13 +extern void Em_Message_dispatch(void);
  14 +static inline bool Em_Message_getByte(uint8_t* bp);
  15 +extern void Em_Message_restart(void);
  16 +static inline bool Em_Message_startRx(void);
  17 +static inline uint8_t Em_Message_startTx(void);
  18 +
  19 +
  20 +/* -------- HAL FUNCTIONS CALLED BY SRT -------- */
  21 +
  22 +extern uint8_t Em_Hal_lock(void);
  23 +extern void Em_Hal_reset(void);
  24 +extern void Em_Hal_startSend(void);
  25 +extern void Em_Hal_unlock(uint8_t key);
  26 +extern void Em_Hal_watchOff(void);
  27 +extern void Em_Hal_watchOn(void);
  28 +
  29 +
  30 +/* -------- MESSAGE FORMAT -------- */
  31 +
  32 +/* protocolLevel #4 */
  33 +#define Em_Message_INDSIZE 4
  34 +
  35 +typedef uint8_t Em_Message_Size;
  36 +typedef uint8_t Em_Message_Kind;
  37 +/* protocolLevel #12 -- split 16-bit resId into <resId, chan> */
  38 +typedef uint8_t Em_Message_ResId;
  39 +typedef uint8_t Em_Message_Chan;
  40 +
  41 +#define Em_Message_NOP 0
  42 +#define Em_Message_FETCH 1
  43 +#define Em_Message_FETCH_DONE 2
  44 +#define Em_Message_STORE 3
  45 +#define Em_Message_STORE_DONE 4
  46 +#define Em_Message_INDICATOR 5
  47 +#define Em_Message_CONNECT 6
  48 +#define Em_Message_DISCONNECT 7
  49 +#define Em_Message_ECHO 8
  50 +/* protocolLevel #3 */
  51 +/* protocolLevel #6 -- rename from BROADCAST to PAIRING */
  52 +#define Em_Message_PAIRING 9
  53 +#define Em_Message_PAIRING_DONE 10
  54 +/* protocolLevel #7 */
  55 +#define Em_Message_OFFLINE 11
  56 +/* protocolLevel #8 */
  57 +#define Em_Message_ACCEPT 12
  58 +/* protocolLevel #13 */
  59 +#define Em_Message_START 13
  60 +#define Em_Message_ACTIVE_PARAMS 14
  61 +
  62 +typedef struct Em_Message_Header {
  63 + Em_Message_Size size;
  64 + Em_Message_Kind kind;
  65 + Em_Message_ResId resId;
  66 + Em_Message_Chan chan;
  67 +} Em_Message_Header;
  68 +
  69 +typedef uint16_t Em_Message_protocolLevel_t;
  70 +
  71 +/* protocolLevel #1 */
  72 +
  73 +/* protocolLevel #10 */
  74 +/* #define Em_Message_SYS_SCHEMA_UUID 0xFF */
  75 +
  76 +#define Em_Message_SYS_MCM_PROTOCOL_LEVEL 0xFE
  77 +#define Em_Message_SYS_EAP_PROTOCOL_LEVEL 0xFD
  78 +#define Em_Message_SYS_EAP_BUILD_DATE 0xFC
  79 +
  80 +/* protocolLevel #2 */
  81 +#define Em_Message_SYS_FILE_INDEX_RESET 0xFB
  82 +
  83 +/* protocolLevel #5 */
  84 +#define Em_Message_SYS_SCHEMA_HASH 0xFA
  85 +
  86 +/* protocolLevel #7 */
  87 +#define Em_Message_SYS_RESOURCE_COUNT 0xF9
  88 +
  89 +/* protocolLevel #9 */
  90 +#define Em_Message_SYS_MOBILE_RSSI 0xF8
  91 +
  92 +/* protocolLevel #11 */
  93 +#define Em_Message_SYS_MCM_DISCONNECT 0xF7
  94 +
  95 +/* protocolLevel #13a */
  96 +#define Em_Message_SYS_MCM_NAME 0xF5
  97 +
  98 +
  99 +/* -------- PRIVATE -------- */
  100 +
  101 +extern void Em_Message_nextXmit(void);
  102 +
  103 +extern uint8_t* Em_App_inBuf;
  104 +extern uint8_t* Em_App_outBuf;
  105 +extern Em_Message_Size Em_App_xmitSize;
  106 +
  107 +extern uint8_t* _Em_Message_rxBuf;
  108 +extern uint8_t _Em_Message_rxCnt;
  109 +
  110 +extern uint8_t* _Em_Message_txBuf;
  111 +extern uint8_t _Em_Message_txCnt;
  112 +
  113 +static inline bool Em_Message_addByte(uint8_t b) {
  114 + if (_Em_Message_rxCnt == 0) {
  115 + if (b == 0) {
  116 + return false;
  117 + }
  118 + _Em_Message_rxCnt = b;
  119 + }
  120 + *_Em_Message_rxBuf++ = b;
  121 + if (--_Em_Message_rxCnt == 0) {
  122 + _Em_Message_rxBuf = 0;
  123 + if (_Em_Message_txBuf == 0) {
  124 + Em_Hal_watchOff();
  125 + }
  126 + return true;
  127 + }
  128 + else {
  129 + return false;
  130 + }
  131 +}
  132 +
  133 +static inline bool Em_Message_getByte(uint8_t* bp) {
  134 + if (_Em_Message_txBuf == 0) {
  135 + return false;
  136 + }
  137 + if (_Em_Message_txCnt == 0) {
  138 + _Em_Message_txCnt = *_Em_Message_txBuf + 1;
  139 + }
  140 + if (--_Em_Message_txCnt > 0) {
  141 + *bp = *_Em_Message_txBuf++;
  142 + return true;
  143 + }
  144 + else {
  145 + _Em_Message_txBuf = 0;
  146 + Em_App_xmitSize = 0;
  147 + Em_Message_nextXmit();
  148 + if (_Em_Message_rxBuf == 0) {
  149 + Em_Hal_watchOff();
  150 + }
  151 + return false;
  152 + }
  153 +}
  154 +
  155 +static inline bool Em_Message_startRx(void) {
  156 + if (_Em_Message_rxBuf == 0) {
  157 + _Em_Message_rxBuf = Em_App_inBuf;
  158 + if (_Em_Message_txBuf == 0) {
  159 + Em_Hal_watchOn();
  160 + }
  161 + return true;
  162 + }
  163 + else {
  164 + return false;
  165 + }
  166 +}
  167 +
  168 +static inline uint8_t Em_Message_startTx(void) {
  169 + _Em_Message_txBuf = Em_App_outBuf + 1;
  170 + _Em_Message_txCnt = 0;
  171 + if (_Em_Message_rxBuf == 0) {
  172 + Em_Hal_watchOn();
  173 + }
  174 + return 0;
  175 +}
  176 +
  177 +
  178 +#ifdef __cplusplus
  179 +}
  180 +#endif
  181 +
  182 +#endif /*Em_Message_H_*/
... ...
FirstApp-MSP-EXP430G2/Em/Em_Types.h 0 → 100644
  1 +#ifndef Em_Types_H_
  2 +#define Em_Types_H_
  3 +
  4 +#ifndef Em_NOSTDBOOL
  5 +#include <stdbool.h>
  6 +#endif
  7 +
  8 +#ifndef Em_NOSTDINT
  9 +#include <stdint.h>
  10 +#endif
  11 +
  12 +#ifdef Em_16BIT
  13 +typedef signed char int8_t;
  14 +typedef unsigned char uint8_t;
  15 +#endif
  16 +
  17 +#endif /*Em_Types_H_*/
... ...
FirstApp-MSP-EXP430G2/Em/FirstApp-STUBS.c 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FirstApp on 2014-07-30T13:03:45T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#include "FirstApp.h"
  5 +
  6 +#ifdef FirstApp_STUBS_ /* enables optional inclusion of application stubs */
  7 +
  8 +/* Copy the function skeletons below into your own application source file */
  9 +
  10 +void FirstApp_connectHandler(void) {
  11 + /* TODO: application is now connected */
  12 +}
  13 +
  14 +void FirstApp_disconnectHandler(void) {
  15 + /* TODO: application is now disconnected */
  16 +}
  17 +
  18 +void FirstApp_data_fetch(FirstApp_data_t* output) {
  19 + /* TODO: read resource 'data' into 'output' */
  20 +}
  21 +
  22 +void FirstApp_data_store(FirstApp_data_t* input) {
  23 + /* TODO: write resource 'data' from 'input' */
  24 +}
  25 +
  26 +#endif /* application stubs */
... ...
FirstApp-MSP-EXP430G2/Em/FirstApp.c 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FirstApp on 2014-07-30T13:03:45T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#include "Em_Message.h"
  5 +#include "FirstApp.h"
  6 +
  7 +#ifdef __cplusplus
  8 +extern "C" {
  9 +#endif
  10 +
  11 +#define Em_Message_protocolLevel 13
  12 +
  13 +typedef struct Em_App_Message {
  14 + uint8_t dummy[3];
  15 + uint8_t sot;
  16 + Em_Message_Header hdr;
  17 + uint8_t data[20];
  18 +} Em_App_Message;
  19 +
  20 +const uint8_t Em_App_hash[] = {124, 222, 24, 201, 135, 244, 35, 197, 14, 170, 21, 17, 84, 224, 220, 189, 13, 0, ((sizeof(struct{uint8_t f1; uint16_t f2;}) - sizeof(uint16_t)) << 4) | (sizeof(struct{uint8_t f1; uint32_t f2;}) - sizeof(uint32_t))};
  21 +
  22 +const uint8_t Em_App_build[] = {179, 173, 240, 134, 71, 1, 0, 0};
  23 +
  24 +#define Em_App_APP_RESOURCE_COUNT 1
  25 +#define Em_App_SYS_RESOURCE_COUNT 9
  26 +
  27 +#define Em_App_ACCEPT FirstApp_accept
  28 +#define Em_App_ACTIVATEPARAMETERS FirstApp_activateParameters
  29 +#define Em_App_BROADCASTOFF FirstApp_broadcastOff
  30 +#define Em_App_DISCONNECT FirstApp_disconnect
  31 +#define Em_App_PAIRINGON FirstApp_pairingOn
  32 +#define Em_App_PAIRINGOFF FirstApp_pairingOff
  33 +#define Em_App_RESET FirstApp_reset
  34 +#define Em_App_SETDEVICENAME FirstApp_setDeviceName
  35 +#define Em_App_START FirstApp_start
  36 +
  37 +#define Em_App_CONNECTHANDLER FirstApp_connectHandler
  38 +#define Em_App_DISCONNECTHANDLER FirstApp_disconnectHandler
  39 +
  40 +#define Em_App_MAX_INDICATOR 1
  41 +
  42 +/* BEGIN common code */
  43 +
  44 +enum {Em_App_IDLE, Em_App_STARTING, Em_App_DISCONNECTED, Em_App_CONNECTED};
  45 +
  46 +typedef struct Em_App_Indicator {
  47 + uint8_t dummy[3];
  48 + uint8_t sot;
  49 + Em_Message_Header hdr;
  50 + uint8_t data[Em_Message_INDSIZE];
  51 +} Em_App_Indicator;
  52 +
  53 +union { uint32_t align; Em_App_Message msg; } Em_App_msg_u;
  54 +union { uint32_t align; Em_App_Indicator ind; } Em_App_ind_u;
  55 +#define Em_App_msg Em_App_msg_u.msg
  56 +#define Em_App_ind Em_App_ind_u.ind
  57 +
  58 +void (*Em_App_pdHdlr)(void);
  59 +
  60 +const uint16_t Em_App_endian = 0x0100;
  61 +
  62 +Em_Message_Size Em_App_recvIdx;
  63 +Em_Message_Size Em_App_recvSize;
  64 +Em_Message_Size Em_App_xmitIdx;
  65 +Em_Message_Size Em_App_xmitSize;
  66 +
  67 +uint8_t Em_App_state = Em_App_IDLE;
  68 +int32_t Em_App_fileIndex = 0;
  69 +uint32_t Em_App_xmitMask = 0;
  70 +
  71 +uint8_t* Em_App_valp;
  72 +uint8_t* Em_App_bufp;
  73 +const char* Em_App_desc;
  74 +
  75 +uint8_t* Em_App_inBuf = (uint8_t*)&Em_App_msg.hdr;
  76 +uint8_t* Em_App_outBuf = 0;
  77 +
  78 +uint8_t* _Em_Message_rxBuf = 0;
  79 +uint8_t _Em_Message_rxCnt = 0;
  80 +
  81 +uint8_t* _Em_Message_txBuf = 0;
  82 +uint8_t _Em_Message_txCnt = 0;
  83 +
  84 +#define Em_App_DEVNAME_LEN 9
  85 +const char* Em_App_devName = 0;
  86 +
  87 +void Em_App_fetchDispatch(void);
  88 +void Em_Message_marshallToBuf(uint8_t* valp, uint8_t* bufp, const char* desc);
  89 +void Em_Message_marshallToVal(uint8_t* valp, uint8_t* bufp, const char* desc);
  90 +void Em_App_storeDispatch(void);
  91 +void Em_App_sendIndicator(Em_Message_ResId indId);
  92 +void Em_App_sendResponse(Em_Message_Kind kind, Em_Message_Size size);
  93 +void Em_App_startIndSend(void);
  94 +void Em_App_startResSend(void);
  95 +void Em_App_sysFetchDispatch(void);
  96 +void Em_App_sysStoreDispatch(void);
  97 +bool Em_App_xmitReady(Em_Message_ResId indId);
  98 +
  99 +void Em_Message_nextXmit(void) {
  100 + uint8_t key = Em_Hal_lock();
  101 + if (Em_App_xmitMask != 0) {
  102 + uint8_t i;
  103 + uint32_t m;
  104 + for (i = 0, m = 0x1; i < Em_App_MAX_INDICATOR; i++, m <<= 1) {
  105 + if (Em_App_xmitMask & m) {
  106 + Em_App_xmitMask &= ~m;
  107 + if (i == 0) {
  108 + Em_App_startResSend();
  109 + }
  110 + else {
  111 + Em_App_sendIndicator(i - 1);
  112 + }
  113 + break;
  114 + }
  115 + }
  116 + }
  117 + Em_Hal_unlock(key);
  118 +}
  119 +
  120 +void Em_Message_restart(void) {
  121 + Em_App_START();
  122 +}
  123 +
  124 +void Em_App_ACCEPT(bool enable) {
  125 + if (Em_App_state == Em_App_CONNECTED) {
  126 + return;
  127 + }
  128 + Em_App_ind.sot = 0;
  129 + Em_App_ind.hdr.kind = Em_Message_ACCEPT;
  130 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  131 + Em_App_ind.hdr.resId = enable;
  132 + Em_App_startIndSend();
  133 +}
  134 +
  135 +void Em_App_ACTIVATEPARAMETERS(uint8_t group) {
  136 + if (Em_App_state == Em_App_IDLE || Em_App_state == Em_App_STARTING) {
  137 + return;
  138 + }
  139 + Em_App_ind.sot = 0;
  140 + Em_App_ind.hdr.kind = Em_Message_ACTIVE_PARAMS;
  141 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  142 + Em_App_ind.hdr.resId = group;
  143 + Em_App_startIndSend();
  144 +}
  145 +
  146 +void Em_App_BROADCASTOFF(void) {
  147 + Em_App_ind.sot = 0;
  148 + Em_App_ind.hdr.kind = Em_Message_INDICATOR;
  149 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  150 + Em_App_ind.hdr.resId = 0;
  151 + Em_App_startIndSend();
  152 +}
  153 +
  154 +void Em_App_DISCONNECT(void) {
  155 + if (Em_App_state != Em_App_CONNECTED) {
  156 + return;
  157 + }
  158 + Em_App_state = Em_App_DISCONNECTED;
  159 + Em_App_ind.sot = 0;
  160 + Em_App_ind.hdr.kind = Em_Message_DISCONNECT;
  161 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  162 + Em_App_ind.hdr.resId = 0;
  163 + Em_App_startIndSend();
  164 +}
  165 +
  166 +void Em_Message_dispatch(void) {
  167 + if (Em_App_state == Em_App_IDLE) {
  168 + return;
  169 + }
  170 + switch (Em_App_msg.hdr.kind) {
  171 + case Em_Message_CONNECT:
  172 + Em_App_state = Em_App_CONNECTED;
  173 + Em_App_CONNECTHANDLER();
  174 + break;
  175 + case Em_Message_DISCONNECT:
  176 + Em_App_state = Em_App_DISCONNECTED;
  177 + Em_App_DISCONNECTHANDLER();
  178 + break;
  179 + case Em_Message_PAIRING_DONE:
  180 + if (Em_App_pdHdlr) {
  181 + (*Em_App_pdHdlr)();
  182 + }
  183 + break;
  184 + case Em_Message_FETCH:
  185 + if (Em_App_msg.hdr.resId < 0x80) {
  186 + Em_App_fetchDispatch();
  187 + }
  188 + else {
  189 + Em_App_sysFetchDispatch();
  190 + }
  191 + break;
  192 + case Em_Message_STORE:
  193 + if (Em_App_msg.hdr.resId < 0x80) {
  194 + Em_App_storeDispatch();
  195 + }
  196 + else {
  197 + Em_App_sysStoreDispatch();
  198 + }
  199 + break;
  200 + }
  201 +}
  202 +
  203 +void Em_App_marshallToBuf() {
  204 + char ch;
  205 + while ((ch = *Em_App_desc++)) {
  206 + switch (ch) {
  207 + case '0' : {
  208 + *Em_App_bufp++ = 0;
  209 + break;
  210 + }
  211 + case '1' : {
  212 + *Em_App_bufp++ = *Em_App_valp & 0xFF;
  213 + break;
  214 + }
  215 + case '2' : {
  216 + uint16_t v16 = *(uint16_t*)Em_App_valp;
  217 + *Em_App_bufp++ = v16 & 0xFF;
  218 + *Em_App_bufp++ = (v16 >> 8) & 0xFF;
  219 + break;
  220 + }
  221 + case '4' : {
  222 + if (((uint32_t)Em_App_valp & 0x1)) Em_App_valp++;
  223 + uint32_t v32 = *(uint32_t*)Em_App_valp++;
  224 + *Em_App_bufp++ = v32 & 0xFF;
  225 + *Em_App_bufp++ = (v32 >> 8) & 0xFF;
  226 + *Em_App_bufp++ = (v32 >> 16) & 0xFF;
  227 + *Em_App_bufp++ = (v32 >> 24) & 0xFF;
  228 + break;
  229 + }
  230 + }
  231 + Em_App_valp += 1;
  232 + }
  233 +}
  234 +
  235 +void Em_App_marshallToVal() {
  236 + char ch;
  237 + while ((ch = *Em_App_desc++)) {
  238 + switch (ch) {
  239 + case '0' : {
  240 + *Em_App_valp = 0;
  241 + Em_App_bufp += 1;
  242 + break;
  243 + }
  244 + case '1' : {
  245 + *Em_App_valp = *Em_App_bufp++ & 0xFF;
  246 + break;
  247 + }
  248 + case '2' : {
  249 + uint16_t v16 = *Em_App_bufp++ & 0xFF;
  250 + v16 |= (*Em_App_bufp++ << 8);
  251 + *(uint16_t*)Em_App_valp = v16;
  252 + break;
  253 + }
  254 + case '4' : {
  255 + if (((uint32_t)Em_App_valp & 0x1)) Em_App_valp++;
  256 + uint32_t v32 = (uint32_t)*Em_App_bufp++ & 0xFF;
  257 + v32 |= ((uint32_t)*Em_App_bufp++ << 8);
  258 + v32 |= ((uint32_t)*Em_App_bufp++ << 16);
  259 + v32 |= ((uint32_t)*Em_App_bufp++ << 24);
  260 + *(uint32_t*)Em_App_valp++ = v32;
  261 + break;
  262 + }
  263 + }
  264 + Em_App_valp += 1;
  265 + }
  266 +}
  267 +
  268 +void Em_App_PAIRINGOFF(void(*handler)(void)) {
  269 + Em_App_PAIRINGON(0, handler);
  270 +}
  271 +
  272 +void Em_App_PAIRINGON(uint8_t secs, void(*handler)(void)) {
  273 + if (Em_App_state != Em_App_DISCONNECTED) {
  274 + return;
  275 + }
  276 + Em_App_pdHdlr = handler;
  277 + Em_App_ind.sot = 0;
  278 + Em_App_ind.hdr.kind = Em_Message_PAIRING;
  279 + Em_App_ind.hdr.size = sizeof (Em_Message_Header);
  280 + Em_App_ind.hdr.resId = secs;
  281 + Em_App_startIndSend();
  282 +}
  283 +
  284 +void Em_App_RESET(void) {
  285 + Em_Hal_reset();
  286 + _Em_Message_rxBuf = _Em_Message_txBuf = 0;
  287 + _Em_Message_rxCnt = _Em_Message_txCnt = 0;
  288 + Em_App_recvIdx = Em_App_recvSize = Em_App_xmitIdx = Em_App_xmitSize = 0;
  289 + Em_App_state = Em_App_IDLE;
  290 + Em_App_fileIndex = 0;
  291 + Em_App_xmitMask = 0;
  292 +}
  293 +
  294 +void Em_App_SETDEVICENAME(const char* name) {
  295 + Em_App_devName = name;
  296 +}
  297 +
  298 +void Em_App_START(void) {
  299 + Em_App_RESET();
  300 + Em_App_state = Em_App_STARTING;
  301 +}
  302 +
  303 +void Em_App_sendResponse(Em_Message_Kind kind, Em_Message_Size size) {
  304 + if (Em_App_state != Em_App_IDLE) {
  305 + Em_App_msg.sot = 0;
  306 + Em_App_msg.hdr.kind = kind;
  307 + Em_App_msg.hdr.size = size + sizeof (Em_Message_Header);
  308 + if (Em_App_xmitReady(0)) {
  309 + Em_App_startResSend();
  310 + }
  311 + }
  312 +}
  313 +
  314 +void Em_App_startIndSend(void) {
  315 + Em_App_outBuf = (uint8_t*)&Em_App_ind.sot;
  316 + Em_App_xmitSize = Em_App_ind.hdr.size + 1;
  317 + Em_App_xmitIdx = 0;
  318 + Em_Hal_startSend();
  319 +}
  320 +
  321 +void Em_App_startResSend(void) {
  322 + Em_App_outBuf = (uint8_t*)&Em_App_msg.sot;
  323 + Em_App_xmitSize = Em_App_msg.hdr.size + 1;
  324 + Em_App_xmitIdx = 0;
  325 + Em_Hal_startSend();
  326 +}
  327 +
  328 +void Em_App_sysFetchDispatch(void) {
  329 + uint8_t size = 0;
  330 + int i, j;
  331 + switch (Em_App_msg.hdr.resId) {
  332 + case Em_Message_SYS_SCHEMA_HASH:
  333 + for (i = 0; i < sizeof (Em_App_hash); i++) {
  334 + Em_App_msg.data[i] = Em_App_hash[i];
  335 + }
  336 + Em_App_msg.data[sizeof (Em_App_hash)] = *((uint8_t*)&Em_App_endian);
  337 + size = sizeof (Em_App_hash) + 1;
  338 + break;
  339 + case Em_Message_SYS_MCM_NAME:
  340 + if (Em_App_devName) {
  341 + for (i = 0; i < Em_App_DEVNAME_LEN; i++) {
  342 + if ((Em_App_msg.data[i] = Em_App_devName[i]) == 0) {
  343 + break;
  344 + }
  345 + }
  346 + for (j = i; j < Em_App_DEVNAME_LEN; j++) {
  347 + Em_App_msg.data[j] = 0;
  348 + }
  349 + size = Em_App_DEVNAME_LEN;
  350 + }
  351 + break;
  352 + case Em_Message_SYS_EAP_PROTOCOL_LEVEL:
  353 + *((Em_Message_protocolLevel_t*)Em_App_msg.data) = Em_Message_protocolLevel;
  354 + size = sizeof (Em_Message_protocolLevel_t);
  355 + break;
  356 + case Em_Message_SYS_EAP_BUILD_DATE:
  357 + for (i = 0; i < sizeof (Em_App_build); i++) {
  358 + Em_App_msg.data[i] = Em_App_build[i];
  359 + }
  360 + size = sizeof (Em_App_build);
  361 + break;
  362 + case Em_Message_SYS_RESOURCE_COUNT:
  363 + Em_App_msg.data[0] = Em_App_APP_RESOURCE_COUNT;
  364 + Em_App_msg.data[1] = Em_App_SYS_RESOURCE_COUNT;
  365 + size = 2;
  366 + break;
  367 + }
  368 + Em_App_sendResponse(Em_Message_FETCH_DONE, size);
  369 +}
  370 +
  371 +void Em_App_sysStoreDispatch(void) {
  372 + switch (Em_App_msg.hdr.resId) {
  373 + case Em_Message_SYS_FILE_INDEX_RESET:
  374 + Em_App_fileIndex = 0;
  375 + break;
  376 + }
  377 + Em_App_sendResponse(Em_Message_STORE_DONE, 0);
  378 +}
  379 +
  380 +bool Em_App_xmitReady(Em_Message_ResId indId) {
  381 + uint8_t key = Em_Hal_lock();
  382 + bool res = _Em_Message_txBuf == 0 && Em_App_xmitMask == 0;
  383 + if (!res) {
  384 + Em_App_xmitMask |= (1 << indId);
  385 + }
  386 + Em_Hal_unlock(key);
  387 + return res;
  388 +}
  389 +
  390 +/* END common code */
  391 +
  392 +void Em_App_fetchDispatch(void) {
  393 + uint8_t size = 0;
  394 + switch (Em_App_msg.hdr.resId) {
  395 + case 0: {
  396 + break;
  397 + }
  398 + case 1: {
  399 +#ifdef Em_16BIT
  400 + FirstApp_data_t val;
  401 + Em_App_valp = (uint8_t*)&val;
  402 + Em_App_bufp = Em_App_msg.data;
  403 + Em_App_desc = "2";
  404 + FirstApp_data_fetch(&val);
  405 + Em_App_marshallToBuf();
  406 +#else
  407 + FirstApp_data_fetch((void*)Em_App_msg.data);
  408 +#endif
  409 + size = 2;
  410 + break;
  411 + }
  412 + }
  413 + Em_App_sendResponse(Em_Message_FETCH_DONE, size);
  414 +}
  415 +
  416 +void Em_App_storeDispatch(void) {
  417 + switch (Em_App_msg.hdr.resId) {
  418 + case 0: {
  419 + break;
  420 + }
  421 + case 1: {
  422 +#ifdef Em_16BIT
  423 + FirstApp_data_t val;
  424 + Em_App_valp = (uint8_t*)&val;
  425 + Em_App_bufp = Em_App_msg.data;
  426 + Em_App_desc = "2";
  427 + Em_App_marshallToVal();
  428 + FirstApp_data_store(&val);
  429 +#else
  430 + FirstApp_data_store((void*)Em_App_msg.data);
  431 +#endif
  432 + break;
  433 + }
  434 + }
  435 + Em_App_sendResponse(Em_Message_STORE_DONE, 0);
  436 +}
  437 +
  438 +void Em_App_sendIndicator(Em_Message_ResId indId) {
  439 + /* no active resources */
  440 +}
  441 +
  442 +#ifdef __cplusplus
  443 +}
  444 +#endif
  445 +
... ...
FirstApp-MSP-EXP430G2/Em/FirstApp.h 0 → 100644
  1 +/**** DO NOT EDIT -- this file has been automatically generated from @emmoco.com.FirstApp on 2014-07-30T13:03:45T ****/
  2 +/**** protocolLevel = 13, toolsVersion = 13.4.1.201311121909 ****/
  3 +
  4 +#ifndef FirstApp__H
  5 +#define FirstApp__H
  6 +
  7 +#include "Em_Types.h"
  8 +#include "Em_Message.h"
  9 +
  10 +#ifdef __cplusplus
  11 +extern "C" {
  12 +#endif
  13 +
  14 +/* -------- connection callback functions implemented by the application -------- */
  15 +
  16 +void FirstApp_connectHandler(void);
  17 +void FirstApp_disconnectHandler(void);
  18 +
  19 +/* -------- resource types defined in the schema -------- */
  20 +
  21 +/* -------- resource callback functions implemented by the application -------- */
  22 +
  23 +/* resource data */
  24 +typedef int16_t FirstApp_data_t;
  25 +extern void FirstApp_data_fetch(FirstApp_data_t* output);
  26 +extern void FirstApp_data_store(FirstApp_data_t* input);
  27 +
  28 +/* -------- application functions implemented in FirstApp.c -------- */
  29 +
  30 +void FirstApp_accept(bool enable);
  31 +void FirstApp_activateParameters(uint8_t group);
  32 +void FirstApp_broadcastOff(void);
  33 +void FirstApp_disconnect(void);
  34 +void FirstApp_pairingOn(uint8_t secs, void(*handler)(void));
  35 +void FirstApp_pairingOff(void(*handler)(void));
  36 +void FirstApp_reset(void);
  37 +void FirstApp_setDeviceName(const char* name);
  38 +void FirstApp_start(void);
  39 +
  40 +#ifdef __cplusplus
  41 +}
  42 +#endif
  43 +
  44 +#endif /* FirstApp__H */
... ...
FirstApp-MSP-EXP430G2/Em/firstapp.json 0 → 100644
  1 +{
  2 + "resources": {
  3 + "$schemaHash": {
  4 + "dim": 20,
  5 + "id": -6,
  6 + "align": 1,
  7 + "attributes": {"readonly": true},
  8 + "type": "A20:u1",
  9 + "access": "r",
  10 + "size": 20
  11 + },
  12 + "$eapProtocolLevel": {
  13 + "id": -3,
  14 + "align": 2,
  15 + "attributes": {"readonly": true},
  16 + "type": "u2",
  17 + "access": "r",
  18 + "size": 2
  19 + },
  20 + "$mcmProtocolLevel": {
  21 + "id": -2,
  22 + "align": 2,
  23 + "attributes": {"readonly": true},
  24 + "type": "u2",
  25 + "access": "r",
  26 + "size": 2
  27 + },
  28 + "$mobileRssi": {
  29 + "id": -8,
  30 + "align": 1,
  31 + "attributes": {"readonly": true},
  32 + "type": "i1",
  33 + "access": "r",
  34 + "size": 1
  35 + },
  36 + "data": {
  37 + "id": 1,
  38 + "align": 2,
  39 + "attributes": {},
  40 + "type": "i2",
  41 + "access": "rw",
  42 + "size": 2
  43 + },
  44 + "$activeGroup": {
  45 + "id": -10,
  46 + "align": 1,
  47 + "pack": 1,
  48 + "attributes": {"readwrite": true},
  49 + "type": "E:system@emmoco.com.System/ParameterGroup",
  50 + "access": "rw",
  51 + "size": 1
  52 + },
  53 + "$mcmDisconnect": {
  54 + "id": -9,
  55 + "align": 1,
  56 + "attributes": {"writeonly": true},
  57 + "type": "u1",
  58 + "access": "w",
  59 + "size": 1
  60 + },
  61 + "$eapBuildDate": {
  62 + "dim": 8,
  63 + "id": -4,
  64 + "align": 1,
  65 + "attributes": {"readonly": true},
  66 + "type": "A8:u1",
  67 + "access": "r",
  68 + "size": 8
  69 + },
  70 + "$resourceCount": {
  71 + "id": -7,
  72 + "align": 1,
  73 + "attributes": {"readonly": true},
  74 + "type": "S:system@emmoco.com.System/ResourceCount",
  75 + "access": "r",
  76 + "size": 2
  77 + },
  78 + "$fileIndexReset": {
  79 + "id": -5,
  80 + "align": 2,
  81 + "attributes": {"writeonly": true},
  82 + "type": "i2",
  83 + "access": "w",
  84 + "size": 2
  85 + }
  86 + },
  87 + "resourceNamesSys": [
  88 + "$activeGroup",
  89 + "$eapBuildDate",
  90 + "$eapProtocolLevel",
  91 + "$fileIndexReset",
  92 + "$mcmDisconnect",
  93 + "$mcmProtocolLevel",
  94 + "$mobileRssi",
  95 + "$resourceCount",
  96 + "$schemaHash"
  97 + ],
  98 + "manifest": {
  99 + "protocolLevel": 13,
  100 + "hash": [
  101 + 124,
  102 + 222,
  103 + 24,
  104 + 201,
  105 + 135,
  106 + 244,
  107 + 35,
  108 + 197,
  109 + 14,
  110 + 170,
  111 + 21,
  112 + 17,
  113 + 84,
  114 + 224,
  115 + 220,
  116 + 189
  117 + ],
  118 + "toolVersion": "13.4.1.201311121909",
  119 + "name": "FirstApp",
  120 + "$$md5": "7cde18c987f423c50eaa151154e0dcbd",
  121 + "build": [
  122 + 179,
  123 + 173,
  124 + 240,
  125 + 134,
  126 + 71,
  127 + 1,
  128 + 0,
  129 + 0
  130 + ],
  131 + "date": "2014-07-30T13:03:45T",
  132 + "maxAlign": 2,
  133 + "maxSize": 20,
  134 + "version": "1.0.0"
  135 + },
  136 + "resourceNames": [
  137 + "data",
  138 + "$mcmProtocolLevel",
  139 + "$eapProtocolLevel",
  140 + "$eapBuildDate",
  141 + "$fileIndexReset",
  142 + "$schemaHash",
  143 + "$resourceCount",
  144 + "$mobileRssi",
  145 + "$mcmDisconnect",
  146 + "$activeGroup"
  147 + ],
  148 + "attributes": {
  149 + "description": "My first app",
  150 + "version": "1.0.0"
  151 + },
  152 + "resourceNamesApp": ["data"],
  153 + "types": {
  154 + "system@emmoco.com.System/ResourceCount": {
  155 + "packed": false,
  156 + "align": 1,
  157 + "type": "S:system@emmoco.com.System/ResourceCount",
  158 + "size": 2,
  159 + "fields": [
  160 + {
  161 + "pad": 0,
  162 + "align": 1,
  163 + "name": "app",
  164 + "type": "u1",
  165 + "size": 1
  166 + },
  167 + {
  168 + "pad": 0,
  169 + "align": 1,
  170 + "name": "sys",
  171 + "type": "u1",
  172 + "size": 1
  173 + }
  174 + ]
  175 + },
  176 + "std:i2": {
  177 + "align": 2,
  178 + "size": 2
  179 + },
  180 + "std:i1": {
  181 + "align": 1,
  182 + "size": 1
  183 + },
  184 + "std:u1": {
  185 + "align": 1,
  186 + "size": 1
  187 + },
  188 + "system@emmoco.com.System/ParameterGroup": {
  189 + "values": [
  190 + "GROUP_A",
  191 + "GROUP_B"
  192 + ],
  193 + "align": 1,
  194 + "pack": 1,
  195 + "type": "E:system@emmoco.com.System/ParameterGroup",
  196 + "size": 1
  197 + },
  198 + "std:u2": {
  199 + "align": 2,
  200 + "size": 2
  201 + }
  202 + },
  203 + "imports": {"@emmoco.com.FirstApp": true}
  204 +}
0 205 \ No newline at end of file
... ...
FirstApp-MSP-EXP430G2/FirstApp-Prog.c 0 → 100644
  1 +#include "FirstApp.h"
  2 +#include "Hal.h"
  3 +
  4 +static FirstApp_data_t dataVal = -40;
  5 +
  6 +void main() {
  7 + Hal_init();
  8 + FirstApp_start();
  9 + Hal_idleLoop();
  10 +}
  11 +
  12 +/* -------- SCHEMA CALLBACKS -------- */
  13 +
  14 +void FirstApp_connectHandler(void) {
  15 + Hal_connected();
  16 +}
  17 +
  18 +void FirstApp_disconnectHandler(void) {
  19 + Hal_disconnected();
  20 +}
  21 +
  22 +void FirstApp_data_fetch(FirstApp_data_t* output) {
  23 + *output = dataVal;
  24 +}
  25 +
  26 +void FirstApp_data_store(FirstApp_data_t* input) {
  27 + dataVal = *input;
  28 +}
... ...
FirstApp-MSP-EXP430G2/FirstApp.ems 0 → 100644
  1 +version = "1.0.0";
  2 +description = "My first app";
  3 +
  4 +schema FirstApp {
  5 +
  6 + int16 data;
  7 +
  8 +};
... ...
FirstApp-MSP-EXP430G2/Output/FirstApp-Prog.hex 0 → 100644
  1 +:10C000005542200135D0085A82455A023140000479
  2 +:10C010003F4004000F93082492425A0220012F83CC
  3 +:10C020009F4FBCC60002F8233F4056000F930724E1
  4 +:10C0300092425A0220011F83CF430402F923B01217
  5 +:10C0400050C3B012A8C0B01220C432D0F000FD3FDF
  6 +:10C05000304074C6B01242C33041B01248C33041C0
  7 +:10C060009F42000200003041A24F00023041B01256
  8 +:10C070006AC48243080282430C02C2430602C243DE
  9 +:10C080000A02C2432502C2435602C2433402C243DB
  10 +:10C090002402C243180282431402824316028243DE
  11 +:10C0A0001002824312023041B0126EC0D243180215
  12 +:10C0B0003041B012A8C03041B24039020E025F4296
  13 +:10C0C0003A025F53C24F2502C2435602B012C0C4A7
  14 +:10C0D00030410B12B01260C44B4F1E4210021F427F
  15 +:10C0E00012020E9302200F9311240C4E0D4F1CF3DD
  16 +:10C0F0000DF30C9310240C4E0D4F3CF0FEFF3DF35E
  17 +:10C10000824C1002824D1202B012B8C04F4BB012D6
  18 +:10C11000F2C43B4130410D93EE23F83F0B120A125B
  19 +:10C1200009120812484FB01260C4494F1A42100257
  20 +:10C130001B4212028293080224241E434F487FF0C0
  21 +:10C140000F0018200C4E8E108E118E108E110D4E79
  22 +:10C150000E4A0F4B0EDC0FDD824E1002824F120290
  23 +:10C160004A434F49B012F2C44F4A384139413A412B
  24 +:10C170003B4130410E5E7F53E5270E5E7F53FA232D
  25 +:10C18000E13F0A93DA230B93D8235A43EA3FC29341
  26 +:10C19000180201203041C2433902C24F3B026E52A5
  27 +:10C1A000C24E3A024F43B0121CC14F93F327B01254
  28 +:10C1B000B8C03041F290FBFF3C02042082431402DD
  29 +:10C1C000824316024E436F42B0128EC130415F422D
  30 +:10C1D0003C027F500B007F90090005284E436F43BF
  31 +:10C1E000B0128EC130414F4F0F5F104F76C61C42C8
  32 +:10C1F00004020C93F3273F403E020E430D4C0D5EAC
  33 +:10C200006D4DCF4D00004D9340241E531F533E9063
  34 +:10C210000900F4234E4E6F43B0128EC13041D24319
  35 +:10C220003E02F24009003F026E436F43B0128EC1DE
  36 +:10C2300030413F40A8C63E403E02FE4F00001E5324
  37 +:10C240003F90BBC6FA23D2429EC651027E401400E4
  38 +:10C250006F43B0128EC130413F40A0C63E403E0207
  39 +:10C26000FE4F00001E533F90A8C6FA237E426F4344
  40 +:10C27000B0128EC13041F2400D003E02C2433F0277
  41 +:10C280006E436F43B0128EC130413E523E50360273
  42 +:10C29000CE4300001E533E904702FA237E40090021
  43 +:10C2A0006F43B0128EC13041D2933C0205244E43FD
  44 +:10C2B0006F43B0128EC130413F403E02B01260C0A9
  45 +:10C2C0006E436F43B0128EC13041D2933C020420C2
  46 +:10C2D0003F403E02B01268C04E436F42B0128EC162
  47 +:10C2E0003041C29318020424F2900B003B02012853
  48 +:10C2F00030415F423B020F5F104F88C61F4252021F
  49 +:10C300000F93F6278F123041E2431802B0125AC041
  50 +:10C310003041F24003001802B01254C03041C293C1
  51 +:10C320003C020938B012CAC23041C2933C020638FE
  52 +:10C33000B012A8C23041B012B4C13041B012CEC167
  53 +:10C340003041D2D321003041F2F0FEFF21003041D4
  54 +:10C35000B240805A2001C24358005F42FF107F93D1
  55 +:10C360000824C2435600D242FF105700D242FE10AA
  56 +:10C370005600F2D080FF5700F24024005300F2D064
  57 +:10C3800040002200F2F0BFFF2100D2D32200F2F0E1
  58 +:10C39000FEFF2100F2D22A00F2F0F7FF2900F2D0CE
  59 +:10C3A00010002A00F2F0EFFF2900F2D22900F2F08B
  60 +:10C3B000F7FF2900B240200180011F4290013F5049
  61 +:10C3C000B80B824F9401B24010008401D2D36100B7
  62 +:10C3D000E2D32600E2D34100E2D22600E2D24100BD
  63 +:10C3E000D2D32A00D2D32900F2F0FDFF2A00E2D3F3
  64 +:10C3F0002C00F2F0FDFF2B00E2D32D00F2F0FEFF47
  65 +:10C400002900F24081FF6100F2400C006400F2421A
  66 +:10C410006200F2F0FEFF6100B240E2C22002304151
  67 +:10C420000B120A12091232D232C2034319421A0203
  68 +:10C4300082431A020993032032D0D800F53F32D24A
  69 +:10C440003A401C021B430F4B0FF904242F4A0F9351
  70 +:10C4500001248F120B5B2A533A902202F423E43F0B
  71 +:10C460000F4232C203437FF230410D427DF232C2AD
  72 +:10C470000343F2F0FEFF29003E4064003F404C01C0
  73 +:10C480001F83FE23034303433E53F823D2D32900E3
  74 +:10C490003E40F4013F404C011F83FE23034303430E
  75 +:10C4A0003E53F823F2F0FEFF0300F2F0FDFF03001D
  76 +:10C4B000F2F0FDFF2B00D2D301004F4D02DF3041DF
  77 +:10C4C0001F420E021F53824F0802C243060282938C
  78 +:10C4D0000C020324C243670030411F4290013F50C9
  79 +:10C4E000B80B824F9401B24010008401C243670030
  80 +:10C4F00030414F4F02DF30410F120E120E4232C256
  81 +:10C50000034392D31A024F4E7FF24F4F02DFF2F0F5
  82 +:10C51000F7FF2300F2D22500B1C0D00004003E4155
  83 +:10C520003F4100130F120E125E42660082930C020E
  84 +:10C530003324F2F0FEFF2900D2D32900C2930A026D
  85 +:10C540000A204E930620B1C0D00004003E413F4176
  86 +:10C550000013C24E0A021F420C02CF4E00001F53AE
  87 +:10C56000824F0C025F420A027F53C24F0A02EB2342
  88 +:10C5700082430C02829308021F240E4232C20343FC
  89 +:10C58000A2D21A024F4E7FF24F4F02DFB1C0D0004D
  90 +:10C5900004003E413F410013924202020C0282938A
  91 +:10C5A0000802C7231F4290013F50B80B824F9401ED
  92 +:10C5B000B24010008401BD3F82438401DE3F0F1270
  93 +:10C5C0000E129252220292010E4232C20343A2D3B1
  94 +:10C5D0001A024F4E7FF24F4F02DFB1C0D00004006D
  95 +:10C5E0003E413F4100130F120E120D120C125F421A
  96 +:10C5F0002B002FF317241F4208020F9310245E42D2
  97 +:10C6000006024E9302206E4F5E537E53C24E0602C8
  98 +:10C6100011246E4F1F53824F0802C24E6700F2F082
  99 +:10C62000FDFF2B00B1C0D00008003C413D413E4120
  100 +:10C630003F41001382430802C2432502B012D2C018
  101 +:10C6400082930C02EC2382438401E93F0F120E1205
  102 +:10C650000D120C121F421E012F93072082438401EA
  103 +:10C66000B012B2C0B1C0D00008003C413D413E41D3
  104 +:06C670003F41001300131E
  105 +:10C67600EEC1DCC1DCC1DCC11EC232C2DCC158C2A3
  106 +:10C6860076C2F0C22AC3F0C21EC3F0C2F0C212C301
  107 +:10C6960008C3F0C2F0C2FCC20001B3ADF086470188
  108 +:10C6A60000007CDE18C987F423C50EAA151154E0D4
  109 +:06C6B600DCBD0D001100C7
  110 +:04C6BC00D8FF3A0267
  111 +:02C6C000000078
  112 +:10FFE00050C050C0F8C4E6C550C050C050C024C571
  113 +:10FFF00050C050C050C050C04CC6BEC550C000C05C
  114 +:040000030000C00039
  115 +:00000001FF
... ...
FirstApp-MSP-EXP430G2/Output/FirstApp-Prog.map 0 → 100644
  1 +Archive member included because of file (symbol)
  2 +
  3 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  4 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o (_reset_vector__)
  5 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  6 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__watchdog_support)
  7 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  8 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__init_stack)
  9 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  10 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__low_level_init)
  11 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  12 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__do_copy_data)
  13 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  14 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__do_clear_bss)
  15 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  16 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (__stop_progExec__)
  17 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  18 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o) (_endless_loop__)
  19 +/Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  20 + /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o (_unexpected_)
  21 +
  22 +Allocating common symbols
  23 +Common symbol size file
  24 +
  25 +Em_App_recvIdx 0x1 Output/FirstApp.obj
  26 +Em_App_xmitSize 0x1 Output/FirstApp.obj
  27 +Em_App_valp 0x2 Output/FirstApp.obj
  28 +Em_App_ind_u 0xc Output/FirstApp.obj
  29 +Em_App_recvSize 0x1 Output/FirstApp.obj
  30 +Em_App_msg_u 0x1c Output/FirstApp.obj
  31 +Em_App_pdHdlr 0x2 Output/FirstApp.obj
  32 +Em_App_bufp 0x2 Output/FirstApp.obj
  33 +Em_App_xmitIdx 0x1 Output/FirstApp.obj
  34 +Em_App_desc 0x2 Output/FirstApp.obj
  35 +
  36 +Discarded input sections
  37 +
  38 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  39 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  40 + .text.crt0 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  41 + .text 0x0000000000000000 0x0 Output/FirstApp-Prog.obj
  42 + .data 0x0000000000000000 0x0 Output/FirstApp-Prog.obj
  43 + .bss 0x0000000000000000 0x0 Output/FirstApp-Prog.obj
  44 + .text 0x0000000000000000 0x0 Output/FirstApp.obj
  45 + .data 0x0000000000000000 0x0 Output/FirstApp.obj
  46 + .bss 0x0000000000000000 0x0 Output/FirstApp.obj
  47 + .text.Em_App_marshallToBuf
  48 + 0x0000000000000000 0xd4 Output/FirstApp.obj
  49 + .text.Em_App_marshallToVal
  50 + 0x0000000000000000 0x11a Output/FirstApp.obj
  51 + .text.FirstApp_setDeviceName
  52 + 0x0000000000000000 0x6 Output/FirstApp.obj
  53 + .text.Em_App_startIndSend
  54 + 0x0000000000000000 0x1a Output/FirstApp.obj
  55 + .text.FirstApp_pairingOn
  56 + 0x0000000000000000 0x24 Output/FirstApp.obj
  57 + .text.FirstApp_pairingOff
  58 + 0x0000000000000000 0xa Output/FirstApp.obj
  59 + .text.FirstApp_disconnect
  60 + 0x0000000000000000 0x26 Output/FirstApp.obj
  61 + .text.FirstApp_broadcastOff
  62 + 0x0000000000000000 0x1c Output/FirstApp.obj
  63 + .text.FirstApp_activateParameters
  64 + 0x0000000000000000 0x1e Output/FirstApp.obj
  65 + .text.FirstApp_accept
  66 + 0x0000000000000000 0x20 Output/FirstApp.obj
  67 + .text.Em_App_sendIndicator
  68 + 0x0000000000000000 0x2 Output/FirstApp.obj
  69 + .text 0x0000000000000000 0x0 Output/Hal.obj
  70 + .data 0x0000000000000000 0x0 Output/Hal.obj
  71 + .bss 0x0000000000000000 0x0 Output/Hal.obj
  72 + .text.buttonHandler
  73 + 0x0000000000000000 0x28 Output/Hal.obj
  74 + .text.Hal_buttonEnable
  75 + 0x0000000000000000 0x3c Output/Hal.obj
  76 + .text.Hal_debugOn
  77 + 0x0000000000000000 0x18 Output/Hal.obj
  78 + .text.Hal_debugOff
  79 + 0x0000000000000000 0x1a Output/Hal.obj
  80 + .text.Hal_debugPulse
  81 + 0x0000000000000000 0x24 Output/Hal.obj
  82 + .text.Hal_delay
  83 + 0x0000000000000000 0x16 Output/Hal.obj
  84 + .text.Hal_ledOn
  85 + 0x0000000000000000 0x8 Output/Hal.obj
  86 + .text.Hal_ledOff
  87 + 0x0000000000000000 0x8 Output/Hal.obj
  88 + .text.Hal_ledRead
  89 + 0x0000000000000000 0x12 Output/Hal.obj
  90 + .text.Hal_ledToggle
  91 + 0x0000000000000000 0x8 Output/Hal.obj
  92 + .text.Hal_tickStart
  93 + 0x0000000000000000 0x24 Output/Hal.obj
  94 + .text.Em_Hal_watchOff
  95 + 0x0000000000000000 0x6 Output/Hal.obj
  96 + .text.Em_Hal_watchOn
  97 + 0x0000000000000000 0x14 Output/Hal.obj
  98 + .bss.appButtonHandler
  99 + 0x0000000000000000 0x2 Output/Hal.obj
  100 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  101 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  102 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  103 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  104 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  105 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  106 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  107 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  108 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  109 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  110 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  111 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  112 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  113 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  114 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  115 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  116 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  117 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  118 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  119 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  120 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  121 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  122 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  123 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  124 + .text 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  125 + .data 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  126 + .bss 0x0000000000000000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  127 +
  128 +Memory Configuration
  129 +
  130 +Name Origin Length Attributes
  131 +sfr 0x0000000000000000 0x0000000000000010
  132 +peripheral_8bit 0x0000000000000010 0x00000000000000f0
  133 +peripheral_16bit 0x0000000000000100 0x0000000000000100
  134 +ram 0x0000000000000200 0x0000000000000200 xw
  135 +infomem 0x0000000000001000 0x0000000000000100
  136 +infod 0x0000000000001000 0x0000000000000040
  137 +infoc 0x0000000000001040 0x0000000000000040
  138 +infob 0x0000000000001080 0x0000000000000040
  139 +infoa 0x00000000000010c0 0x0000000000000040
  140 +rom 0x000000000000c000 0x0000000000003fe0 xr
  141 +vectors 0x000000000000ffe0 0x0000000000000020
  142 +bsl 0x0000000000000000 0x0000000000000000
  143 +far_rom 0x0000000000000000 0x0000000000000000
  144 +*default* 0x0000000000000000 0xffffffffffffffff
  145 +
  146 +Linker script and memory map
  147 +
  148 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  149 +LOAD Output/FirstApp-Prog.obj
  150 +LOAD Output/FirstApp.obj
  151 +LOAD Output/Hal.obj
  152 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libgcc.a
  153 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/../../../../msp430/lib/libc.a
  154 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libgcc.a
  155 +LOAD /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a
  156 + 0x0000000000000040 PROVIDE (__info_segment_size, 0x40)
  157 + 0x0000000000001000 PROVIDE (__infod, 0x1000)
  158 + 0x0000000000001040 PROVIDE (__infoc, 0x1040)
  159 + 0x0000000000001080 PROVIDE (__infob, 0x1080)
  160 + 0x00000000000010c0 PROVIDE (__infoa, 0x10c0)
  161 + 0x0000000000000000 __IE1 = 0x0
  162 + 0x0000000000000002 __IFG1 = 0x2
  163 + 0x0000000000000001 __IE2 = 0x1
  164 + 0x0000000000000003 __IFG2 = 0x3
  165 + 0x0000000000000048 __ADC10DTC0 = 0x48
  166 + 0x0000000000000049 __ADC10DTC1 = 0x49
  167 + 0x000000000000004a __ADC10AE0 = 0x4a
  168 + 0x00000000000001b0 __ADC10CTL0 = 0x1b0
  169 + 0x00000000000001b2 __ADC10CTL1 = 0x1b2
  170 + 0x00000000000001b4 __ADC10MEM = 0x1b4
  171 + 0x00000000000001bc __ADC10SA = 0x1bc
  172 + 0x0000000000000056 __DCOCTL = 0x56
  173 + 0x0000000000000057 __BCSCTL1 = 0x57
  174 + 0x0000000000000058 __BCSCTL2 = 0x58
  175 + 0x0000000000000053 __BCSCTL3 = 0x53
  176 + 0x0000000000000059 __CACTL1 = 0x59
  177 + 0x000000000000005a __CACTL2 = 0x5a
  178 + 0x000000000000005b __CAPD = 0x5b
  179 + 0x0000000000000128 __FCTL1 = 0x128
  180 + 0x000000000000012a __FCTL2 = 0x12a
  181 + 0x000000000000012c __FCTL3 = 0x12c
  182 + 0x0000000000000020 __P1IN = 0x20
  183 + 0x0000000000000021 __P1OUT = 0x21
  184 + 0x0000000000000022 __P1DIR = 0x22
  185 + 0x0000000000000023 __P1IFG = 0x23
  186 + 0x0000000000000024 __P1IES = 0x24
  187 + 0x0000000000000025 __P1IE = 0x25
  188 + 0x0000000000000026 __P1SEL = 0x26
  189 + 0x0000000000000041 __P1SEL2 = 0x41
  190 + 0x0000000000000027 __P1REN = 0x27
  191 + 0x0000000000000028 __P2IN = 0x28
  192 + 0x0000000000000029 __P2OUT = 0x29
  193 + 0x000000000000002a __P2DIR = 0x2a
  194 + 0x000000000000002b __P2IFG = 0x2b
  195 + 0x000000000000002c __P2IES = 0x2c
  196 + 0x000000000000002d __P2IE = 0x2d
  197 + 0x000000000000002e __P2SEL = 0x2e
  198 + 0x0000000000000042 __P2SEL2 = 0x42
  199 + 0x000000000000002f __P2REN = 0x2f
  200 + 0x0000000000000018 __P3IN = 0x18
  201 + 0x0000000000000019 __P3OUT = 0x19
  202 + 0x000000000000001a __P3DIR = 0x1a
  203 + 0x000000000000001b __P3SEL = 0x1b
  204 + 0x0000000000000043 __P3SEL2 = 0x43
  205 + 0x0000000000000010 __P3REN = 0x10
  206 + 0x000000000000012e __TA0IV = 0x12e
  207 + 0x0000000000000160 __TA0CTL = 0x160
  208 + 0x0000000000000162 __TA0CCTL0 = 0x162
  209 + 0x0000000000000164 __TA0CCTL1 = 0x164
  210 + 0x0000000000000166 __TA0CCTL2 = 0x166
  211 + 0x0000000000000170 __TA0R = 0x170
  212 + 0x0000000000000172 __TA0CCR0 = 0x172
  213 + 0x0000000000000174 __TA0CCR1 = 0x174
  214 + 0x0000000000000176 __TA0CCR2 = 0x176
  215 + 0x000000000000011e __TA1IV = 0x11e
  216 + 0x0000000000000180 __TA1CTL = 0x180
  217 + 0x0000000000000182 __TA1CCTL0 = 0x182
  218 + 0x0000000000000184 __TA1CCTL1 = 0x184
  219 + 0x0000000000000186 __TA1CCTL2 = 0x186
  220 + 0x0000000000000190 __TA1R = 0x190
  221 + 0x0000000000000192 __TA1CCR0 = 0x192
  222 + 0x0000000000000194 __TA1CCR1 = 0x194
  223 + 0x0000000000000196 __TA1CCR2 = 0x196
  224 + 0x0000000000000060 __UCA0CTL0 = 0x60
  225 + 0x0000000000000061 __UCA0CTL1 = 0x61
  226 + 0x0000000000000062 __UCA0BR0 = 0x62
  227 + 0x0000000000000063 __UCA0BR1 = 0x63
  228 + 0x0000000000000064 __UCA0MCTL = 0x64
  229 + 0x0000000000000065 __UCA0STAT = 0x65
  230 + 0x0000000000000066 __UCA0RXBUF = 0x66
  231 + 0x0000000000000067 __UCA0TXBUF = 0x67
  232 + 0x000000000000005d __UCA0ABCTL = 0x5d
  233 + 0x000000000000005e __UCA0IRTCTL = 0x5e
  234 + 0x000000000000005f __UCA0IRRCTL = 0x5f
  235 + 0x0000000000000068 __UCB0CTL0 = 0x68
  236 + 0x0000000000000069 __UCB0CTL1 = 0x69
  237 + 0x000000000000006a __UCB0BR0 = 0x6a
  238 + 0x000000000000006b __UCB0BR1 = 0x6b
  239 + 0x000000000000006c __UCB0I2CIE = 0x6c
  240 + 0x000000000000006d __UCB0STAT = 0x6d
  241 + 0x000000000000006e __UCB0RXBUF = 0x6e
  242 + 0x000000000000006f __UCB0TXBUF = 0x6f
  243 + 0x0000000000000118 __UCB0I2COA = 0x118
  244 + 0x000000000000011a __UCB0I2CSA = 0x11a
  245 + 0x0000000000000120 __WDTCTL = 0x120
  246 + 0x00000000000010f8 __CALDCO_16MHZ = 0x10f8
  247 + 0x00000000000010f9 __CALBC1_16MHZ = 0x10f9
  248 + 0x00000000000010fa __CALDCO_12MHZ = 0x10fa
  249 + 0x00000000000010fb __CALBC1_12MHZ = 0x10fb
  250 + 0x00000000000010fc __CALDCO_8MHZ = 0x10fc
  251 + 0x00000000000010fd __CALBC1_8MHZ = 0x10fd
  252 + 0x00000000000010fe __CALDCO_1MHZ = 0x10fe
  253 + 0x00000000000010ff __CALBC1_1MHZ = 0x10ff
  254 +
  255 +.hash
  256 + *(.hash)
  257 +
  258 +.dynsym
  259 + *(.dynsym)
  260 +
  261 +.dynstr
  262 + *(.dynstr)
  263 +
  264 +.gnu.version
  265 + *(.gnu.version)
  266 +
  267 +.gnu.version_d
  268 + *(.gnu.version_d)
  269 +
  270 +.gnu.version_r
  271 + *(.gnu.version_r)
  272 +
  273 +.rel.init
  274 + *(.rel.init)
  275 +
  276 +.rela.init
  277 + *(.rela.init)
  278 +
  279 +.rel.fini
  280 + *(.rel.fini)
  281 +
  282 +.rela.fini
  283 + *(.rela.fini)
  284 +
  285 +.rel.text
  286 + *(.rel.text .rel.text.* .rel.gnu.linkonce.t.*)
  287 +
  288 +.rela.text
  289 + *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*)
  290 +
  291 +.rel.rodata
  292 + *(.rel.rodata .rel.rodata.* .rel.gnu.linkonce.r.*)
  293 +
  294 +.rela.rodata
  295 + *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*)
  296 +
  297 +.rel.data
  298 + *(.rel.data .rel.data.* .rel.gnu.linkonce.d.*)
  299 +
  300 +.rela.data
  301 + *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*)
  302 +
  303 +.rel.bss
  304 + *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*)
  305 +
  306 +.rela.bss
  307 + *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*)
  308 +
  309 +.rel.ctors
  310 + *(.rel.ctors)
  311 +
  312 +.rela.ctors
  313 + *(.rela.ctors)
  314 +
  315 +.rel.dtors
  316 + *(.rel.dtors)
  317 +
  318 +.rela.dtors
  319 + *(.rela.dtors)
  320 +
  321 +.rel.got
  322 + *(.rel.got)
  323 +
  324 +.rela.got
  325 + *(.rela.got)
  326 +
  327 +.rel.plt
  328 + *(.rel.plt)
  329 +
  330 +.rela.plt
  331 + *(.rela.plt)
  332 +
  333 +.text 0x000000000000c000 0x676
  334 + 0x000000000000c000 . = ALIGN (0x2)
  335 + *(.init .init.*)
  336 + *(.init0)
  337 + .init0 0x000000000000c000 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_reset_vector__.o)
  338 + 0x000000000000c000 _reset_vector__
  339 + *(.init1)
  340 + .init1 0x000000000000c000 0xc /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  341 + 0x000000000000c000 __watchdog_support
  342 + *(.init2)
  343 + .init2 0x000000000000c00c 0x4 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  344 + 0x000000000000c00c __init_stack
  345 + *(.init3)
  346 + .init3 0x000000000000c010 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__low_level_init.o)
  347 + 0x000000000000c010 __low_level_init
  348 + *(.init4)
  349 + .init4 0x000000000000c010 0x18 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  350 + 0x000000000000c010 __do_copy_data
  351 + .init4 0x000000000000c028 0x16 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  352 + 0x000000000000c028 __do_clear_bss
  353 + *(.init5)
  354 + *(.init6)
  355 + *(.init7)
  356 + *(.init8)
  357 + *(.init9)
  358 + .init9 0x000000000000c03e 0xc Output/FirstApp-Prog.obj
  359 + 0x000000000000c03e main
  360 + *(.fini9)
  361 + .fini9 0x000000000000c04a 0x0 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__stop_progExec__.o)
  362 + 0x000000000000c04a __stop_progExec__
  363 + *(.fini8)
  364 + *(.fini7)
  365 + *(.fini6)
  366 + *(.fini5)
  367 + *(.fini4)
  368 + *(.fini3)
  369 + *(.fini2)
  370 + *(.fini1)
  371 + *(.fini0)
  372 + .fini0 0x000000000000c04a 0x6 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  373 + 0x000000000000c04a _endless_loop__
  374 + *(.fini .fini.*)
  375 + 0x000000000000c050 . = ALIGN (0x2)
  376 + 0x000000000000c050 __ctors_start = .
  377 + *(.ctors)
  378 + 0x000000000000c050 __ctors_end = .
  379 + 0x000000000000c050 __dtors_start = .
  380 + *(.dtors)
  381 + 0x000000000000c050 __dtors_end = .
  382 + 0x000000000000c050 . = ALIGN (0x2)
  383 + *(.text .text.* .gnu.linkonce.t.*)
  384 + .text 0x000000000000c050 0x4 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  385 + 0x000000000000c050 __isr_1
  386 + 0x000000000000c050 __isr_4
  387 + 0x000000000000c050 __isr_11
  388 + 0x000000000000c050 __isr_5
  389 + 0x000000000000c050 __isr_10
  390 + 0x000000000000c050 __isr_0
  391 + 0x000000000000c050 __isr_8
  392 + 0x000000000000c050 __isr_9
  393 + 0x000000000000c050 __isr_6
  394 + 0x000000000000c050 __isr_14
  395 + .text.FirstApp_connectHandler
  396 + 0x000000000000c054 0x6 Output/FirstApp-Prog.obj
  397 + 0x000000000000c054 FirstApp_connectHandler
  398 + .text.FirstApp_disconnectHandler
  399 + 0x000000000000c05a 0x6 Output/FirstApp-Prog.obj
  400 + 0x000000000000c05a FirstApp_disconnectHandler
  401 + .text.FirstApp_data_fetch
  402 + 0x000000000000c060 0x8 Output/FirstApp-Prog.obj
  403 + 0x000000000000c060 FirstApp_data_fetch
  404 + .text.FirstApp_data_store
  405 + 0x000000000000c068 0x6 Output/FirstApp-Prog.obj
  406 + 0x000000000000c068 FirstApp_data_store
  407 + .text.FirstApp_reset
  408 + 0x000000000000c06e 0x3a Output/FirstApp.obj
  409 + 0x000000000000c06e FirstApp_reset
  410 + .text.FirstApp_start
  411 + 0x000000000000c0a8 0xa Output/FirstApp.obj
  412 + 0x000000000000c0a8 FirstApp_start
  413 + .text.Em_Message_restart
  414 + 0x000000000000c0b2 0x6 Output/FirstApp.obj
  415 + 0x000000000000c0b2 Em_Message_restart
  416 + .text.Em_App_startResSend
  417 + 0x000000000000c0b8 0x1a Output/FirstApp.obj
  418 + 0x000000000000c0b8 Em_App_startResSend
  419 + .text.Em_Message_nextXmit
  420 + 0x000000000000c0d2 0x4a Output/FirstApp.obj
  421 + 0x000000000000c0d2 Em_Message_nextXmit
  422 + .text.Em_App_xmitReady
  423 + 0x000000000000c11c 0x72 Output/FirstApp.obj
  424 + 0x000000000000c11c Em_App_xmitReady
  425 + .text.Em_App_sendResponse
  426 + 0x000000000000c18e 0x26 Output/FirstApp.obj
  427 + 0x000000000000c18e Em_App_sendResponse
  428 + .text.Em_App_sysStoreDispatch
  429 + 0x000000000000c1b4 0x1a Output/FirstApp.obj
  430 + 0x000000000000c1b4 Em_App_sysStoreDispatch
  431 + .text.Em_App_sysFetchDispatch
  432 + 0x000000000000c1ce 0xda Output/FirstApp.obj
  433 + 0x000000000000c1ce Em_App_sysFetchDispatch
  434 + .text.Em_App_fetchDispatch
  435 + 0x000000000000c2a8 0x22 Output/FirstApp.obj
  436 + 0x000000000000c2a8 Em_App_fetchDispatch
  437 + .text.Em_App_storeDispatch
  438 + 0x000000000000c2ca 0x18 Output/FirstApp.obj
  439 + 0x000000000000c2ca Em_App_storeDispatch
  440 + .text.Em_Message_dispatch
  441 + 0x000000000000c2e2 0x60 Output/FirstApp.obj
  442 + 0x000000000000c2e2 Em_Message_dispatch
  443 + .text.Hal_connected
  444 + 0x000000000000c342 0x6 Output/Hal.obj
  445 + 0x000000000000c342 Hal_connected
  446 + .text.Hal_disconnected
  447 + 0x000000000000c348 0x8 Output/Hal.obj
  448 + 0x000000000000c348 Hal_disconnected
  449 + .text.Hal_init
  450 + 0x000000000000c350 0xd0 Output/Hal.obj
  451 + 0x000000000000c350 Hal_init
  452 + .text.Hal_idleLoop
  453 + 0x000000000000c420 0x40 Output/Hal.obj
  454 + 0x000000000000c420 Hal_idleLoop
  455 + .text.Em_Hal_lock
  456 + 0x000000000000c460 0xa Output/Hal.obj
  457 + 0x000000000000c460 Em_Hal_lock
  458 + .text.Em_Hal_reset
  459 + 0x000000000000c46a 0x56 Output/Hal.obj
  460 + 0x000000000000c46a Em_Hal_reset
  461 + .text.Em_Hal_startSend
  462 + 0x000000000000c4c0 0x32 Output/Hal.obj
  463 + 0x000000000000c4c0 Em_Hal_startSend
  464 + .text.Em_Hal_unlock
  465 + 0x000000000000c4f2 0x6 Output/Hal.obj
  466 + 0x000000000000c4f2 Em_Hal_unlock
  467 + .text.buttonIsr
  468 + 0x000000000000c4f8 0x2c Output/Hal.obj
  469 + 0x000000000000c4f8 __isr_2
  470 + 0x000000000000c4f8 buttonIsr
  471 + .text.rxIsr 0x000000000000c524 0x9a Output/Hal.obj
  472 + 0x000000000000c524 rxIsr
  473 + 0x000000000000c524 __isr_7
  474 + .text.timerIsr
  475 + 0x000000000000c5be 0x28 Output/Hal.obj
  476 + 0x000000000000c5be timerIsr
  477 + 0x000000000000c5be __isr_13
  478 + .text.txAckIsr
  479 + 0x000000000000c5e6 0x66 Output/Hal.obj
  480 + 0x000000000000c5e6 txAckIsr
  481 + 0x000000000000c5e6 __isr_3
  482 + .text.uartWatchdogIsr
  483 + 0x000000000000c64c 0x28 Output/Hal.obj
  484 + 0x000000000000c64c uartWatchdogIsr
  485 + 0x000000000000c64c __isr_12
  486 + .text.crt0 0x000000000000c674 0x2 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  487 + 0x000000000000c674 _unexpected_
  488 + 0x000000000000c676 . = ALIGN (0x2)
  489 +
  490 +.rodata 0x000000000000c676 0x46
  491 + 0x000000000000c676 . = ALIGN (0x2)
  492 + *(.rodata .rodata.* .gnu.linkonce.r.*)
  493 + .rodata.Em_App_sysFetchDispatch
  494 + 0x000000000000c676 0x12 Output/FirstApp.obj
  495 + .rodata.Em_Message_dispatch
  496 + 0x000000000000c688 0x16 Output/FirstApp.obj
  497 + .rodata.Em_App_endian
  498 + 0x000000000000c69e 0x2 Output/FirstApp.obj
  499 + 0x000000000000c69e Em_App_endian
  500 + .rodata.Em_App_build
  501 + 0x000000000000c6a0 0x8 Output/FirstApp.obj
  502 + 0x000000000000c6a0 Em_App_build
  503 + .rodata.Em_App_hash
  504 + 0x000000000000c6a8 0x13 Output/FirstApp.obj
  505 + 0x000000000000c6a8 Em_App_hash
  506 + 0x000000000000c6bc . = ALIGN (0x2)
  507 + *fill* 0x000000000000c6bb 0x1 00
  508 + 0x000000000000c6bc _etext = .
  509 +
  510 +.data 0x0000000000000200 0x4 load address 0x000000000000c6bc
  511 + 0x0000000000000200 . = ALIGN (0x2)
  512 + 0x0000000000000200 PROVIDE (__data_start, .)
  513 + *(.data .data.* .gnu.linkonce.d.*)
  514 + .data.dataVal 0x0000000000000200 0x2 Output/FirstApp-Prog.obj
  515 + .data.Em_App_inBuf
  516 + 0x0000000000000202 0x2 Output/FirstApp.obj
  517 + 0x0000000000000202 Em_App_inBuf
  518 + 0x0000000000000204 . = ALIGN (0x2)
  519 + 0x0000000000000204 _edata = .
  520 + 0x000000000000c6bc PROVIDE (__data_load_start, LOADADDR (.data))
  521 + 0x0000000000000004 PROVIDE (__data_size, SIZEOF (.data))
  522 +
  523 +.bss 0x0000000000000204 0x56 load address 0x000000000000c6c0
  524 + 0x0000000000000204 PROVIDE (__bss_start, .)
  525 + *(.bss .bss.*)
  526 + .bss.Em_App_devName
  527 + 0x0000000000000204 0x2 Output/FirstApp.obj
  528 + 0x0000000000000204 Em_App_devName
  529 + .bss._Em_Message_txCnt
  530 + 0x0000000000000206 0x1 Output/FirstApp.obj
  531 + 0x0000000000000206 _Em_Message_txCnt
  532 + *fill* 0x0000000000000207 0x1 00
  533 + .bss._Em_Message_txBuf
  534 + 0x0000000000000208 0x2 Output/FirstApp.obj
  535 + 0x0000000000000208 _Em_Message_txBuf
  536 + .bss._Em_Message_rxCnt
  537 + 0x000000000000020a 0x1 Output/FirstApp.obj
  538 + 0x000000000000020a _Em_Message_rxCnt
  539 + *fill* 0x000000000000020b 0x1 00
  540 + .bss._Em_Message_rxBuf
  541 + 0x000000000000020c 0x2 Output/FirstApp.obj
  542 + 0x000000000000020c _Em_Message_rxBuf
  543 + .bss.Em_App_outBuf
  544 + 0x000000000000020e 0x2 Output/FirstApp.obj
  545 + 0x000000000000020e Em_App_outBuf
  546 + .bss.Em_App_xmitMask
  547 + 0x0000000000000210 0x4 Output/FirstApp.obj
  548 + 0x0000000000000210 Em_App_xmitMask
  549 + .bss.Em_App_fileIndex
  550 + 0x0000000000000214 0x4 Output/FirstApp.obj
  551 + 0x0000000000000214 Em_App_fileIndex
  552 + .bss.Em_App_state
  553 + 0x0000000000000218 0x1 Output/FirstApp.obj
  554 + 0x0000000000000218 Em_App_state
  555 + *fill* 0x0000000000000219 0x1 00
  556 + .bss.handlerEvents
  557 + 0x000000000000021a 0x2 Output/Hal.obj
  558 + .bss.handlerTab
  559 + 0x000000000000021c 0x6 Output/Hal.obj
  560 + .bss.clockTick
  561 + 0x0000000000000222 0x2 Output/Hal.obj
  562 + *(COMMON)
  563 + COMMON 0x0000000000000224 0x36 Output/FirstApp.obj
  564 + 0x0000000000000224 Em_App_recvIdx
  565 + 0x0000000000000225 Em_App_xmitSize
  566 + 0x0000000000000226 Em_App_valp
  567 + 0x0000000000000228 Em_App_ind_u
  568 + 0x0000000000000234 Em_App_recvSize
  569 + 0x0000000000000236 Em_App_msg_u
  570 + 0x0000000000000252 Em_App_pdHdlr
  571 + 0x0000000000000254 Em_App_bufp
  572 + 0x0000000000000256 Em_App_xmitIdx
  573 + 0x0000000000000258 Em_App_desc
  574 + 0x000000000000025a . = ALIGN (0x2)
  575 + 0x000000000000025a PROVIDE (__bss_end, .)
  576 + 0x0000000000000056 PROVIDE (__bss_size, SIZEOF (.bss))
  577 +
  578 +.noinit 0x000000000000025a 0x2 load address 0x000000000000c6c0
  579 + 0x000000000000025a PROVIDE (__noinit_start, .)
  580 + *(.noinit .noinit.*)
  581 + .noinit.crt0 0x000000000000025a 0x2 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  582 + 0x000000000000025a __wdt_clear_value
  583 + 0x000000000000025c . = ALIGN (0x2)
  584 + 0x000000000000025c PROVIDE (__noinit_end, .)
  585 + 0x000000000000025c . = ALIGN (0x2)
  586 + 0x000000000000025c _end = .
  587 +
  588 +.infomem 0x0000000000001000 0x0
  589 + *(.infomem)
  590 + 0x0000000000001000 . = ALIGN (0x2)
  591 + *(.infomem.*)
  592 +
  593 +.infomemnobits 0x0000000000001000 0x0
  594 + *(.infomemnobits)
  595 + 0x0000000000001000 . = ALIGN (0x2)
  596 + *(.infomemnobits.*)
  597 +
  598 +.infoa
  599 + *(.infoa .infoa.*)
  600 +
  601 +.infob
  602 + *(.infob .infob.*)
  603 +
  604 +.infoc
  605 + *(.infoc .infoc.*)
  606 +
  607 +.infod
  608 + *(.infod .infod.*)
  609 +
  610 +.vectors 0x000000000000ffe0 0x20
  611 + 0x000000000000ffe0 PROVIDE (__vectors_start, .)
  612 + *(.vectors*)
  613 + .vectors 0x000000000000ffe0 0x20 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/crt0ivtbl16.o
  614 + 0x000000000000ffe0 __ivtbl_16
  615 + 0x0000000000010000 _vectors_end = .
  616 +
  617 +.fartext 0x0000000000000000 0x0
  618 + 0x0000000000000000 . = ALIGN (0x2)
  619 + *(.fartext)
  620 + 0x0000000000000000 . = ALIGN (0x2)
  621 + *(.fartext.*)
  622 + 0x0000000000000000 _efartext = .
  623 +
  624 +.profiler
  625 + *(.profiler)
  626 +
  627 +.stab
  628 + *(.stab)
  629 +
  630 +.stabstr
  631 + *(.stabstr)
  632 +
  633 +.stab.excl
  634 + *(.stab.excl)
  635 +
  636 +.stab.exclstr
  637 + *(.stab.exclstr)
  638 +
  639 +.stab.index
  640 + *(.stab.index)
  641 +
  642 +.stab.indexstr
  643 + *(.stab.indexstr)
  644 +
  645 +.comment
  646 + *(.comment)
  647 +
  648 +.debug
  649 + *(.debug)
  650 +
  651 +.line
  652 + *(.line)
  653 +
  654 +.debug_srcinfo
  655 + *(.debug_srcinfo)
  656 +
  657 +.debug_sfnames
  658 + *(.debug_sfnames)
  659 +
  660 +.debug_aranges 0x0000000000000000 0x180
  661 + *(.debug_aranges)
  662 + .debug_aranges
  663 + 0x0000000000000000 0x24 Output/FirstApp-Prog.obj
  664 + .debug_aranges
  665 + 0x0000000000000024 0x6c Output/FirstApp.obj
  666 + .debug_aranges
  667 + 0x0000000000000090 0x78 Output/Hal.obj
  668 + .debug_aranges
  669 + 0x0000000000000108 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  670 + .debug_aranges
  671 + 0x000000000000011c 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  672 + .debug_aranges
  673 + 0x0000000000000130 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  674 + .debug_aranges
  675 + 0x0000000000000144 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  676 + .debug_aranges
  677 + 0x0000000000000158 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  678 + .debug_aranges
  679 + 0x000000000000016c 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  680 +
  681 +.debug_pubnames
  682 + *(.debug_pubnames)
  683 +
  684 +.debug_info 0x0000000000000000 0x1a82
  685 + *(.debug_info)
  686 + .debug_info 0x0000000000000000 0x1ce Output/FirstApp-Prog.obj
  687 + .debug_info 0x00000000000001ce 0x8e2 Output/FirstApp.obj
  688 + .debug_info 0x0000000000000ab0 0xc78 Output/Hal.obj
  689 + .debug_info 0x0000000000001728 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  690 + .debug_info 0x00000000000017b7 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  691 + .debug_info 0x0000000000001846 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  692 + .debug_info 0x00000000000018d5 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  693 + .debug_info 0x0000000000001964 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  694 + .debug_info 0x00000000000019f3 0x8f /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  695 + *(.gnu.linkonce.wi.*)
  696 +
  697 +.debug_abbrev 0x0000000000000000 0x6d2
  698 + *(.debug_abbrev)
  699 + .debug_abbrev 0x0000000000000000 0xb0 Output/FirstApp-Prog.obj
  700 + .debug_abbrev 0x00000000000000b0 0x250 Output/FirstApp.obj
  701 + .debug_abbrev 0x0000000000000300 0x35a Output/Hal.obj
  702 + .debug_abbrev 0x000000000000065a 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  703 + .debug_abbrev 0x000000000000066e 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  704 + .debug_abbrev 0x0000000000000682 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  705 + .debug_abbrev 0x0000000000000696 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  706 + .debug_abbrev 0x00000000000006aa 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  707 + .debug_abbrev 0x00000000000006be 0x14 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  708 +
  709 +.debug_line 0x0000000000000000 0xac7
  710 + *(.debug_line)
  711 + .debug_line 0x0000000000000000 0x120 Output/FirstApp-Prog.obj
  712 + .debug_line 0x0000000000000120 0x34f Output/FirstApp.obj
  713 + .debug_line 0x000000000000046f 0x3a9 Output/Hal.obj
  714 + .debug_line 0x0000000000000818 0x72 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__watchdog_support.o)
  715 + .debug_line 0x000000000000088a 0x70 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(__init_stack.o)
  716 + .debug_line 0x00000000000008fa 0x76 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_copy_data.o)
  717 + .debug_line 0x0000000000000970 0x76 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_clear_bss.o)
  718 + .debug_line 0x00000000000009e6 0x71 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_endless_loop__.o)
  719 + .debug_line 0x0000000000000a57 0x70 /Applications/Development/Em-Builder-IDE/eclipse/emmoco/msptools/bin/../lib/gcc/msp430/4.6.1/libcrt0.a(_unexpected_.o)
  720 +
  721 +.debug_frame 0x0000000000000000 0x35c
  722 + *(.debug_frame)
  723 + .debug_frame 0x0000000000000000 0x4e Output/FirstApp-Prog.obj
  724 + .debug_frame 0x000000000000004e 0x16e Output/FirstApp.obj
  725 + .debug_frame 0x00000000000001bc 0x1a0 Output/Hal.obj
  726 +
  727 +.debug_str 0x0000000000000000 0x8d7
  728 + *(.debug_str)
  729 + .debug_str 0x0000000000000000 0x194 Output/FirstApp-Prog.obj
  730 + 0x1d0 (size before relaxing)
  731 + .debug_str 0x0000000000000194 0x3dc Output/FirstApp.obj
  732 + 0x521 (size before relaxing)
  733 + .debug_str 0x0000000000000570 0x367 Output/Hal.obj
  734 + 0x5a8 (size before relaxing)
  735 +
  736 +.debug_loc 0x0000000000000000 0x597
  737 + *(.debug_loc)
  738 + .debug_loc 0x0000000000000000 0x3b2 Output/FirstApp.obj
  739 + .debug_loc 0x00000000000003b2 0x1e5 Output/Hal.obj
  740 +
  741 +.debug_macinfo
  742 + *(.debug_macinfo)
  743 +
  744 +.debug_pubtypes
  745 + *(.debug_pubtypes)
  746 +
  747 +.debug_ranges 0x0000000000000000 0x190
  748 + *(.debug_ranges)
  749 + .debug_ranges 0x0000000000000000 0x18 Output/FirstApp-Prog.obj
  750 + .debug_ranges 0x0000000000000018 0x6c Output/FirstApp.obj
  751 + .debug_ranges 0x0000000000000084 0x10c Output/Hal.obj
  752 + 0x0000000000000400 PROVIDE (__stack, (ORIGIN (ram) + 0x200))
  753 + 0x000000000000c6bc PROVIDE (__data_start_rom, _etext)
  754 + 0x000000000000c6c0 PROVIDE (__data_end_rom, (_etext + SIZEOF (.data)))
  755 +OUTPUT(Output/FirstApp-Prog.out elf32-msp430)
... ...
FirstApp-MSP-EXP430G2/Output/FirstApp-Prog.obj 0 → 100644
No preview for this file type
FirstApp-MSP-EXP430G2/Output/FirstApp-Prog.out 0 → 100755
No preview for this file type
FirstApp-MSP-EXP430G2/Output/FirstApp.obj 0 → 100644
No preview for this file type
FirstApp-MSP-EXP430G2/Output/Hal.obj 0 → 100644
No preview for this file type
FirstApp-MSP-EXP430G2/Schema-Imports/system@emmoco.com/System.ems 0 → 100644
  1 +owner = "system@emmoco.com"
  2 +
  3 +schema System {
  4 +
  5 + // protocolLevel #13
  6 +
  7 + enum ParameterGroup {
  8 + GROUP_A, GROUP_B
  9 + }
  10 +
  11 + // protocolLevel #1
  12 +
  13 + uint8 $schemaUuid[16] { // protocolLevel #10 -- invisible to applications
  14 + readonly
  15 + }
  16 +
  17 + uint16 $mcmProtocolLevel {
  18 + readonly
  19 + }
  20 +
  21 + uint16 $eapProtocolLevel {
  22 + readonly
  23 + }
  24 +
  25 + uint8 $eapBuildDate[8] { // protocolLevel #5 -- rename from $eapBuildNumber
  26 + readonly
  27 + }
  28 +
  29 + // protocolLevel #2
  30 +
  31 + int16 $fileIndexReset {
  32 + writeonly
  33 + }
  34 +
  35 + // protocolLevel #5
  36 +
  37 + // protocolLevel #12 -- increase size to 20
  38 +
  39 + uint8 $schemaHash[20] {
  40 + readonly
  41 + }
  42 +
  43 + // protocolLevel #7
  44 +
  45 + struct ResourceCount {
  46 + uint8 app
  47 + uint8 sys
  48 + }
  49 +
  50 + ResourceCount $resourceCount {
  51 + readonly
  52 + }
  53 +
  54 + // protocolLevel #9
  55 +
  56 + int8 $mobileRssi {
  57 + readonly
  58 + }
  59 +
  60 + // protocolLevel #11
  61 +
  62 + uint8 $mcmDisconnect {
  63 + writeonly
  64 + }
  65 +
  66 + // protocolLevel #13
  67 +
  68 + ParameterGroup $activeGroup {
  69 + readwrite
  70 + }
  71 +
  72 +}
... ...
FirstApp-MSP-EXP430G2/bundle.properties 0 → 100644
  1 +# generated file - do not edit
  2 +
  3 +bundle.requires = com.emmoco.schema.translator
  4 +com.emmoco.framework.Properties.applicationDirectory = Em
  5 +com.emmoco.framework.Properties.schemaDestinationDirectory = Em
  6 +com.emmoco.framework.Properties.serverAPIToken =
  7 +com.emmoco.framework.Properties.align16 = 2
  8 +com.emmoco.framework.Properties.align32 = 4
  9 +com.emmoco.framework.Properties.schemaFile = /Users/imanol/devel/em-builder/FirstApp-MSP-EXP430G2/FirstApp.ems
  10 +com.emmoco.framework.Properties.toolVersion = 13.4.1.201311121909
... ...
FirstApp-MSP-EXP430G2/makefile 0 → 100644
  1 +APPNAME = FirstApp
  2 +PLATFORM = ../Platform-MSP-EXP430G2
  3 +
  4 +include $(PLATFORM)/rules.mk
... ...