ch32v003 changes
This commit is contained in:
parent
5e9604112e
commit
aa7415a418
@ -176,13 +176,7 @@ void si_enable_irq();
|
|||||||
*/
|
*/
|
||||||
#define SI_CHECK_RC(rc) \
|
#define SI_CHECK_RC(rc) \
|
||||||
do { \
|
do { \
|
||||||
if (si_print_error_if_any(rc)) { \
|
} while (0);
|
||||||
INV_MSG(INV_MSG_LEVEL_ERROR, "At %s (line %d)", __FILE__, __LINE__); \
|
|
||||||
si_sleep_us(100000); \
|
|
||||||
while (1) \
|
|
||||||
; \
|
|
||||||
} \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/** @brief Check return code from driver and print message if it is an error.
|
/** @brief Check return code from driver and print message if it is an error.
|
||||||
* @param[in] rc Return code from the driver.
|
* @param[in] rc Return code from the driver.
|
||||||
|
@ -57,7 +57,8 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Max buffer size mirrored from FIFO at polling time */
|
/** Max buffer size mirrored from FIFO at polling time */
|
||||||
#define FIFO_MIRRORING_SIZE 16 * 258 // packet size * max_count = 4kB
|
// #define FIFO_MIRRORING_SIZE 16 * 258 // packet size * max_count = 4kB
|
||||||
|
#define FIFO_MIRRORING_SIZE 258
|
||||||
|
|
||||||
/** Sensor identifier for UI control function */
|
/** Sensor identifier for UI control function */
|
||||||
enum inv_imu_sensor {
|
enum inv_imu_sensor {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user