• AVR Freaks

Helpful ReplyHot!Bug: Harmony 3: USART function in header but not in source file

Author
ryanjones
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2019/01/07 13:51:21
  • Location: 0
  • Status: offline
2019/10/15 12:50:52 (permalink)
0

Bug: Harmony 3: USART function in header but not in source file

Implementing some USART and am confused about the drv_usart.h vs drv_usart.c files generated by Harmony.
 
In the header file there's a function with the signature
bool DRV_USART_WriteBuffer( const DRV_HANDLE handle, void* buffer, const size_t size);

but there doesn't seem to be a matching function in the source file. Only the async version of the function.
void DRV_USART_WriteBufferAdd(DRV_HANDLE handle, void* buffer, const size_t size, DRV_USART_BUFFER_HANDLE* bufferHandle)

Does anyone know how to get the blocking version working on harmony 3?
 
Thanks
#1
RISC
Super Member
  • Total Posts : 5379
  • Reward points : 0
  • Status: offline
Re: Bug: Harmony 3: USART function in header but not in source file 2019/10/17 03:29:59 (permalink)
0
Hi,
My guess is that the blocking versions of APIs are meant to be used on top of an RTOS like FreeRTOS
Regards
#2
Tom Crosley
New Member
  • Total Posts : 20
  • Reward points : 0
  • Joined: 2016/07/26 15:56:24
  • Location: Microchip Technology
  • Status: offline
Re: Bug: Harmony 3: USART function in header but not in source file 2019/10/18 15:15:37 (permalink) ☄ Helpfulby ryanjones 2019/10/23 15:50:02
0
If you click on the top of the USART Driver component in the Project Graph, the Configuration Options for the driver will be displayed.  Change the Driver Mode from Asynchronous to Synchronous, regenerate the code and the code for the DRV_USART_WriteBuffer function will be generated.
 
 
 
 

Attached Image(s)

#3
Jump to:
© 2019 APG vNext Commercial Version 4.5