Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: LoRaWAN-SanJose_Bootcamp LoRaWAN-grove-cayenne LoRaWAN-classC-demo LoRaWAN-grove-cayenne ... more
utilities.h
- Committer:
- Wayne Roberts
- Date:
- 2018-03-29
- Revision:
- 5:4e9d41359897
- Parent:
- 0:6b3ac9c5a042
- Child:
- 11:ce1317758488
File content as of revision 5:4e9d41359897:
long random_at_most(long max);
void memcpyr( uint8_t *dst, const uint8_t *src, uint16_t size );
#ifdef ENABLE_VT100
void print_buf(const uint8_t* const buf, uint8_t len, const char* txt, uint8_t row);
#else
void print_buf(const uint8_t* const buf, uint8_t len, const char* txt);
#endif
bool ValueInRange( int8_t value, int8_t min, int8_t max );
#define MIN( a, b ) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
#define MAX( a, b ) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) )