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.

[参考译文] MSP430FR2355:编译器错误指向 ISR 中的数据类型枚举

Guru**** 2539500 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/911203/msp430fr2355-compiler-error-point-to-a-data-type-enum-in-isr

器件型号:MSP430FR2355

ERROR[Pe020]:标识符"System_Station"未定义 N:\printed 电路板设计\SOCOM_IFF_multiple_Dismount_System\Control_Board\MSP430_Workspace_for_SOCOM_IFF_Control_Board\SOCOM_Control_Rev_2\SOCOM_IFF_Control_Board_Rev_2.c 3332

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我在 ISR 中有一个 typdef 枚举、并得到一个编译器错误、如上所示。  不确定原因。

    "System_Extend_Hub_Enable"位于 ISR 中。  

     System_State = System_Extend_Hub_Enable;

    typedef 枚举 {
         System_Idle_State、
         System_Initialize_State、
         System_Wait_for_valid transmit 状态、
         System_Search_Hubs_for_less than 1ms_Pulse、
         System_Control_Board_valid_transmit 状态、
         System_Control_Board_sing_State、
         System_Control_Board_DONE_TUSESDing_State、
         System_Extend_Hub_Enable
      } System_State_e;
      

    Ken

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    System_State 是否为全局变量? 您如何定义它? 它没有在 main()或其他函数中定义,或者*below *源代码中的这个点是它吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    大家好、Kenneth、  

    您是否已解决问题?  

    谢谢、

    Lixin