IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Commit Details
Date: | 2010-08-20 02:57:59 (13 years 7 months ago) |
---|---|
Author: | Werner Almesberger |
Commit: | 57f34270fbc6cf5919d6ef7615afabb187eb3734 |
Message: | A new try at config.h management: moved it to ../common, along with
io.h - fw/boot/Makefile, fw/atspi/Makefile: add ../common to include path - fw/boot/config.h, fw/atspi/io.h: moved to ../common - fw/common/config.h: updated comment - it's no longer specific to boot.c |
Files: |
fw/atspi/Makefile (1 diff) fw/atspi/io.h (1 diff) fw/boot/Makefile (1 diff) fw/boot/config.h (1 diff) fw/common/config.h (1 diff) fw/common/io.h (1 diff) |
Change Details
fw/atspi/Makefile | ||
---|---|---|
19 | 19 | include $(F32XBASE)/fw/common/Makefile.system |
20 | 20 | include $(F32XBASE)/fw/common/Makefile.common |
21 | 21 | |
22 | CFLAGS += -I../include | |
22 | CFLAGS += -I../common -I../include | |
23 | 23 | LDFLAGS += --code-size $(PAYLOAD_SIZE) --code-loc $(PAYLOAD_START) |
24 | 24 | |
25 | 25 | USB_ID = $(shell \ |
fw/atspi/io.h | ||
---|---|---|
1 | /* | |
2 | * atspi/io.h - I/O pin assignment | |
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 | ||
13 | ||
14 | #ifndef IO_H | |
15 | #define IO_H | |
16 | ||
17 | /* Diagnostic LED */ | |
18 | ||
19 | #define LED P0_1 | |
20 | ||
21 | /* SPI */ | |
22 | ||
23 | #define MOSI P2_2 | |
24 | #define MISO P2_5 | |
25 | #define SCLK P2_4 | |
26 | #define nSS P2_3 | |
27 | ||
28 | /* Miscellaneous RF signals */ | |
29 | ||
30 | #define nRST_RF P2_0 | |
31 | #define IRQ_RF P0_2 | |
32 | #define SLP_TR P2_1 | |
33 | ||
34 | #endif /* !IO_H */ |
fw/boot/Makefile | ||
---|---|---|
18 | 18 | include $(F32XBASE)/fw/common/Makefile.system |
19 | 19 | include $(F32XBASE)/fw/common/Makefile.common |
20 | 20 | |
21 | CFLAGS += -I../common | |
21 | 22 | LDFLAGS += --code-size $(PAYLOAD_START) |
fw/boot/config.h | ||
---|---|---|
1 | #ifndef CONFIG_H | |
2 | #define CONFIG_H | |
3 | ||
4 | /* | |
5 | * Platform-specific settings for boot.c | |
6 | * | |
7 | * USB_VENDOR = Qi Hardware | |
8 | * USB_PRODUCT = 802.15.4, device 0 | |
9 | * -- - - | |
10 | */ | |
11 | ||
12 | #define USB_VENDOR 0x20b7 | |
13 | #define USB_PRODUCT 0x1540 | |
14 | ||
15 | #endif /* !CONFIG_H */ |
fw/common/config.h | ||
---|---|---|
1 | #ifndef CONFIG_H | |
2 | #define CONFIG_H | |
3 | ||
4 | /* | |
5 | * Platform-specific settings | |
6 | * | |
7 | * USB_VENDOR = Qi Hardware | |
8 | * USB_PRODUCT = 802.15.4, device 0 | |
9 | * -- - - | |
10 | */ | |
11 | ||
12 | #define USB_VENDOR 0x20b7 | |
13 | #define USB_PRODUCT 0x1540 | |
14 | ||
15 | #define HW_TYPE HW_TYPE_100813 | |
16 | ||
17 | #endif /* !CONFIG_H */ |
fw/common/io.h | ||
---|---|---|
1 | /* | |
2 | * atspi/io.h - I/O pin assignment | |
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 | ||
13 | ||
14 | #ifndef IO_H | |
15 | #define IO_H | |
16 | ||
17 | /* Diagnostic LED */ | |
18 | ||
19 | #define LED P0_1 | |
20 | ||
21 | /* SPI */ | |
22 | ||
23 | #define MOSI P2_2 | |
24 | #define MISO P2_5 | |
25 | #define SCLK P2_4 | |
26 | #define nSS P2_3 | |
27 | ||
28 | /* Miscellaneous RF signals */ | |
29 | ||
30 | #define nRST_RF P2_0 | |
31 | #define IRQ_RF P0_2 | |
32 | #define SLP_TR P2_1 | |
33 | ||
34 | #endif /* !IO_H */ |