Part Number: MSP430FR2033
Hello,
I want to know what error #148 is. I want to know how it occur. I want to know how to mitigate it. I commented in the code where the problem is located. The comment has a little tidbit of info too.
/*
* 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);
}
Thank you