Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system

Dependencies:   FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem

Fork of AxedaGo-Freescal_FRDM-KL46Z by Axeda Corp

AMMPC/axToolkit.c

Committer:
AxedaCorp
Date:
2014-07-02
Revision:
2:2f9019c5a9fc
Parent:
0:65004368569c

File content as of revision 2:2f9019c5a9fc:

#include "axToolkit.h"
#include "axTransport.h"

int debugEnabled=AX_TRUE;

void printDebug(char *msg) {
    if(debugEnabled==AX_TRUE){
    	ax_print(AX_DEBUG_MSG, msg);
        }
    }

void printError(char *msg) {
   ax_print(AX_ERROR_MSG, msg);
   }

int ax_debugEnabled() {
    if(debugEnabled==1) { return AX_TRUE; }
    else {return AX_FALSE; }
    }