USART read code in framework?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I have successfully used some of the print_dbg() functions in SOFTWARE_FRAMEWORK/UTILS/DEBUG/print_funcs.c

Now I wonder if there are similar functions for receiving characters, strings, hex etc. from an USART. I have found the usart_read_char() function in usart.c. Are there existing wrappers, or will I have to make my own?

The call hierarchy of usart_read_char() indicates the answer may be yes...

Also, where do I find the definition for "AVR32_USART1_RXD_0_2_PIN"? I had to play a little bit of hit and miss with the numers before I was able to connect to the usart on its actual pins.

Thanks,
Borge

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AVR32_USART1_RXD_0_2_PIN is defined in the toolchain header files, eg C:\Program Files (x86)\Atmel\AVR Tools\AVR Toolchain\avr32\include\avr32, see uc3xxxx.h)

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Four way cross post by pranayagarwal deleted.