src/patch.c
__attribute__((at(0x00218C00, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
uint8_t swap_bits(uint8_t byte) {
	return (uint8_t)(((byte & 0x01) << 7) |
			((byte & 0x02) << 5) |
			((byte & 0x04) << 3) |
			((byte & 0x08) << 1) |
			((byte & 0x10) >> 1) |
			((byte & 0x20) >> 3) |
			((byte & 0x40) >> 5) |
			((byte & 0x80) >> 7));	
}
/*
Function allowing to convert a little endian byte to big endian
*/
Function allowing to convert a little endian byte to big endian
Function allowing to convert a little endian byte to big endian
__attribute__((at(0x00218C00, "", CHIP_VER_BCM4375B1_BT, FW_VER_S20)))
uint8_t swap_bits(uint8_t byte) {
	return (uint8_t)(((byte & 0x01) << 7) |
			((byte & 0x02) << 5) |
			((byte & 0x04) << 3) |
			((byte & 0x08) << 1) |
			((byte & 0x10) >> 1) |
			((byte & 0x20) >> 3) |
			((byte & 0x40) >> 5) |
			((byte & 0x80) >> 7));	
}
__attribute__ ( ( at ( 0x00218C00 , " " , CHIP_VER_BCM4375B1_BT , FW_VER_S20 ) ) ) uint8_t swap_bits ( uint8_t byte ) { return ( uint8_t ) ( ( ( byte & 0x01 ) << 7 ) | ( ( byte & 0x02 ) << 5 ) | ( ( byte & 0x04 ) << 3 ) | ( ( byte & 0x08 ) << 1 ) | ( ( byte & 0x10 ) >> 1 ) | ( ( byte & 0x20 ) >> 3 ) | ( ( byte & 0x40 ) >> 5 ) | ( ( byte & 0x80 ) >> 7 ) ) ; }
Function allowing to convert a little endian byte to big endian
Function allowing to convert a little endian byte to big endian