/* Copies n bytes from memory area src to memory area dest. The memory areas should not overlap. */
static void MAC_memcpy(uint8_t *dest, const uint8_t *src, uint32_t n)
/* Copies n bytes from memory area src to memory area dest. The memory areas should not overlap. */
static void MAC_memcpy(uint8_t *dest, const uint8_t *src, uint32_t n)
{
    uint8_t *d = dest;
    while( n > 0u ) {
    	n--;
        d[n] = src[n];
    }
}