This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于低功耗模式的编程问题



在CCS环境中,有 _bic_SR_register(x)、 _bic_SR_register_on_exit(x)、_bis_SR_register(x)

、 _bis_SR_register_on_exit(x) 、 _get_SR_register()、 _get_SR_register_on_exit() 、 _nop()这些都是用来干什么的?

  • __bic_SR_register

    Clears bits in the SR register

    __bic_SR_register_on_exit

    Clears bits in the SR register when an interrupt or monitor function returns

    __bis_SR_register

    Sets bits in the SR register

    __bis_SR_register_on_exit

    Sets bits in the SR register when an interrupt or monitor function returns

  • 1.后面几个函数的功能:

    _get_SR_register()

    获取SR寄存器值

    _get_SR_register_on_exit()

    获取退出中断或者监控程序是的SR寄存器值

    _nop()

    插入一个空的cpu周期

    2.这些函数的功能与介绍可以在,IAR的工具栏help->index中查到;