
笔记
LVGRAPE
有空的玩玩游戏、搞搞机
展开
-
STM32 关闭全局中断
/** \brief Enable IRQ Interrupts This function enables IRQ interrupts by clearing the I-bit in the CPSR. Can only be executed in Privileged modes. */ __attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void) { __ASM volatile ("cp.原创 2020-05-16 20:53:32 · 4873 阅读 · 0 评论 -
NRF24L01+ 自动重发,自动应答BUG
nrf24l01+有个失败自动重发,多次自动重发失败后会产生中断的功能。 可是有个bug,就是达到了最大失败重发次数,清理MAX_RT中断后,立马转成转成接收模式,然后就会收到一个发送成功的标志。 注意是 发送成功 标志,不是 接收成功 标志。可是上次不是多次重发都失败了吗,哪来的成功发送??? ...原创 2020-05-07 11:55:16 · 1702 阅读 · 0 评论