11 #if defined(SDK_I2C_BASED_COMPONENT_USED) && SDK_I2C_BASED_COMPONENT_USED
50 #if defined(SDK_I2C_BASED_COMPONENT_USED) && SDK_I2C_BASED_COMPONENT_USED
51 void BOARD_LPI2C_Init(
LPI2C_Type *base, uint32_t clkSrc_Hz)
70 uint8_t deviceAddress,
72 uint8_t subAddressSize,
90 uint8_t deviceAddress,
92 uint8_t subAddressSize,
110 uint8_t deviceAddress,
112 uint8_t subAddressSize,
130 uint8_t deviceAddress,
132 uint8_t subAddressSize,
162 void BOARD_Accel_I2C_Init(
void)
167 status_t BOARD_Accel_I2C_Send(uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint32_t txBuff)
169 uint8_t data = (uint8_t)txBuff;
175 uint8_t deviceAddress, uint32_t subAddress, uint8_t subaddressSize, uint8_t *rxBuff, uint8_t rxBuffSize)
177 return BOARD_LPI2C_Receive(
BOARD_ACCEL_I2C_BASEADDR, deviceAddress, subAddress, subaddressSize, rxBuff, rxBuffSize);
180 void BOARD_Codec_I2C_Init(
void)
186 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize)
193 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize)
195 return BOARD_LPI2C_Receive(
BOARD_CODEC_I2C_BASEADDR, deviceAddress, subAddress, subAddressSize, rxBuff, rxBuffSize);
198 void BOARD_Camera_I2C_Init(
void)
206 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize)
213 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize)
220 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize,
const uint8_t *txBuff, uint8_t txBuffSize)
226 status_t BOARD_Camera_I2C_ReceiveSCCB(
227 uint8_t deviceAddress, uint32_t subAddress, uint8_t subAddressSize, uint8_t *rxBuff, uint8_t rxBuffSize)
237 #if defined(__CC_ARM) || defined(__ARMCC_VERSION)
238 extern uint32_t Image$$RW_m_ncache$$Base[];
240 extern uint32_t Image$$RW_m_ncache_unused$$Base[];
241 extern uint32_t Image$$RW_m_ncache_unused$$ZI$$Limit[];
242 uint32_t nonCacheStart = (uint32_t)Image$$RW_m_ncache$$Base;
243 uint32_t size = ((uint32_t)Image$$RW_m_ncache_unused$$Base == nonCacheStart) ?
245 ((uint32_t)Image$$RW_m_ncache_unused$$ZI$$Limit - nonCacheStart);
246 #elif defined(__MCUXPRESSO)
247 extern uint32_t __base_NCACHE_REGION;
248 extern uint32_t __top_NCACHE_REGION;
249 uint32_t nonCacheStart = (uint32_t)(&__base_NCACHE_REGION);
250 uint32_t size = (uint32_t)(&__top_NCACHE_REGION) - nonCacheStart;
251 #elif defined(__ICCARM__) || defined(__GNUC__)
252 extern uint32_t __NCACHE_REGION_START[];
253 extern uint32_t __NCACHE_REGION_SIZE[];
254 uint32_t nonCacheStart = (uint32_t)__NCACHE_REGION_START;
255 uint32_t size = (uint32_t)__NCACHE_REGION_SIZE;
328 #if defined(XIP_EXTERNAL_FLASH) && (XIP_EXTERNAL_FLASH == 1)
354 while ((size >> i) > 0x1U)
362 assert(!(nonCacheStart % size));
363 assert(size == (uint32_t)(1 << i));