keil_examples/USBHostLite/UsbHost/Host/usbhost_lpc17xx.c
/*
**************************************************************************************************************
*                                         WRITE BE 32U
*
* Description: This function is used to write an unsigned integer into a charecter buffer in the platform
*              containing big endian processor
*
* Arguments  : pmem    Pointer to the charecter buffer
*              val     Value to be placed in the charecter buffer
*
* Returns    : None
*
**************************************************************************************************************
*/
WRITE BE 32U
Description: This function is used to write an unsigned integer into a charecter buffer in the platform
containing big endian processor

Arguments  : pmem    Pointer to the charecter buffer
val     Value to be placed in the charecter buffer

Returns    : None
WRITE BE 32U Description : This function is used to write an unsigned integer into a charecter buffer in the platform containing big endian processor Arguments : pmem Pointer to the charecter buffer val Value to be placed in the charecter buffer Returns : None
void  WriteBE32U (volatile  uint8_t  *pmem,
                            uint32_t   val)
{
    pmem[0] = ((uint8_t *)&val)[3];
    pmem[1] = ((uint8_t *)&val)[2];
    pmem[2] = ((uint8_t *)&val)[1];
    pmem[3] = ((uint8_t *)&val)[0];
}
void WriteBE32U ( volatile uint8_t * pmem , uint32_t val ) { pmem [ 0 ] = ( ( uint8_t * ) & val ) [ 3 ] ; pmem [ 1 ] = ( ( uint8_t * ) & val ) [ 2 ] ; pmem [ 2 ] = ( ( uint8_t * ) & val ) [ 1 ] ; pmem [ 3 ] = ( ( uint8_t * ) & val ) [ 0 ] ; }
WRITE BE 32U
Description: This function is used to write an unsigned integer into a charecter buffer in the platform
containing big endian processor
WRITE BE 32U Description : This function is used to write an unsigned integer into a charecter buffer in the platform containing big endian processor