Date:2010-08-20 04:14:55 (9 years 4 months ago)
Author:Werner Almesberger
Commit:3c87d9f8c725cc56e1e4a0dc8dceecc43017e7eb
Message:Turn the LED on while in the boot loader.

- fw/common/config.h: added platform defines to enable the LED while in
the boot loader
- fw/common/io.h: updated path in title
Files: fw/common/config.h (2 diffs)
fw/common/io.h (1 diff)

Change Details

fw/common/config.h
1/*
2 * common/config.h - Configuration data for boot loader and application
3 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
113#ifndef CONFIG_H
214#define CONFIG_H
315
16#include "io.h"
17#include "io-parts.h"
18
19
420/*
521 * Platform-specific settings
622 *
...... 
1228#define USB_VENDOR 0x20b7
1329#define USB_PRODUCT 0x1540
1430
31
32/* ----- Boot loader configuration ----------------------------------------- */
33
34/*
35 * Make LED output push-pull so that we can output a high voltage.
36 * This turns on the LED, to indicate that we're in the boot loader.
37 */
38
39#define PLATFORM_SETUP \
40    LED_MODE |= 1 << LED_BIT;
41
42
43/*
44 * Turn off the LED when we exit the boot loader.
45 */
46
47#define PLATFORM_EXIT \
48    LED = 0
49
50
51/* ----- Application configuration ----------------------------------------- */
52
1553#define HW_TYPE HW_TYPE_100813
1654
1755#endif /* !CONFIG_H */
fw/common/io.h
11/*
2 * atspi/io.h - I/O pin assignment
2 * common/io.h - I/O pin assignment
33 *
44 * Written 2010 by Werner Almesberger
55 * Copyright 2010 Werner Almesberger

Archive Download the corresponding diff file



interactive