/********************************** (C) COPYRIGHT *******************************
* File Name : HSPI.C
* Author : WCH
* Version : V1.1
* Date : 2023/02/16
*
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
* Attention: This software (modified or not) and binary are used for
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
*******************************************************************************/
...
/* configure HTRDY(PA23),HRCLK(PA19),HRACK(PA18),HRVLD(PA6),input */
R32_PA_DIR &= ~( ( 1 << 6 ) | ( 1 << 18 ) | ( 1 << 19 ) | ( 1 << 23 ) );
...
/* configure HD0(PA6),HD1(PA4),HD2(PA22), HD3(PA3),HD4(PA2),HD5(PA1),HD6(PA0),HD7(PB21),
HD8(PB20), HD9(PB19),HD10(PB18),HD11(PB17),HD12(PA17),HD13(PB16),HD14(PB15),HD15(PB14),
HD16(PB0),HD17(PB1),HD18(PB2), HD19(PA20),HD20(PB3), HD21(PB4), HD22(PB5), HD23(PB6),
HD24(PA16),HD25(PB7),HD26(PB8), HD27(PB9), HD28(PB10),HD29(PB11),HD30(PB12),HD31(PB13) floating input */
R32_PA_DIR &= ~( ( 1 << 6 ) | ( 1 << 4 ) | ( 1 << 22 ) | ( 1 << 3 ) | ( 1 << 2 ) | ( 1 << 1 ) | ( 1 << 0 ) |
( 1 << 17 ) | ( 1 << 20 ) | ( 1 << 16 ) );
HD0从手册上看不是PA5么?而且从前一句看PA6已经是HRVLD了。
这个是HSPI.C的bug么?还是我看错了?如果是bug,这些年大家的demo都是怎么跑的?