If I create a UART embedded component, it will assign a name: AS1:Serial_LDD.
How can I change the name for me easy to remember, for example change it to: Command_Uart:Serial_LDD ?
Regards
Samuel
Solved! Go to Solution.
Hi Erich,
Thanks. It works, I can change the component's name.
Here is another problem, I would like export the "Generated_code" to my existing CW project, I can't find the
source code of the low level functions. For example, in the UART3 component, there is function
LDD_TDeviceData* CMD_Uart3_Init(LDD_TUserData *UserDataPtr),
inside this function there is low level function
UART_PDD_SetBaudRate(UART3_BASE_PTR, 11U); /* Set the baud rate register. */
I can't find its source code, the compiler will fail on
Undefined : "UART_PDD_SetBaudRate".
Where is the low level source code?
Regards
Samuel
Switch to Expert mode, see screenshot.
Hope this helps,
Erich
Hi Erich,
Thanks. It works, I can change the component's name.
Here is another problem, I would like export the "Generated_code" to my existing CW project, I can't find the
source code of the low level functions. For example, in the UART3 component, there is function
LDD_TDeviceData* CMD_Uart3_Init(LDD_TUserData *UserDataPtr),
inside this function there is low level function
UART_PDD_SetBaudRate(UART3_BASE_PTR, 11U); /* Set the baud rate register. */
I can't find its source code, the compiler will fail on
Undefined : "UART_PDD_SetBaudRate".
Where is the low level source code?
Regards
Samuel
re: ....I can't find its source code, the compiler will fail... :
A modules defining PDD macros should be included in the project path, see:
Re: Missing #include "GPIO_PDD.h" from Generated Code
best regards
Petr Hradsky
Processor Expert Support Team