BOD on UC3C

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

Hello,

I want to enable BOD50 by software in my UC3C.
I recently stumbled over this thread:
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1039536#1039536
I added scif and pm libraries from the software-wizard, but cannot find any typdef like "avr32_pm_bod_t" which describe the BOD-configuration register(s).

I am a little bit stuck here, hope someone can help.

Greetings,
jabba80

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

Read the thread again and/or check your toolchain headers

-sb

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

So? Am I that blind?

The solution in the end of the thread is:
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=1041419#1041419
But I am still not able to find "avr32_pm_bod_t".

jabba80

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

As I wrote above - it's defined in the toolchain header files, e.g. /avr32/include/avr32/pm_200.h
and as you can see in pm.c it's sufficient just to
#include "compiler.h"
#include "pm.h"
if you have your micro declared, the build system should automatically
choose the correct pm_xxx.h file.

-sb