请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:MSP430FR2033 您好!
我想知道错误#148是什么。 我想知道它是如何发生的。 我想知道如何缓解它。 我在代码中添加了有关问题所在的注释。 注释中也有一些提示信息。
/* * TF.c * * Created on: Feb 21, 2023 * Author: anish.patel */ #include "TF.h" #include "serial.h" #include <stdint.h> #include <stdbool.h> #include <stdio.h> //===================================== // //===================================== // Change state and perform entry processing typedef enum { True, False, }TF_e; static TF_e mTF; //=================================== // //==================================== // Return True or False or do nothing static void ReturnBool(TF_e TF) // I am getting an error #148 from here. // CCS says declaration is incompatible with the function { switch(TF) { case True: mTF = TF; SendStr("True"); return mTF; break; case False: mTF = TF; SendStr("False"); return mTF; break; default: mTF = TF; break; } } //========================================= // //========================================= // External function to be called out in other libraries void ChangeBool(void) { ReturnBool(True); }
谢谢你