角度传感器改使用DMA

This commit is contained in:
cbb
2025-11-01 21:03:57 +08:00
parent 71a92fa68e
commit bd77f7a9a9
4 changed files with 194 additions and 65 deletions
+3 -1
View File
@@ -9,8 +9,10 @@ extern "C" {
void KHT7823_init(void);
u16 spi_rw_half_word(u32 spi_periph, const u16 i_HalfWord);
float KHT7823_readAngle(void);
int spi_rw_half_word_dma(uint32_t spi_periph, uint16_t tx_data, uint16_t* rx_data);
#ifdef __cplusplus
}
#endif
#endif
#endif