Hi Friends,
I am already tried the UART code but I doesn't have the UART output.
My Q:
1.Can I have any UART Sample Code? Friends I need it Quickly.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am not sure i completely understand what you meant by UART sample code anyway Z-Stack provides a HAL layer for accessing peripherals in the chip itself as well as in the evaluation board.
For UART, you can verify the implementation of the UART drivers and corresponding API in hal_uart.c
Compilation flags like HAL_UART_DMA or HAL_UART_ISR allow to configure the underlying driver settings.
There's no need for you to develop the UART driver. You can just use the APIs defined in the hal_uart.c module (and declared in hal_uart.h file).
As per how to use those API, you can check in the MT layer of Z-Stack how those APIs are invoked, even though their name and the comments on the code for the HAL UART module are pretty self-explanatory.
Thanks,
TheDarkSide
I am new to Zstack and ZigBee. I am having trouble with incorporating UART in Home Automation demo examples. I want to connect a separate microcontroller to a CC2530EM SoC via UART.
1. How can I add UART code in '........._event_loop', say in the 'zclSampleSw_event_loop()' in the SampleSwitch? Is it necessary to add the code in the event loop?
2. If not then how can I receive UART data in the CC2530SoC? How and where to incorporate the code other than the event loop?
Thanks in advance.