STM點滴一

就就是你用BSRR和BRR去改變管腳狀態的時候,沒有被中斷打斷的風險。也就不需要關閉中斷。 This way, there is no risk that an IRQ occurs between the read and the modify access.」 用ODR操作GPIO的僞代碼如下:     disable_irq() save_gpio_pin_sate = read_gpio_
相關文章
相關標籤/搜索