25 lines
401 B
C
25 lines
401 B
C
#ifndef USER_ASM330LHH
|
|
#define USER_ASM330LHH
|
|
|
|
#define SPI1_CS_PORT GPIOA
|
|
#define SPI1_CS_PIN GPIO_PIN_4
|
|
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include "asm330lhh_reg.h"
|
|
#include "stm32f1xx_hal.h"
|
|
#include "rtklib.h"
|
|
|
|
#define IMU_READY 1
|
|
#define IMU_NOT_READY 1
|
|
#define IMU_LOCK 1
|
|
#define IMU_UNLOCK 0
|
|
|
|
|
|
void user_dev_init();
|
|
extern uint8_t rx_uart2;
|
|
|
|
extern stmdev_ctx_t spi1_dev;
|
|
|
|
#endif
|