将ICM42688改为硬件SPI通讯。
This commit is contained in:
20
APP/Usart1.h
Normal file
20
APP/Usart1.h
Normal file
@ -0,0 +1,20 @@
|
||||
//
|
||||
// Created by hu123456 on 2024/2/20.
|
||||
//
|
||||
|
||||
#ifndef FOC_N_USART1_H
|
||||
#define FOC_N_USART1_H
|
||||
|
||||
#define USART_REC_LEN 200
|
||||
#define USART_EN_RX 1
|
||||
#define RXBUFFERSIZE 1
|
||||
|
||||
#include "mymain.h"
|
||||
|
||||
extern uint8_t g_usart_rx_buf[USART_REC_LEN];
|
||||
extern uint16_t g_usart_rx_sta;
|
||||
extern uint8_t g_rx_buffer[RXBUFFERSIZE];
|
||||
|
||||
void commander_run(void);
|
||||
|
||||
#endif //FOC_N_USART1_H
|
Reference in New Issue
Block a user