#ifndef _LEPTO_TOOLS_H_
#define _LEPTO_TOOLS_H_
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

//#include <stdbool.h>
#include <stdint.h>

#define SWAP(a,b) {typeof(b) tmp=a; a=b; b=tmp;}


#ifdef __cplusplus
extern "C"
{
#endif


   //void delay(uint32_t nCount);
   char *itoa_l(int value,  char *buf, int maxBuf, int base, int digitsCount=0, bool checkNegative=true );
   char *litoa(long int value,  char *buf, int maxBuf, int base, int digitCount=0, bool checkNegative=true );


#ifdef __cplusplus
}
#endif


//---fin-----------------------------------------------------------------------
#endif // ? ! _LEPTO_TOOLS_H_
