6621CxC,32Mhz GPIO02 输出翻转测试,测试看最快约16Mhz void toggle_test(uint32_t pin_mask) { while (1) { HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_LOW; //gpio02 HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_HIGH; //gpio02 HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_LOW; //gpio02 HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_HIGH; //gpio02 HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_LOW; //gpio02 HS_GPIO0->MASK_0_7[0x1<<2] = GPIO_HIGH; //gpio02 co_delay_10us(1); } } |