1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-04 23:49:42 +02:00

Got "cntr" to show signs of life. It was the watchdog, as usual.

- TODO: "cntr" now makes it to DFU and beyond
- atrf/fw/common/config.h (PLATFORM_SETUP): rename to PLATFORM_ENTER
- cntr/fw/common/config.h (PLATFORM_SETUP): rename to PLATFORM_ENTER and
  make the new PLATFORM_SETUP turn off the watchdog
This commit is contained in:
Werner Almesberger 2010-08-25 04:35:18 -03:00
parent bb7b049f00
commit 3584b5b736
3 changed files with 15 additions and 11 deletions

9
TODO
View File

@ -16,6 +16,8 @@ Things not done yet
- implement return to DFU in application's EP0 protocol
- consider removing *_ID and using bcdDevice instead
Bugs to fix
-----------
@ -110,10 +112,3 @@ Things not done yet
- evaluate termination resistance
- document circuit design
Bugs to fix
-----------
- the firmware flashes okay and there are no outward signs of problems, yet the
board doesn't do anything so far, not even blink the LED. Kinda embarrassing.

View File

@ -25,7 +25,7 @@
* This turns on the LED, to indicate that we're in the boot loader.
*/
#define PLATFORM_SETUP \
#define PLATFORM_ENTER \
LED_MODE |= 1 << LED_BIT;

View File

@ -21,11 +21,20 @@
/* ----- Boot loader configuration ----------------------------------------- */
/*
* Make LED output push-pull so that we can output a high voltage.
* This turns on the LED, to indicate that we're in the boot loader.
* Disable the watchdog.
*/
#define PLATFORM_SETUP \
#define PLATFORM_SETUP \
PCA0MD = 0;
/*
* Make LED output push-pull so that we can output a high voltag, then enable
* the crossbar. This turns on the LED, to indicate that we're in the boot
* loader.
*/
#define PLATFORM_ENTER \
LED_MODE |= 1 << LED_BIT; \
XBR1 = XBARE;