Project does not compile
The compiler displays the following erros
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:40:24: error: unknown type name ‘uint8_t’
uint32_t USB_SIL_Write(uint8_t bEpAddr, uint8_t* pBufferPointer, uint32_t wBufferSize);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:40:41: error: unknown type name ‘uint8_t’
uint32_t USB_SIL_Write(uint8_t bEpAddr, uint8_t* pBufferPointer, uint32_t wBufferSize);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:40:66: error: unknown type name ‘uint32_t’
uint32_t USB_SIL_Write(uint8_t bEpAddr, uint8_t* pBufferPointer, uint32_t wBufferSize);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:41:1: error: unknown type name ‘uint32_t’
uint32_t USB_SIL_Read(uint8_t bEpAddr, uint8_t* pBufferPointer);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:41:23: error: unknown type name ‘uint8_t’
uint32_t USB_SIL_Read(uint8_t bEpAddr, uint8_t* pBufferPointer);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_sil.h:41:40: error: unknown type name ‘uint8_t’
uint32_t USB_SIL_Read(uint8_t bEpAddr, uint8_t* pBufferPointer);
In file included from D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_lib.h:41:0,
from ../src/hw_config.c:32:
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:38:26: error: unknown type name ‘uint8_t’
void UserToPMABufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:38:45: error: unknown type name ‘uint16_t’
void UserToPMABufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:38:67: error: unknown type name ‘uint16_t’
void UserToPMABufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:39:26: error: unknown type name ‘uint8_t’
void PMAToUserBufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:39:45: error: unknown type name ‘uint16_t’
void PMAToUserBufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_mem.h:39:67: error: unknown type name ‘uint16_t’
void PMAToUserBufferCopy(uint8_t *pbUsrBuf, uint16_t wPMABufAddr, uint16_t wNBytes);
In file included from ../src/hw_config.c:33:0:
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:37:3: error: unknown type name ‘uint32_t’
uint32_t bitrate;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:38:3: error: unknown type name ‘uint8_t’
uint8_t format;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:39:3: error: unknown type name ‘uint8_t’
uint8_t paritytype;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:40:3: error: unknown type name ‘uint8_t’
uint8_t datatype;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:74:1: warning: parameter names (without types) in function declaration
RESULT Virtual_Com_Port_Data_Setup(uint8_t);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:75:1: warning: parameter names (without types) in function declaration
RESULT Virtual_Com_Port_NoData_Setup(uint8_t);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:76:47: error: unknown type name ‘uint8_t’
RESULT Virtual_Com_Port_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:76:66: error: unknown type name ‘uint8_t’
RESULT Virtual_Com_Port_Get_Interface_Setting(uint8_t Interface, uint8_t AlternateSetting);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:77:1: error: unknown type name ‘uint8_t’
uint8_t *Virtual_Com_Port_GetDeviceDescriptor(uint16_t );
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:77:1: warning: parameter names (without types) in function declaration
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:78:1: error: unknown type name ‘uint8_t’
uint8_t *Virtual_Com_Port_GetConfigDescriptor(uint16_t);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:78:1: warning: parameter names (without types) in function declaration
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:79:1: error: unknown type name ‘uint8_t’
uint8_t *Virtual_Com_Port_GetStringDescriptor(uint16_t);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:79:1: warning: parameter names (without types) in function declaration
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:81:1: error: unknown type name ‘uint8_t’
uint8_t *Virtual_Com_Port_GetLineCoding(uint16_t Length);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:81:41: error: unknown type name ‘uint16_t’
uint8_t *Virtual_Com_Port_GetLineCoding(uint16_t Length);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:82:1: error: unknown type name ‘uint8_t’
uint8_t *Virtual_Com_Port_SetLineCoding(uint16_t Length);
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_prop.h:82:41: error: unknown type name ‘uint16_t’
uint8_t *Virtual_Com_Port_SetLineCoding(uint16_t Length);
In file included from ../src/hw_config.c:34:0:
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:57:14: error: unknown type name ‘uint8_t’
extern const uint8_t Virtual_Com_Port_DeviceDescriptorVIRTUAL_COM_PORT_SIZ_DEVICE_DESC;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:58:14: error: unknown type name ‘uint8_t’
extern const uint8_t Virtual_Com_Port_ConfigDescriptorVIRTUAL_COM_PORT_SIZ_CONFIG_DESC;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:60:14: error: unknown type name ‘uint8_t’
extern const uint8_t Virtual_Com_Port_StringLangIDVIRTUAL_COM_PORT_SIZ_STRING_LANGID;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:61:14: error: unknown type name ‘uint8_t’
extern const uint8_t Virtual_Com_Port_StringVendorVIRTUAL_COM_PORT_SIZ_STRING_VENDOR;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:62:14: error: unknown type name ‘uint8_t’
extern const uint8_t Virtual_Com_Port_StringProductVIRTUAL_COM_PORT_SIZ_STRING_PRODUCT;
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_desc.h:63:8: error: unknown type name ‘uint8_t’
extern uint8_t Virtual_Com_Port_StringSerialVIRTUAL_COM_PORT_SIZ_STRING_SERIAL;
In file included from ../src/hw_config.c:36:0:
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_pwr.h:67:9: error: unknown type name ‘__IO’
extern __IO uint32_t bDeviceState; /* USB device status */
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_pwr.h:67:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘bDeviceState’
extern __IO uint32_t bDeviceState; /* USB device status */
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_pwr.h:68:8: error: unknown type name ‘__IO’
extern __IO bool fSuspendEnabled; /* true when suspend is possible */
D:/STM32/Projects/Eclipce/F3_SPL_USB/inc/usb_pwr.h:68:18: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘fSuspendEnabled’
extern __IO bool fSuspendEnabled; /* true when suspend is possible */
../src/hw_config.c:43:1: error: unknown type name ‘ErrorStatus’
ErrorStatus HSEStartUpStatus;
../src/hw_config.c:44:1: error: unknown type name ‘USART_InitTypeDef’
USART_InitTypeDef USART_InitStructure;
../src/hw_config.c:45:1: error: unknown type name ‘EXTI_InitTypeDef’
EXTI_InitTypeDef EXTI_InitStructure;
../src/hw_config.c:46:1: error: unknown type name ‘uint8_t’
uint8_t USART_Rx_Buffer USART_RX_DATA_SIZE;
../src/hw_config.c:47:1: error: unknown type name ‘uint32_t’
uint32_t USART_Rx_ptr_in = 0;
../src/hw_config.c:48:1: error: unknown type name ‘uint32_t’
uint32_t USART_Rx_ptr_out = 0;
../src/hw_config.c:49:1: error: unknown type name ‘uint32_t’
uint32_t USART_Rx_length = 0;
../src/hw_config.c:51:1: error: unknown type name ‘uint8_t’
uint8_t USB_Tx_State = 0;
../src/hw_config.c:52:27: error: unknown type name ‘uint32_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len);
../src/hw_config.c:52:44: error: unknown type name ‘uint8_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len);
../src/hw_config.c:52:60: error: unknown type name ‘uint8_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len);
../src/hw_config.c: In function ‘Set_System’:
../src/hw_config.c:68:3: error: unknown type name ‘GPIO_InitTypeDef’
GPIO_InitTypeDef GPIO_InitStructure;
../src/hw_config.c:88:3: warning: implicit declaration of function ‘RCC_APB2PeriphClockCmd’ -Wimplicit-function-declaration
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIO_DISCONNECT, ENABLE);
../src/hw_config.c:88:26: error: ‘RCC_APB2Periph_GPIO_DISCONNECT’ undeclared (first use in this function)
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIO_DISCONNECT, ENABLE);
../src/hw_config.c:88:26: note: each undeclared identifier is reported only once for each function it appears in
../src/hw_config.c:88:58: error: ‘ENABLE’ undeclared (first use in this function)
RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIO_DISCONNECT, ENABLE);
../src/hw_config.c:91:21: error: request for member ‘GPIO_Pin’ in something not a structure or union
GPIO_InitStructure.GPIO_Pin = USB_DISCONNECT_PIN;
../src/hw_config.c:91:33: error: ‘USB_DISCONNECT_PIN’ undeclared (first use in this function)
GPIO_InitStructure.GPIO_Pin = USB_DISCONNECT_PIN;
../src/hw_config.c:92:21: error: request for member ‘GPIO_Speed’ in something not a structure or union
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
../src/hw_config.c:92:35: error: ‘GPIO_Speed_50MHz’ undeclared (first use in this function)
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
../src/hw_config.c:93:21: error: request for member ‘GPIO_Mode’ in something not a structure or union
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD;
../src/hw_config.c:93:34: error: ‘GPIO_Mode_Out_OD’ undeclared (first use in this function)
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD;
../src/hw_config.c:94:3: warning: implicit declaration of function ‘GPIO_Init’ -Wimplicit-function-declaration
GPIO_Init(USB_DISCONNECT, &GPIO_InitStructure);
../src/hw_config.c:94:13: error: ‘USB_DISCONNECT’ undeclared (first use in this function)
GPIO_Init(USB_DISCONNECT, &GPIO_InitStructure);
../src/hw_config.c:138:3: warning: implicit declaration of function ‘EXTI_ClearITPendingBit’ -Wimplicit-function-declaration
EXTI_ClearITPendingBit(EXTI_Line18);
../src/hw_config.c:138:26: error: ‘EXTI_Line18’ undeclared (first use in this function)
EXTI_ClearITPendingBit(EXTI_Line18);
../src/hw_config.c:139:21: error: request for member ‘EXTI_Line’ in something not a structure or union
EXTI_InitStructure.EXTI_Line = EXTI_Line18;
../src/hw_config.c:140:21: error: request for member ‘EXTI_Trigger’ in something not a structure or union
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising;
../src/hw_config.c:140:37: error: ‘EXTI_Trigger_Rising’ undeclared (first use in this function)
EXTI_InitStructure.EXTI_Trigger = EXTI_Trigger_Rising;
../src/hw_config.c:141:21: error: request for member ‘EXTI_LineCmd’ in something not a structure or union
EXTI_InitStructure.EXTI_LineCmd = ENABLE;
../src/hw_config.c:142:3: warning: implicit declaration of function ‘EXTI_Init’ -Wimplicit-function-declaration
EXTI_Init(&EXTI_InitStructure);
../src/hw_config.c: In function ‘Set_USBClock’:
../src/hw_config.c:159:3: warning: implicit declaration of function ‘RCC_USBCLKConfig’ -Wimplicit-function-declaration
RCC_USBCLKConfig(RCC_USBCLKSource_PLLCLK_1Div5);
../src/hw_config.c:159:20: error: ‘RCC_USBCLKSource_PLLCLK_1Div5’ undeclared (first use in this function)
RCC_USBCLKConfig(RCC_USBCLKSource_PLLCLK_1Div5);
../src/hw_config.c:162:3: warning: implicit declaration of function ‘RCC_APB1PeriphClockCmd’ -Wimplicit-function-declaration
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USB, ENABLE);
../src/hw_config.c:162:26: error: ‘RCC_APB1Periph_USB’ undeclared (first use in this function)
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USB, ENABLE);
../src/hw_config.c:162:46: error: ‘ENABLE’ undeclared (first use in this function)
RCC_APB1PeriphClockCmd(RCC_APB1Periph_USB, ENABLE);
../src/hw_config.c: In function ‘Enter_LowPowerMode’:
../src/hw_config.c:175:3: error: ‘bDeviceState’ undeclared (first use in this function)
bDeviceState = SUSPENDED;
../src/hw_config.c: In function ‘Leave_LowPowerMode’:
../src/hw_config.c:192:5: error: ‘bDeviceState’ undeclared (first use in this function)
bDeviceState = CONFIGURED;
../src/hw_config.c:199:3: warning: implicit declaration of function ‘SystemInit’ -Wimplicit-function-declaration
SystemInit();
../src/hw_config.c: In function ‘USB_Interrupts_Config’:
../src/hw_config.c:210:3: error: unknown type name ‘NVIC_InitTypeDef’
NVIC_InitTypeDef NVIC_InitStructure;
../src/hw_config.c:213:3: warning: implicit declaration of function ‘NVIC_PriorityGroupConfig’ -Wimplicit-function-declaration
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
../src/hw_config.c:213:28: error: ‘NVIC_PriorityGroup_2’ undeclared (first use in this function)
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
../src/hw_config.c:243:21: error: request for member ‘NVIC_IRQChannel’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn;
../src/hw_config.c:243:40: error: ‘USB_LP_CAN1_RX0_IRQn’ undeclared (first use in this function)
NVIC_InitStructure.NVIC_IRQChannel = USB_LP_CAN1_RX0_IRQn;
../src/hw_config.c:244:21: error: request for member ‘NVIC_IRQChannelPreemptionPriority’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2;
../src/hw_config.c:245:21: error: request for member ‘NVIC_IRQChannelSubPriority’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
../src/hw_config.c:246:21: error: request for member ‘NVIC_IRQChannelCmd’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
../src/hw_config.c:246:43: error: ‘ENABLE’ undeclared (first use in this function)
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
../src/hw_config.c:247:3: warning: implicit declaration of function ‘NVIC_Init’ -Wimplicit-function-declaration
NVIC_Init(&NVIC_InitStructure);
../src/hw_config.c:250:21: error: request for member ‘NVIC_IRQChannel’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannel = USBWakeUp_IRQn;
../src/hw_config.c:250:40: error: ‘USBWakeUp_IRQn’ undeclared (first use in this function)
NVIC_InitStructure.NVIC_IRQChannel = USBWakeUp_IRQn;
../src/hw_config.c:251:21: error: request for member ‘NVIC_IRQChannelPreemptionPriority’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
../src/hw_config.c:256:21: error: request for member ‘NVIC_IRQChannel’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannel = EVAL_COM1_IRQn;
../src/hw_config.c:256:40: error: ‘EVAL_COM1_IRQn’ undeclared (first use in this function)
NVIC_InitStructure.NVIC_IRQChannel = EVAL_COM1_IRQn;
../src/hw_config.c:257:21: error: request for member ‘NVIC_IRQChannelPreemptionPriority’ in something not a structure or union
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 1;
../src/hw_config.c: At top level:
../src/hw_config.c:267:24: error: unknown type name ‘FunctionalState’
void USB_Cable_Config (FunctionalState NewState)
../src/hw_config.c: In function ‘USART_Config_Default’:
../src/hw_config.c:308:22: error: request for member ‘USART_BaudRate’ in something not a structure or union
USART_InitStructure.USART_BaudRate = 9600;
../src/hw_config.c:309:22: error: request for member ‘USART_WordLength’ in something not a structure or union
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
../src/hw_config.c:309:42: error: ‘USART_WordLength_8b’ undeclared (first use in this function)
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
../src/hw_config.c:310:22: error: request for member ‘USART_StopBits’ in something not a structure or union
USART_InitStructure.USART_StopBits = USART_StopBits_1;
../src/hw_config.c:310:40: error: ‘USART_StopBits_1’ undeclared (first use in this function)
USART_InitStructure.USART_StopBits = USART_StopBits_1;
../src/hw_config.c:311:22: error: request for member ‘USART_Parity’ in something not a structure or union
USART_InitStructure.USART_Parity = USART_Parity_Odd;
../src/hw_config.c:311:38: error: ‘USART_Parity_Odd’ undeclared (first use in this function)
USART_InitStructure.USART_Parity = USART_Parity_Odd;
../src/hw_config.c:312:22: error: request for member ‘USART_HardwareFlowControl’ in something not a structure or union
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
../src/hw_config.c:312:51: error: ‘USART_HardwareFlowControl_None’ undeclared (first use in this function)
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
../src/hw_config.c:313:22: error: request for member ‘USART_Mode’ in something not a structure or union
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:313:36: error: ‘USART_Mode_Rx’ undeclared (first use in this function)
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:313:52: error: ‘USART_Mode_Tx’ undeclared (first use in this function)
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:316:3: warning: implicit declaration of function ‘STM_EVAL_COMInit’ -Wimplicit-function-declaration
STM_EVAL_COMInit(COM1, &USART_InitStructure);
../src/hw_config.c:316:20: error: ‘COM1’ undeclared (first use in this function)
STM_EVAL_COMInit(COM1, &USART_InitStructure);
../src/hw_config.c:319:3: warning: implicit declaration of function ‘USART_ITConfig’ -Wimplicit-function-declaration
USART_ITConfig(EVAL_COM1, USART_IT_RXNE, ENABLE);
../src/hw_config.c:319:18: error: ‘EVAL_COM1’ undeclared (first use in this function)
USART_ITConfig(EVAL_COM1, USART_IT_RXNE, ENABLE);
../src/hw_config.c:319:29: error: ‘USART_IT_RXNE’ undeclared (first use in this function)
USART_ITConfig(EVAL_COM1, USART_IT_RXNE, ENABLE);
../src/hw_config.c:319:44: error: ‘ENABLE’ undeclared (first use in this function)
USART_ITConfig(EVAL_COM1, USART_IT_RXNE, ENABLE);
../src/hw_config.c: In function ‘USART_Config’:
../src/hw_config.c:337:26: error: request for member ‘USART_StopBits’ in something not a structure or union
USART_InitStructure.USART_StopBits = USART_StopBits_1;
../src/hw_config.c:337:44: error: ‘USART_StopBits_1’ undeclared (first use in this function)
USART_InitStructure.USART_StopBits = USART_StopBits_1;
../src/hw_config.c:340:26: error: request for member ‘USART_StopBits’ in something not a structure or union
USART_InitStructure.USART_StopBits = USART_StopBits_1_5;
../src/hw_config.c:340:44: error: ‘USART_StopBits_1_5’ undeclared (first use in this function)
USART_InitStructure.USART_StopBits = USART_StopBits_1_5;
../src/hw_config.c:343:26: error: request for member ‘USART_StopBits’ in something not a structure or union
USART_InitStructure.USART_StopBits = USART_StopBits_2;
../src/hw_config.c:343:44: error: ‘USART_StopBits_2’ undeclared (first use in this function)
USART_InitStructure.USART_StopBits = USART_StopBits_2;
../src/hw_config.c:356:26: error: request for member ‘USART_Parity’ in something not a structure or union
USART_InitStructure.USART_Parity = USART_Parity_No;
../src/hw_config.c:356:42: error: ‘USART_Parity_No’ undeclared (first use in this function)
USART_InitStructure.USART_Parity = USART_Parity_No;
../src/hw_config.c:359:26: error: request for member ‘USART_Parity’ in something not a structure or union
USART_InitStructure.USART_Parity = USART_Parity_Even;
../src/hw_config.c:359:42: error: ‘USART_Parity_Even’ undeclared (first use in this function)
USART_InitStructure.USART_Parity = USART_Parity_Even;
../src/hw_config.c:362:26: error: request for member ‘USART_Parity’ in something not a structure or union
USART_InitStructure.USART_Parity = USART_Parity_Odd;
../src/hw_config.c:362:42: error: ‘USART_Parity_Odd’ undeclared (first use in this function)
USART_InitStructure.USART_Parity = USART_Parity_Odd;
../src/hw_config.c:376:26: error: request for member ‘USART_WordLength’ in something not a structure or union
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
../src/hw_config.c:376:46: error: ‘USART_WordLength_8b’ undeclared (first use in this function)
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
../src/hw_config.c:379:30: error: request for member ‘USART_Parity’ in something not a structure or union
if (USART_InitStructure.USART_Parity == USART_Parity_No)
../src/hw_config.c:381:28: error: request for member ‘USART_WordLength’ in something not a structure or union
USART_InitStructure.USART_WordLength = USART_WordLength_8b;
../src/hw_config.c:385:28: error: request for member ‘USART_WordLength’ in something not a structure or union
USART_InitStructure.USART_WordLength = USART_WordLength_9b;
../src/hw_config.c:385:48: error: ‘USART_WordLength_9b’ undeclared (first use in this function)
USART_InitStructure.USART_WordLength = USART_WordLength_9b;
../src/hw_config.c:396:22: error: request for member ‘USART_BaudRate’ in something not a structure or union
USART_InitStructure.USART_BaudRate = linecoding.bitrate;
../src/hw_config.c:397:22: error: request for member ‘USART_HardwareFlowControl’ in something not a structure or union
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
../src/hw_config.c:397:51: error: ‘USART_HardwareFlowControl_None’ undeclared (first use in this function)
USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;
../src/hw_config.c:398:22: error: request for member ‘USART_Mode’ in something not a structure or union
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:398:36: error: ‘USART_Mode_Rx’ undeclared (first use in this function)
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:398:52: error: ‘USART_Mode_Tx’ undeclared (first use in this function)
USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;
../src/hw_config.c:401:20: error: ‘COM1’ undeclared (first use in this function)
STM_EVAL_COMInit(COM1, &USART_InitStructure);
../src/hw_config.c: At top level:
../src/hw_config.c:413:29: error: unknown type name ‘uint8_t’
void USB_To_USART_Send_Data(uint8_t* data_buffer, uint8_t Nb_bytes)
../src/hw_config.c:413:51: error: unknown type name ‘uint8_t’
void USB_To_USART_Send_Data(uint8_t* data_buffer, uint8_t Nb_bytes)
../src/hw_config.c: In function ‘Handle_USBAsynchXfer’:
../src/hw_config.c:434:3: error: unknown type name ‘uint16_t’
uint16_t USB_Tx_ptr;
../src/hw_config.c:435:3: error: unknown type name ‘uint16_t’
uint16_t USB_Tx_length;
../src/hw_config.c:476:5: warning: implicit declaration of function ‘UserToPMABufferCopy’ -Wimplicit-function-declaration
UserToPMABufferCopy(&USART_Rx_BufferUSB_Tx_ptr, ENDP1_TXADDR, USB_Tx_length);
In file included from D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_lib.h:36:0,
from ../src/hw_config.c:32:
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_regs.h:94:23: error: ‘uint8_t’ undeclared (first use in this function)
#define ENDP1 ((uint8_t)1)
../src/hw_config.c:477:18: note: in expansion of macro ‘ENDP1’
SetEPTxCount(ENDP1, USB_Tx_length);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_regs.h:94:31: error: expected ‘)’ before numeric constant
#define ENDP1 ((uint8_t)1)
../src/hw_config.c:477:18: note: in expansion of macro ‘ENDP1’
SetEPTxCount(ENDP1, USB_Tx_length);
D:/STM32/Projects/Eclipce/F3_SPL_USB/STM32_USB-FS-Device_Driver/inc/usb_regs.h:94:31: error: expected ‘)’ before numeric constant
#define ENDP1 ((uint8_t)1)
../src/hw_config.c:478:18: note: in expansion of macro ‘ENDP1’
SetEPTxValid(ENDP1);
../src/hw_config.c: In function ‘USART_To_USB_Send_Data’:
../src/hw_config.c:493:5: warning: implicit declaration of function ‘USART_ReceiveData’ -Wimplicit-function-declaration
USART_Rx_BufferUSART_Rx_ptr_in = USART_ReceiveData(EVAL_COM1) & 0x7F;
../src/hw_config.c:493:58: error: ‘EVAL_COM1’ undeclared (first use in this function)
USART_Rx_BufferUSART_Rx_ptr_in = USART_ReceiveData(EVAL_COM1) & 0x7F;
../src/hw_config.c: In function ‘Get_SerialNum’:
../src/hw_config.c:518:3: error: unknown type name ‘uint32_t’
uint32_t Device_Serial0, Device_Serial1, Device_Serial2;
../src/hw_config.c:520:22: error: ‘uint32_t’ undeclared (first use in this function)
Device_Serial0 = *(uint32_t*)ID1;
../src/hw_config.c:520:31: error: expected expression before ‘)’ token
Device_Serial0 = *(uint32_t*)ID1;
../src/hw_config.c:521:31: error: expected expression before ‘)’ token
Device_Serial1 = *(uint32_t*)ID2;
../src/hw_config.c:522:31: error: expected expression before ‘)’ token
Device_Serial2 = *(uint32_t*)ID3;
../src/hw_config.c:528:5: warning: implicit declaration of function ‘IntToUnicode’ -Wimplicit-function-declaration
IntToUnicode (Device_Serial0, &Virtual_Com_Port_StringSerial2 , 8);
../src/hw_config.c: At top level:
../src/hw_config.c:540:27: error: unknown type name ‘uint32_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len)
../src/hw_config.c:540:44: error: unknown type name ‘uint8_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len)
../src/hw_config.c:540:60: error: unknown type name ‘uint8_t’
static void IntToUnicode (uint32_t value , uint8_t *pbuf , uint8_t len)
^
make: *** src/hw_config.o Error 1
17:35:09 Build Finished (took 900ms)