spi slave.zip

时间:2023-05-19 02:51:49
【文件属性】:

文件名称:spi slave.zip

文件大小:33.3MB

文件格式:ZIP

更新时间:2023-05-19 02:51:49

spi 从机 KEIL stm32CubeMx STM32

spi从机 Hal库 dma发送接收 int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Configure the system clock */ SystemClock_Config(); /* USER CODE BEGIN SysInit */ /* USER CODE END SysInit */ /* Initialize all configured peripherals */ MX_GPIO_Init(); MX_DMA_Init(); MX_USART1_UART_Init(); MX_SPI5_Init(); /* USER CODE BEGIN 2 */ //HAL_SPI_TransmitReceive(&hspi5, spi_tx, spi_rx, 10, 0xFF); for(int i = 0;i


网友评论