V2ADAS / Embeddedians

Embedded Subteam Repository - Graduation Project
MIT License
2 stars 0 forks source link

Error in servo_init #51

Closed Mohamed-Hawas closed 9 months ago

Mohamed-Hawas commented 9 months ago

in line 51 void HSERVO_vServoInit(Enum_SERVO_NUM Copy_u8ServoNum,Enum_TIMER_NUM Copy_u8TimerNum,u8 Copy_u8ChannelNum); give me this error : In file included from ../Src/main.c:16:0: ../Src/HAL/HSERVO/HSERVO_Int.h:51:55: error: unknown type name 'Enum_TIMER_NUM'; did you mean 'Enum_SERVO_NUM'? void HSERVO_vServoInit(Enum_SERVO_NUM Copy_u8ServoNum,Enum_TIMER_NUM Copy_u8TimerNum,u8 Copy_u8ChannelNum); ^~~~~~ Enum_SERVO_NUM

please handle it

image

Amr-Elmaghraby commented 9 months ago

Done and it's now solved :) Problem was not including required files for Interface function. Note: without updating code there will be no errors if MTimer_Int.h is called first before HSERVO_Int.h