├── plc-sw ├── libs │ ├── lcd │ │ ├── Makefile.lcd │ │ ├── SPILCD.h │ │ └── .dep │ │ │ └── 2wLCD.o.d │ ├── memb │ │ └── Makefile.memb │ ├── uart │ │ ├── Makefile.uart │ │ ├── uart.c │ │ └── uart.h │ ├── analog │ │ ├── Makefile.analog │ │ ├── analog.c │ │ └── analog.h │ ├── ds1302 │ │ └── Makefile.ds1302 │ ├── eeprom │ │ ├── Makefile.eeprom │ │ ├── eeprom.h │ │ └── eeprom.c │ ├── usart │ │ ├── Makefile.usart │ │ ├── ATxmega_Baud_Rate_Calculator_v1.0.xls.zip │ │ ├── usart.c │ │ ├── README │ │ └── usart.h │ ├── 1wire │ │ ├── Makefile.1wire │ │ ├── crc8.h │ │ ├── crc8.c │ │ └── onewire.h │ ├── misc │ │ └── AVR035.h │ ├── websrv_helper_functions │ │ ├── websrv_helper_functions.h │ │ └── websrv_helper_functions.c │ └── avrlib-avrlib-conf │ │ ├── global.h │ │ ├── avrlibtypes.h │ │ └── avrlibdefs.h ├── apps │ ├── dhcpc │ │ ├── Makefile.dhcpc │ │ └── dhcpc.h │ ├── hello-world │ │ ├── Makefile.hello-world │ │ └── hello-world.h │ ├── simple-httpd │ │ ├── Makefile.simple-httpd │ │ ├── simple-httpd.h │ │ └── simple-httpd.c │ ├── port_app_mapper │ │ ├── Makefile.port_app_mapper │ │ ├── port_app_mapper.h │ │ └── README │ ├── jsoncmd │ │ ├── Makefile.jsoncmd │ │ ├── shell.c │ │ └── jsoncmd.h │ ├── telnetd │ │ ├── Makefile.telnetd │ │ └── telnetd.h │ └── README ├── doc │ ├── uip-code-style.txt │ ├── ENC28J60.pdf │ ├── sicslogo.pdf │ ├── Atmega1284p.pdf │ ├── html │ │ ├── tab_b.gif │ │ ├── tab_l.gif │ │ ├── tab_r.gif │ │ ├── doxygen.png │ │ ├── ftv2doc.png │ │ ├── ftv2link.png │ │ ├── ftv2node.png │ │ ├── ftv2blank.png │ │ ├── ftv2mnode.png │ │ ├── ftv2pnode.png │ │ ├── ftv2lastnode.png │ │ ├── ftv2mlastnode.png │ │ ├── ftv2plastnode.png │ │ ├── ftv2vertline.png │ │ ├── ftv2folderclosed.png │ │ ├── ftv2folderopen.png │ │ ├── index.html │ │ ├── a00125.html │ │ ├── examples.html │ │ ├── a00134.html │ │ ├── a00092.html │ │ ├── tabs.css │ │ ├── a00084.html │ │ ├── a00089.html │ │ ├── a00079.html │ │ ├── a00112.html │ │ ├── modules.html │ │ ├── a00083.html │ │ ├── hierarchy.html │ │ ├── globals_type.html │ │ ├── a00100.html │ │ ├── a00113.html │ │ ├── globals_defs_0x66.html │ │ ├── globals_defs.html │ │ ├── globals_defs_0x65.html │ │ ├── globals_defs_0x72.html │ │ ├── globals_0x66.html │ │ ├── globals.html │ │ ├── globals_0x65.html │ │ ├── a00087.html │ │ ├── a00143.html │ │ └── globals_defs_0x62.html │ ├── mobisys2003.pdf │ ├── uip-refman.pdf │ ├── Makefile │ ├── README │ ├── examples.txt │ ├── header.tex │ ├── example-mainloop-without-arp.c │ ├── doxygen.sty │ └── example-mainloop-with-arp.c ├── drivers │ ├── enc28j60 │ │ ├── Makefile.enc28j60 │ │ ├── global.h │ │ ├── network.c │ │ ├── avrlibtypes.h │ │ ├── avrlibdefs.h │ │ └── enc28j60conf.h │ └── interfaces │ │ ├── README │ │ └── network.h ├── projects │ ├── Tests │ │ ├── qtest.elf │ │ ├── Makefile │ │ ├── qtest.hex │ │ └── quicktest.c │ ├── HILSim │ │ ├── clock-arch.h │ │ ├── apps-conf.h │ │ ├── phys.h │ │ ├── Makefile │ │ ├── phys.c │ │ ├── clock-arch.c │ │ ├── global-conf.h │ │ └── uip-conf.h │ └── OpenPLC │ │ ├── clock-arch.h │ │ ├── Makefile │ │ ├── apps-conf.h │ │ ├── clock-arch.c │ │ ├── global-conf.h │ │ └── uip-conf.h ├── uip │ ├── Makefile.uip │ ├── uip-neighbor.h │ ├── uiplib.c │ ├── uiplib.h │ ├── lc-switch.h │ ├── timer.h │ ├── lc-addrlabels.h │ └── clock.h ├── changelog.txt ├── README └── MakeConf.include ├── plc-hw ├── gafrc ├── bom.mouser.xls ├── gerbers │ ├── openplc.zip │ └── openplc.tar.gz ├── project ├── packages │ ├── TERMBLK_5MM_2C.fp │ ├── TERMBLK_5MM_8C.fp │ ├── SOT223.fp │ ├── SSOP14.fp │ ├── RJ45.fp │ ├── usbminib_hirose_th.fp │ ├── SSOP28.fp │ └── pulse-J00-00XX.fp ├── Makefile └── symbols │ ├── cap0603.sym │ ├── diodeSOD123.sym │ ├── resSip12kCommon.sym │ ├── res0603.sym │ ├── inductor1008.sym │ ├── lm2902.sym │ ├── ua78m33cdcyr.sym │ ├── ua78m33cdcyr.src │ ├── res4SipIso.sym │ ├── res4SipIso.src │ ├── connector_usb.sym │ └── enc28j60.src └── setup-deb.sh /plc-sw/libs/lcd/Makefile.lcd: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += SPILCD.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/memb/Makefile.memb: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += memb.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/uart/Makefile.uart: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += uart.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/analog/Makefile.analog: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += analog.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/ds1302/Makefile.ds1302: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += ds1302.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/eeprom/Makefile.eeprom: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += eeprom.c 2 | -------------------------------------------------------------------------------- /plc-sw/libs/usart/Makefile.usart: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += usart.c 2 | -------------------------------------------------------------------------------- /plc-sw/apps/dhcpc/Makefile.dhcpc: -------------------------------------------------------------------------------- 1 | APP_SOURCES += dhcpc.c timer.c 2 | -------------------------------------------------------------------------------- /plc-hw/gafrc: -------------------------------------------------------------------------------- 1 | ;; Add libraries 2 | (component-library "./symbols") 3 | -------------------------------------------------------------------------------- /plc-sw/apps/hello-world/Makefile.hello-world: -------------------------------------------------------------------------------- 1 | APP_SOURCES += hello-world.c 2 | -------------------------------------------------------------------------------- /plc-sw/doc/uip-code-style.txt: -------------------------------------------------------------------------------- 1 | /** 2 | \example uip-code-style.c 3 | */ 4 | -------------------------------------------------------------------------------- /plc-sw/libs/1wire/Makefile.1wire: -------------------------------------------------------------------------------- 1 | LIB_SOURCES += crc8.c ds18x20.c onewire.c 2 | -------------------------------------------------------------------------------- /plc-sw/apps/simple-httpd/Makefile.simple-httpd: -------------------------------------------------------------------------------- 1 | APP_SOURCES += simple-httpd.c 2 | -------------------------------------------------------------------------------- /plc-sw/apps/port_app_mapper/Makefile.port_app_mapper: -------------------------------------------------------------------------------- 1 | APP_SOURCES += port_app_mapper.c 2 | -------------------------------------------------------------------------------- /plc-hw/bom.mouser.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-hw/bom.mouser.xls -------------------------------------------------------------------------------- /plc-sw/apps/jsoncmd/Makefile.jsoncmd: -------------------------------------------------------------------------------- 1 | APP_SOURCES += jsoncmd.c shell.c memb.c 2 | 3 | LIBS+= memb 4 | -------------------------------------------------------------------------------- /plc-sw/apps/telnetd/Makefile.telnetd: -------------------------------------------------------------------------------- 1 | APP_SOURCES += telnetd.c shell.c memb.c 2 | 3 | LIBS+= memb 4 | -------------------------------------------------------------------------------- /plc-sw/doc/ENC28J60.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/ENC28J60.pdf -------------------------------------------------------------------------------- /plc-sw/doc/sicslogo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/sicslogo.pdf -------------------------------------------------------------------------------- /plc-hw/gerbers/openplc.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-hw/gerbers/openplc.zip -------------------------------------------------------------------------------- /plc-sw/doc/Atmega1284p.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/Atmega1284p.pdf -------------------------------------------------------------------------------- /plc-sw/doc/html/tab_b.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/tab_b.gif -------------------------------------------------------------------------------- /plc-sw/doc/html/tab_l.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/tab_l.gif -------------------------------------------------------------------------------- /plc-sw/doc/html/tab_r.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/tab_r.gif -------------------------------------------------------------------------------- /plc-sw/doc/mobisys2003.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/mobisys2003.pdf -------------------------------------------------------------------------------- /plc-sw/doc/uip-refman.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/uip-refman.pdf -------------------------------------------------------------------------------- /plc-sw/doc/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/doxygen.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2doc.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2link.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2node.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2node.png -------------------------------------------------------------------------------- /plc-sw/drivers/enc28j60/Makefile.enc28j60: -------------------------------------------------------------------------------- 1 | DEV_SOURCES += enc28j60.c network.c 2 | LIBS += avrlib-avrlib-conf 3 | -------------------------------------------------------------------------------- /plc-sw/libs/analog/analog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/libs/analog/analog.c -------------------------------------------------------------------------------- /plc-sw/libs/analog/analog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/libs/analog/analog.h -------------------------------------------------------------------------------- /plc-hw/gerbers/openplc.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-hw/gerbers/openplc.tar.gz -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2blank.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2mnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2mnode.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2pnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2pnode.png -------------------------------------------------------------------------------- /plc-sw/projects/Tests/qtest.elf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/projects/Tests/qtest.elf -------------------------------------------------------------------------------- /plc-sw/apps/README: -------------------------------------------------------------------------------- 1 | This directory contains a few example applications. They are not all 2 | heavily tested, however. 3 | -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2lastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2lastnode.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2mlastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2mlastnode.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2plastnode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2plastnode.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2vertline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2vertline.png -------------------------------------------------------------------------------- /plc-hw/project: -------------------------------------------------------------------------------- 1 | schematics sim_uc.sch sim_phys_out.sch sim_ether.sch sim_pwr.sch sim_phys_in.sch 2 | output-name sim_board 3 | -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2folderclosed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2folderclosed.png -------------------------------------------------------------------------------- /plc-sw/doc/html/ftv2folderopen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/doc/html/ftv2folderopen.png -------------------------------------------------------------------------------- /plc-sw/drivers/interfaces/README: -------------------------------------------------------------------------------- 1 | Should contain headerfiles that define interfaces to for instance a network controller. 2 | -------------------------------------------------------------------------------- /plc-sw/doc/Makefile: -------------------------------------------------------------------------------- 1 | all: htmldoc pdfdoc 2 | 3 | htmldoc: 4 | doxygen Doxyfile 5 | 6 | pdfdoc: htmldoc 7 | cd latex; make refman.pdf && mv refman.pdf ../uip-refman.pdf 8 | -------------------------------------------------------------------------------- /plc-sw/libs/usart/ATxmega_Baud_Rate_Calculator_v1.0.xls.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nwertzberger/OpenPLC/HEAD/plc-sw/libs/usart/ATxmega_Baud_Rate_Calculator_v1.0.xls.zip -------------------------------------------------------------------------------- /plc-sw/uip/Makefile.uip: -------------------------------------------------------------------------------- 1 | UIP_SOURCES += uip.c uip_arp.c psock.c timer.c 2 | ### remove code compile we don't use 3 | #UIP_SOURCES += uip.c uip_arp.c uiplib.c psock.c timer.c uip-neighbor.c 4 | -------------------------------------------------------------------------------- /plc-sw/changelog.txt: -------------------------------------------------------------------------------- 1 | * Starting with project stolen from the uIP-AVR port 2 | 3 | It didn't make much sense to do it any other way. There is a defined 4 | format used by this project, and I like it. 5 | -------------------------------------------------------------------------------- /plc-sw/libs/lcd/SPILCD.h: -------------------------------------------------------------------------------- 1 | #ifndef __spilcd_H 2 | #define __spilcd_H 3 | void LCD_pulse_enable(void); 4 | void SPILCD_init(void); 5 | void LCD_sendData(uint8_t byte); 6 | void LCD_sendCommand(uint8_t command); 7 | void LCD_shiftout(uint8_t data); 8 | #endif -------------------------------------------------------------------------------- /plc-sw/doc/html/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |24 |
27 | Definition in file lc.h. 28 |
29 | #include "lc-switch.h"
30 |
31 |
32 | Go to the source code of this file.
1.4.6
38 |
39 |
40 |
--------------------------------------------------------------------------------
/plc-sw/projects/Tests/quicktest.c:
--------------------------------------------------------------------------------
1 | #include
1.4.6
37 |
38 |
39 |
--------------------------------------------------------------------------------
/plc-sw/libs/1wire/crc8.c:
--------------------------------------------------------------------------------
1 | /*
2 | This code is from Colin O'Flynn - Copyright (c) 2002
3 | only minor changes by M.Thomas 9/2004
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
6 | this software and associated documentation files (the "Software"), to deal in
7 | the Software without restriction, including without limitation the rights to
8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 | */
22 |
23 |
24 | #include 24 |
27 | Definition in file uip-split.h. 28 |
29 | 30 |
31 | Go to the source code of this file.
Functions | |
| void | uip_split_output (void) |
| Handle outgoing packets. | |
1.4.6
41 |
42 |
43 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/a00092.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 26 | 27 |
28 | Definition at line 47 of file uip-neighbor.h.
Data Fields | |
| 32 | uip_eth_addr | addr |
1.4.6
38 |
39 |
40 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/tabs.css:
--------------------------------------------------------------------------------
1 | /* tabs styles, based on http://www.alistapart.com/articles/slidingdoors */
2 |
3 | DIV.tabs
4 | {
5 | float : left;
6 | width : 100%;
7 | background : url("tab_b.gif") repeat-x bottom;
8 | margin-bottom : 4px;
9 | }
10 |
11 | DIV.tabs UL
12 | {
13 | margin : 0px;
14 | padding-left : 10px;
15 | list-style : none;
16 | }
17 |
18 | DIV.tabs LI, DIV.tabs FORM
19 | {
20 | display : inline;
21 | margin : 0px;
22 | padding : 0px;
23 | }
24 |
25 | DIV.tabs FORM
26 | {
27 | float : right;
28 | }
29 |
30 | DIV.tabs A
31 | {
32 | float : left;
33 | background : url("tab_r.gif") no-repeat right top;
34 | border-bottom : 1px solid #84B0C7;
35 | font-size : x-small;
36 | font-weight : bold;
37 | text-decoration : none;
38 | }
39 |
40 | DIV.tabs A:hover
41 | {
42 | background-position: 100% -150px;
43 | }
44 |
45 | DIV.tabs A:link, DIV.tabs A:visited,
46 | DIV.tabs A:active, DIV.tabs A:hover
47 | {
48 | color: #1A419D;
49 | }
50 |
51 | DIV.tabs SPAN
52 | {
53 | float : left;
54 | display : block;
55 | background : url("tab_l.gif") no-repeat left top;
56 | padding : 5px 9px;
57 | white-space : nowrap;
58 | }
59 |
60 | DIV.tabs INPUT
61 | {
62 | float : right;
63 | display : inline;
64 | font-size : 1em;
65 | }
66 |
67 | DIV.tabs TD
68 | {
69 | font-size : x-small;
70 | font-weight : bold;
71 | text-decoration : none;
72 | }
73 |
74 |
75 |
76 | /* Commented Backslash Hack hides rule from IE5-Mac \*/
77 | DIV.tabs SPAN {float : none;}
78 | /* End IE5-Mac hack */
79 |
80 | DIV.tabs A:hover SPAN
81 | {
82 | background-position: 0% -150px;
83 | }
84 |
85 | DIV.tabs LI#current A
86 | {
87 | background-position: 100% -150px;
88 | border-width : 0px;
89 | }
90 |
91 | DIV.tabs LI#current SPAN
92 | {
93 | background-position: 0% -150px;
94 | padding-bottom : 6px;
95 | }
96 |
97 | DIV.nav
98 | {
99 | background : none;
100 | border : none;
101 | border-bottom : 1px solid #84B0C7;
102 | }
103 |
--------------------------------------------------------------------------------
/plc-hw/symbols/ua78m33cdcyr.src:
--------------------------------------------------------------------------------
1 | # This is the template file for creating symbols with tragesym
2 | # every line starting with '#' is a comment line.
3 |
4 | [options]
5 | # wordswap swaps labels if the pin is on the right side an looks like this:
6 | # "PB1 (CLK)". That's useful for micro controller port labels
7 | # rotate_labels rotates the pintext of top and bottom pins
8 | # this is useful for large symbols like FPGAs with more than 100 pins
9 | # sort_labels will sort the pins by it's labels
10 | # useful for address ports, busses, ...
11 | wordswap=yes
12 | rotate_labels=yes
13 | sort_labels=yes
14 | generate_pinseq=yes
15 | sym_width=1000
16 | pinwidthvertical=200
17 | pinwidthhorizontal=200
18 |
19 | [geda_attr]
20 | # name will be printed in the top of the symbol
21 | # name is only some graphical text, not an attribute
22 | # version specifies a gschem version.
23 | # if you have a device with slots, you'll have to use slot= and slotdef=
24 | # use comment= if there are special information you want to add
25 | version=20060113 1
26 | name=UA78M33CDCYR
27 | device=UA78M33CDCYR
28 | refdes=U24
29 | footprint=SOT223
30 | description= TI 3.3V Linear Regulator
31 | documentation= http://www.ti.com/lit/gpn/UA78M33
32 | author= Nicholas Wertzberger
33 | dist-license=Free
34 | use-license=Free
35 | numslots=0
36 | #slot=1
37 | #slotdef=1:
38 | #slotdef=2:
39 | #slotdef=3:
40 | #slotdef=4:
41 | #comment=
42 | #comment=
43 | #comment=
44 |
45 | [pins]
46 | # tabseparated list of pin descriptions
47 | # ----------------------------------------
48 | # pinnr is the physical number of the pin
49 | # seq is the pinseq= attribute, leave it blank if it doesn't matter
50 | # type can be (in, out, io, oc, oe, pas, tp, tri, clk, pwr)
51 | # style can be (line,dot,clk,dotclk,spacer,none). none if only want to add a net
52 | # posit. can be (l,r,t,b) or empty for nets.
53 | # net specifies the name of the net. Vcc or GND for example.
54 | # label represents the pinlabel.
55 | # negation lines can be added with "\_" example: \_enable\_
56 | # if you want to write a "\" use "\\" as escape sequence
57 | #-----------------------------------------------------
58 | #pinnr seq type style posit. net label
59 | #-----------------------------------------------------
60 | 1 pwr line l IN
61 | 2 pwr line b COM
62 | 3 pwr line r OUT
63 | 4 pwr line b COM
64 |
65 |
--------------------------------------------------------------------------------
/plc-sw/MakeConf.include:
--------------------------------------------------------------------------------
1 | ########################## Project specific configuration #########################
2 | #Options in this section should be copied to your project specific directory
3 | #
4 | #Microprossor choice, for avr-gcc
5 | #MCU = atmega644
6 | #
7 | #Microprossor choice, for avrdude
8 | #CHIP = m644 #See 'man avrdude', devices are listed under the Options section
9 | #
10 | #Project name
11 | #NAME = 30 | dhcpc.h.
32 | 33 |
34 | Definition at line 54 of file pt.h.
Data Fields | |
| 38 | lc_t | lc |
1.4.6
44 |
45 |
46 |
--------------------------------------------------------------------------------
/plc-sw/libs/1wire/onewire.h:
--------------------------------------------------------------------------------
1 | #ifndef _1wire_h_
2 | #define _1wire_h_
3 |
4 | #include #include <uip.h>
27 | 28 |
31 | 32 |
33 | Definition at line 1542 of file uip.h.
Data Fields | |
| 37 | u8_t | addr [6] |
1.4.6
43 |
44 |
45 |
--------------------------------------------------------------------------------
/plc-sw/doc/example-mainloop-with-arp.c:
--------------------------------------------------------------------------------
1 | #include "uip.h"
2 | #include "uip_arp.h"
3 | #include "network-device.h"
4 | #include "httpd.h"
5 | #include "timer.h"
6 |
7 | #define BUF ((struct uip_eth_hdr *)&uip_buf[0])
8 |
9 | /*---------------------------------------------------------------------------*/
10 | int
11 | main(void)
12 | {
13 | int i;
14 | uip_ipaddr_t ipaddr;
15 | struct timer periodic_timer, arp_timer;
16 |
17 | timer_set(&periodic_timer, CLOCK_SECOND / 2);
18 | timer_set(&arp_timer, CLOCK_SECOND * 10);
19 |
20 | network_device_init();
21 | uip_init();
22 |
23 | uip_ipaddr(ipaddr, 192,168,0,2);
24 | uip_sethostaddr(ipaddr);
25 |
26 | httpd_init();
27 |
28 | while(1) {
29 | uip_len = network_device_read();
30 | if(uip_len > 0) {
31 | if(BUF->type == htons(UIP_ETHTYPE_IP)) {
32 | uip_arp_ipin();
33 | uip_input();
34 | /* If the above function invocation resulted in data that
35 | should be sent out on the network, the global variable
36 | uip_len is set to a value > 0. */
37 | if(uip_len > 0) {
38 | uip_arp_out();
39 | network_device_send();
40 | }
41 | } else if(BUF->type == htons(UIP_ETHTYPE_ARP)) {
42 | uip_arp_arpin();
43 | /* If the above function invocation resulted in data that
44 | should be sent out on the network, the global variable
45 | uip_len is set to a value > 0. */
46 | if(uip_len > 0) {
47 | network_device_send();
48 | }
49 | }
50 |
51 | } else if(timer_expired(&periodic_timer)) {
52 | timer_reset(&periodic_timer);
53 | for(i = 0; i < UIP_CONNS; i++) {
54 | uip_periodic(i);
55 | /* If the above function invocation resulted in data that
56 | should be sent out on the network, the global variable
57 | uip_len is set to a value > 0. */
58 | if(uip_len > 0) {
59 | uip_arp_out();
60 | network_device_send();
61 | }
62 | }
63 |
64 | #if UIP_UDP
65 | for(i = 0; i < UIP_UDP_CONNS; i++) {
66 | uip_udp_periodic(i);
67 | /* If the above function invocation resulted in data that
68 | should be sent out on the network, the global variable
69 | uip_len is set to a value > 0. */
70 | if(uip_len > 0) {
71 | uip_arp_out();
72 | network_device_send();
73 | }
74 | }
75 | #endif /* UIP_UDP */
76 |
77 | /* Call the ARP timer function every 10 seconds. */
78 | if(timer_expired(&arp_timer)) {
79 | timer_reset(&arp_timer);
80 | uip_arp_timer();
81 | }
82 | }
83 | }
84 | return 0;
85 | }
86 | /*---------------------------------------------------------------------------*/
87 |
--------------------------------------------------------------------------------
/plc-sw/apps/telnetd/telnetd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2003, Adam Dunkels.
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above
11 | * copyright notice, this list of conditions and the following
12 | * disclaimer in the documentation and/or other materials provided
13 | * with the distribution.
14 | * 3. The name of the author may not be used to endorse or promote
15 | * products derived from this software without specific prior
16 | * written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 | *
30 | * This file is part of the uIP TCP/IP stack
31 | *
32 | * $Id: telnetd.h,v 1.2 2006/06/07 09:43:54 adam Exp $
33 | *
34 | */
35 | #ifndef __TELNETD_H__
36 | #define __TELNETD_H__
37 |
38 | #include "uipopt.h"
39 |
40 | void telnetd_appcall(void);
41 |
42 | #ifndef TELNETD_CONF_LINELEN
43 | #define TELNETD_CONF_LINELEN 40
44 | #endif
45 | #ifndef TELNETD_CONF_NUMLINES
46 | #define TELNETD_CONF_NUMLINES 16
47 | #endif
48 |
49 | struct telnetd_state {
50 | char *lines[TELNETD_CONF_NUMLINES];
51 | char buf[TELNETD_CONF_LINELEN];
52 | char bufptr;
53 | u8_t numsent;
54 | u8_t state;
55 | };
56 |
57 |
58 | #if defined PORT_APP_MAPPER
59 | #define TELNET_APP_CALL_MAP {telnetd_appcall, 23, 0},
60 | struct telnetd_state telnetd_state_list[UIP_CONF_MAX_CONNECTIONS];
61 | #else
62 | #define TELNET_APP_CALL_MAP
63 | #define UIP_APPCALL telnetd_appcall
64 | typedef struct telnetd_state uip_tcp_appstate_t;
65 | #endif
66 |
67 | #endif /* __TELNETD_H__ */
68 |
--------------------------------------------------------------------------------
/plc-sw/drivers/enc28j60/avrlibdefs.h:
--------------------------------------------------------------------------------
1 | /*! \file avrlibdefs.h \brief AVRlib global defines and macros. */
2 | //*****************************************************************************
3 | //
4 | // File Name : 'avrlibdefs.h'
5 | // Title : AVRlib global defines and macros include file
6 | // Author : Pascal Stang
7 | // Created : 7/12/2001
8 | // Revised : 9/30/2002
9 | // Version : 1.1
10 | // Target MCU : Atmel AVR series
11 | // Editor Tabs : 4
12 | //
13 | // Description : This include file is designed to contain items useful to all
14 | // code files and projects, regardless of specific implementation.
15 | //
16 | // This code is distributed under the GNU Public License
17 | // which can be found at http://www.gnu.org/licenses/gpl.txt
18 | //
19 | //*****************************************************************************
20 |
21 |
22 | #ifndef AVRLIBDEFS_H
23 | #define AVRLIBDEFS_H
24 |
25 | // Code compatibility to new AVR-libc
26 | // outb(), inb(), inw(), outw(), BV(), sbi(), cbi(), sei(), cli()
27 | #ifndef outb
28 | #define outb(addr, data) addr = (data)
29 | #endif
30 | #ifndef inb
31 | #define inb(addr) (addr)
32 | #endif
33 | #ifndef outw
34 | #define outw(addr, data) addr = (data)
35 | #endif
36 | #ifndef inw
37 | #define inw(addr) (addr)
38 | #endif
39 | #ifndef BV
40 | #define BV(bit) (1<<(bit))
41 | #endif
42 | #ifndef cbi
43 | #define cbi(reg,bit) reg &= ~(BV(bit))
44 | #endif
45 | #ifndef sbi
46 | #define sbi(reg,bit) reg |= (BV(bit))
47 | #endif
48 | #ifndef cli
49 | #define cli() __asm__ __volatile__ ("cli" ::)
50 | #endif
51 | #ifndef sei
52 | #define sei() __asm__ __volatile__ ("sei" ::)
53 | #endif
54 |
55 | // support for individual port pin naming in the mega128
56 | // see port128.h for details
57 | #ifdef __AVR_ATmega128__
58 | // not currently necessary due to inclusion
59 | // of these defines in newest AVR-GCC
60 | // do a quick test to see if include is needed
61 | #ifndef PD0
62 | #include "port128.h"
63 | #endif
64 | #endif
65 |
66 | // use this for packed structures
67 | // (this is seldom necessary on an 8-bit architecture like AVR,
68 | // but can assist in code portability to AVR)
69 | #define GNUC_PACKED __attribute__((packed))
70 |
71 | // port address helpers
72 | #define DDR(x) ((x)-1) // address of data direction register of port x
73 | #define PIN(x) ((x)-2) // address of input register of port x
74 |
75 | // MIN/MAX/ABS macros
76 | #define MIN(a,b) ((ab)?(a):(b))
78 | #define ABS(x) ((x>0)?(x):(-x))
79 |
80 | // constants
81 | #define PI 3.14159265359
82 |
83 | #endif
84 |
--------------------------------------------------------------------------------
/plc-sw/libs/avrlib-avrlib-conf/avrlibtypes.h:
--------------------------------------------------------------------------------
1 | /*! \file avrlibtypes.h \brief AVRlib global types and typedefines. */
2 | //*****************************************************************************
3 | //
4 | // File Name : 'avrlibtypes.h'
5 | // Title : AVRlib global types and typedefines include file
6 | // Author : Pascal Stang
7 | // Created : 7/12/2001
8 | // Revised : 9/30/2002
9 | // Version : 1.0
10 | // Target MCU : Atmel AVR series
11 | // Editor Tabs : 4
12 | //
13 | // Description : Type-defines required and used by AVRlib. Most types are also
14 | // generally useful.
15 | //
16 | // This code is distributed under the GNU Public License
17 | // which can be found at http://www.gnu.org/licenses/gpl.txt
18 | //
19 | //*****************************************************************************
20 |
21 |
22 | #ifndef AVRLIBTYPES_H
23 | #define AVRLIBTYPES_H
24 |
25 | #ifndef WIN32
26 | // true/false defines
27 | #define FALSE 0
28 | #define TRUE -1
29 | #endif
30 |
31 | // datatype definitions macros
32 | typedef unsigned char u08;
33 | typedef signed char s08;
34 | typedef unsigned short u16;
35 | typedef signed short s16;
36 | typedef unsigned long u32;
37 | typedef signed long s32;
38 | typedef unsigned long long u64;
39 | typedef signed long long s64;
40 |
41 | /* use inttypes.h instead
42 | // C99 standard integer type definitions
43 | typedef unsigned char uint8_t;
44 | typedef signed char int8_t;
45 | typedef unsigned short uint16_t;
46 | typedef signed short int16_t;
47 | typedef unsigned long uint32_t;
48 | typedef signed long int32_t;
49 | typedef unsigned long uint64_t;
50 | typedef signed long int64_t;
51 | */
52 | // maximum value that can be held
53 | // by unsigned data types (8,16,32bits)
54 | #define MAX_U08 255
55 | #define MAX_U16 65535
56 | #define MAX_U32 4294967295
57 |
58 | // maximum values that can be held
59 | // by signed data types (8,16,32bits)
60 | #define MIN_S08 -128
61 | #define MAX_S08 127
62 | #define MIN_S16 -32768
63 | #define MAX_S16 32767
64 | #define MIN_S32 -2147483648
65 | #define MAX_S32 2147483647
66 |
67 | #ifndef WIN32
68 | // more type redefinitions
69 | typedef unsigned char BOOL;
70 | typedef unsigned char BYTE;
71 | typedef unsigned int WORD;
72 | typedef unsigned long DWORD;
73 |
74 | typedef unsigned char UCHAR;
75 | typedef unsigned int UINT;
76 | typedef unsigned short USHORT;
77 | typedef unsigned long ULONG;
78 |
79 | typedef char CHAR;
80 | typedef int INT;
81 | typedef long LONG;
82 | #endif
83 |
84 | #endif
85 |
--------------------------------------------------------------------------------
/plc-sw/uip/uip-neighbor.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2006, Swedish Institute of Computer Science.
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above copyright
11 | * notice, this list of conditions and the following disclaimer in the
12 | * documentation and/or other materials provided with the distribution.
13 | * 3. Neither the name of the Institute nor the names of its contributors
14 | * may be used to endorse or promote products derived from this software
15 | * without specific prior written permission.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 | * SUCH DAMAGE.
28 | *
29 | * This file is part of the uIP TCP/IP stack
30 | *
31 | * $Id: uip-neighbor.h,v 1.2 2006/06/12 08:00:30 adam Exp $
32 | */
33 |
34 | /**
35 | * \file
36 | * Header file for database of link-local neighbors, used by
37 | * IPv6 code and to be used by future ARP code.
38 | * \author
39 | * Adam Dunkels 29 | 30 |
31 | Definition at line 60 of file httpd-cgi.h.
Data Fields | |
| 35 | const char * | name |
| 38 | const httpd_cgifunction | function |
1.4.6
44 |
45 |
46 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/a00112.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 24 |
27 | Definition in file httpd-cgi.c. 28 |
29 | #include "uip.h"
30 | #include "psock.h"
31 | #include "httpd.h"
32 | #include "httpd-cgi.h"
33 | #include "httpd-fs.h"
34 | #include <stdio.h>
35 | #include <string.h>
36 |
37 |
38 | Go to the source code of this file.
Functions | |
| 42 | httpd_cgifunction | httpd_cgi (char *name) |
1.4.6
48 |
49 |
50 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/modules.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
1.4.6
50 |
51 |
52 |
--------------------------------------------------------------------------------
/plc-sw/uip/uiplib.h:
--------------------------------------------------------------------------------
1 | /**
2 | * \file
3 | * Various uIP library functions.
4 | * \author
5 | * Adam Dunkels 29 | 30 |
31 | Definition at line 95 of file psock.h.
Data Fields | |
| 35 | u8_t * | ptr |
| 38 | unsigned short | left |
1.4.6
44 |
45 |
46 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/hierarchy.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
1.4.6
49 |
50 |
51 |
--------------------------------------------------------------------------------
/plc-sw/apps/jsoncmd/jsoncmd.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2003, Adam Dunkels.
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above
11 | * copyright notice, this list of conditions and the following
12 | * disclaimer in the documentation and/or other materials provided
13 | * with the distribution.
14 | * 3. The name of the author may not be used to endorse or promote
15 | * products derived from this software without specific prior
16 | * written permission.
17 | *
18 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 | *
30 | * This file is part of the uIP TCP/IP stack
31 | *
32 | * $Id: jsoncmd.h,v 1.2 2006/06/07 09:43:54 adam Exp $
33 | *
34 | */
35 | #ifndef __JSONCMD_H__
36 | #define __JSONCMD_H__
37 |
38 | #include "uipopt.h"
39 |
40 | void jsoncmd_appcall(void);
41 |
42 | #ifndef JSONCMD_CONF_GETCALLBACK
43 | #define JSONCMD_CONF_GETCALLBACK default_callback
44 | #endif
45 |
46 | #ifndef JSONCMD_CONF_SETCALLBACK
47 | #define JSONCMD_CONF_SETCALLBACK default_callback
48 | #endif
49 |
50 | #ifndef JSONCMD_CONF_LINELEN
51 | #define JSONCMD_CONF_LINELEN 80
52 | #endif
53 | #ifndef JSONCMD_CONF_NUMLINES
54 | #define JSONCMD_CONF_NUMLINES 20
55 | #endif
56 |
57 | struct jsoncmd_state {
58 | char *lines[JSONCMD_CONF_NUMLINES];
59 | char buf[JSONCMD_CONF_LINELEN];
60 | char bufptr;
61 | u8_t numsent;
62 | u8_t state;
63 | };
64 |
65 |
66 | #if defined PORT_APP_MAPPER
67 | #define JSONCMD_APP_CALL_MAP {jsoncmd_appcall, 23, 0},
68 | struct jsoncmd_state jsoncmd_state_list[UIP_CONF_MAX_CONNECTIONS];
69 | #else
70 | #define JSONCMD_APP_CALL_MAP
71 | #define UIP_APPCALL jsoncmd_appcall
72 | typedef struct jsoncmd_state uip_tcp_appstate_t;
73 | #endif
74 |
75 | #endif /* __JSONCMD_H__ */
76 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_type.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 32 |
1.4.6
46 |
47 |
48 |
--------------------------------------------------------------------------------
/plc-sw/apps/dhcpc/dhcpc.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2005, Swedish Institute of Computer Science
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above copyright
11 | * notice, this list of conditions and the following disclaimer in the
12 | * documentation and/or other materials provided with the distribution.
13 | * 3. Neither the name of the Institute nor the names of its contributors
14 | * may be used to endorse or promote products derived from this software
15 | * without specific prior written permission.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 | * SUCH DAMAGE.
28 | *
29 | * This file is part of the uIP TCP/IP stack
30 | *
31 | * @(#)$Id: dhcpc.h,v 1.3 2006/06/11 21:46:37 adam Exp $
32 | */
33 | #ifndef __DHCPC_H__
34 | #define __DHCPC_H__
35 |
36 | #include "timer.h"
37 | #include "pt.h"
38 |
39 | struct dhcpc_state {
40 | struct pt pt;
41 | u8_t state;
42 | struct uip_udp_conn *conn;
43 | struct timer timer;
44 | u16_t ticks;
45 | const void *mac_addr;
46 | u8_t mac_len;
47 |
48 | u8_t serverid[4];
49 |
50 | u16_t lease_time[2];
51 | u16_t ipaddr[2];
52 | u16_t netmask[2];
53 | u16_t dnsaddr[2];
54 | u16_t default_router[2];
55 | };
56 |
57 | void dhcpc_init(const void *mac_addr, uint8_t mac_len);
58 | void dhcpc_request(void);
59 | void dhcpc_renew(void);
60 |
61 | void dhcpc_appcall(void);
62 |
63 | void dhcpc_configured(const struct dhcpc_state *s);
64 |
65 |
66 | #if defined PORT_APP_MAPPER
67 | #define DHCPC_APP_CALL_MAP {dhcpc_appcall, 0, 67},
68 | #else
69 | #define DHCPC_APP_CALL_MAP
70 | #define UIP_UDP_APPCALL dhcpc_appcall
71 | typedef struct dhcpc_state uip_udp_appstate_t;
72 | #endif
73 |
74 |
75 | #endif /* __DHCPC_H__ */
76 |
--------------------------------------------------------------------------------
/plc-sw/drivers/enc28j60/enc28j60conf.h:
--------------------------------------------------------------------------------
1 | /*! \file enc28j60conf.h \brief Microchip ENC28J60 Ethernet Interface Driver Configuration. */
2 | //*****************************************************************************
3 | //
4 | // File Name : 'enc28j60conf.h'
5 | // Title : Microchip ENC28J60 Ethernet Interface Driver Configuration
6 | // Author : Pascal Stang
7 | // Created : 10/5/2004
8 | // Revised : 8/22/2005
9 | // Version : 0.1
10 | // Target MCU : Atmel AVR series
11 | // Editor Tabs : 4
12 | //
13 | // Description : This driver provides initialization and transmit/receive
14 | // functions for the ENC28J60 10Mb Ethernet Controller and PHY.
15 | //
16 | // This code is distributed under the GNU Public License
17 | // which can be found at http://www.gnu.org/licenses/gpl.txt
18 | //
19 | //*****************************************************************************
20 |
21 |
22 | /* USERS NOTE:
23 | * Do not enter your hardware specific configurations here. Copy the settings
24 | * below and define them in your baord specific directory. Remember to also
25 | * define ENC28J60CONF_H so that these settings will not overwrite yours.
26 | * By modifying this in your board specific directory, you should be able to
27 | * update/upgrade your avr-uip distribution without having to modify updated
28 | * files.
29 | *
30 | *
31 | * DEVELOPERS NOTE:
32 | * Settings entered should be something rather common, and not update too often.
33 | */
34 |
35 |
36 | #ifndef ENC28J60CONF_H
37 | #define ENC28J60CONF_H
38 |
39 |
40 | /*
41 | ////#ifdef PORTB1
42 | // ENC28J60 SPI port
43 | #define ENC28J60_SPI_PORT PORTB
44 | #define ENC28J60_SPI_DDR DDRB
45 | #define ENC28J60_SPI_SCK PORTB5
46 | #define ENC28J60_SPI_MOSI PORTB3
47 | #define ENC28J60_SPI_MISO PORTB4
48 | #define ENC28J60_SPI_SS PORTB2
49 | // ENC28J60 control port
50 | #define ENC28J60_CONTROL_PORT PORTB
51 | #define ENC28J60_CONTROL_DDR DDRB
52 | #define ENC28J60_CONTROL_CS PORTB2
53 | ////#else
54 | */
55 | /*
56 | // ENC28J60 SPI port
57 | #define ENC28J60_SPI_PORT PORTB
58 | #define ENC28J60_SPI_DDR DDRB
59 | #define ENC28J60_SPI_SCK PB5
60 | #define ENC28J60_SPI_MOSI PB3
61 | #define ENC28J60_SPI_MISO PB4
62 | #define ENC28J60_SPI_SS PB2
63 | // ENC28J60 control port
64 | #define ENC28J60_CONTROL_PORT PORTB
65 | #define ENC28J60_CONTROL_DDR DDRB
66 | #define ENC28J60_CONTROL_CS PB2
67 | #endif
68 | */
69 |
70 | // MAC address for this interface
71 | #ifdef ETHADDR0
72 | #define ENC28J60_MAC0 ETHADDR0
73 | #define ENC28J60_MAC1 ETHADDR1
74 | #define ENC28J60_MAC2 ETHADDR2
75 | #define ENC28J60_MAC3 ETHADDR3
76 | #define ENC28J60_MAC4 ETHADDR4
77 | #define ENC28J60_MAC5 ETHADDR5
78 | #else
79 | #define ENC28J60_MAC0 '0'
80 | #define ENC28J60_MAC1 'F'
81 | #define ENC28J60_MAC2 'F'
82 | #define ENC28J60_MAC3 'I'
83 | #define ENC28J60_MAC4 'C'
84 | #define ENC28J60_MAC5 'E'
85 | #endif
86 |
87 | #endif
88 |
--------------------------------------------------------------------------------
/plc-hw/symbols/enc28j60.src:
--------------------------------------------------------------------------------
1 | # This is the template file for creating symbols with tragesym
2 | # every line starting with '#' is a comment line.
3 |
4 | [options]
5 | # wordswap swaps labels if the pin is on the right side an looks like this:
6 | # "PB1 (CLK)". That's useful for micro controller port labels
7 | # rotate_labels rotates the pintext of top and bottom pins
8 | # this is useful for large symbols like FPGAs with more than 100 pins
9 | # sort_labels will sort the pins by it's labels
10 | # useful for address ports, busses, ...
11 | wordswap=yes
12 | rotate_labels=yes
13 | sort_labels=yes
14 | generate_pinseq=yes
15 | sym_width=4000
16 | pinwidthvertical=200
17 | pinwidthhorizontal=200
18 |
19 | [geda_attr]
20 | # name will be printed in the top of the symbol
21 | # name is only some graphical text, not an attribute
22 | # version specifies a gschem version.
23 | # if you have a device with slots, you'll have to use slot= and slotdef=
24 | # use comment= if there are special information you want to add
25 | version=20060113 1
26 | name=ENC28J60
27 | device=ENC28J60
28 | refdes=U17
29 | footprint=SSOP28
30 | description= Microchip MAC/PHY
31 | documentation= http://ww1.microchip.com/downloads/en/DeviceDoc/39662c.pdf
32 | author= Nicholas Wertzberger
33 | dist-license=Free
34 | use-license=Free
35 | numslots=0
36 | #slot=1
37 | #slotdef=1:
38 | #slotdef=2:
39 | #slotdef=3:
40 | #slotdef=4:
41 | #comment=
42 | #comment=
43 | #comment=
44 |
45 | [pins]
46 | # tabseparated list of pin descriptions
47 | # ----------------------------------------
48 | # pinnr is the physical number of the pin
49 | # seq is the pinseq= attribute, leave it blank if it doesn't matter
50 | # type can be (in, out, io, oc, oe, pas, tp, tri, clk, pwr)
51 | # style can be (line,dot,clk,dotclk,spacer,none). none if only want to add a net
52 | # posit. can be (l,r,t,b) or empty for nets.
53 | # net specifies the name of the net. Vcc or GND for example.
54 | # label represents the pinlabel.
55 | # negation lines can be added with "\_" example: \_enable\_
56 | # if you want to write a "\" use "\\" as escape sequence
57 | #-----------------------------------------------------
58 | #pinnr seq type style posit. net label
59 | #-----------------------------------------------------
60 | 1 pwr line t VCAP
61 | 2 pwr line b VSS
62 | 3 io line l CLKOUT
63 | 4 io dot l _INT
64 | 5 io line t NC*
65 | 6 io line l SO
66 | 7 io line l SI
67 | 8 io line l SCK
68 | 9 io dot l _CS
69 | 10 io dot r _RESET
70 | 11 pwr line b VSSRX
71 | 12 io line r TPIN-
72 | 13 io line r TPIN+
73 | 14 io line r RBIAS
74 | 15 pwr line t VDDTX
75 | 16 io line r TPOUT-
76 | 17 io line r TPOUT+
77 | 18 pwr line b VSSTX
78 | 19 pwr line t VDDRX
79 | 20 pwr line t VDDPLL
80 | 21 pwr line b VSSPLL
81 | 22 pwr line b VSSOSC
82 | 23 io line r OSC1
83 | 24 io line r OSC2
84 | 25 pwr line t VDDOSC
85 | 26 io line r LEDB
86 | 27 io line r LEDA
87 | 28 pwr line t VDD
88 |
89 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/a00100.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 24 |
27 | Definition in file hello-world.c. 28 |
29 | #include "hello-world.h"
30 | #include "uip.h"
31 | #include <string.h>
32 |
33 |
34 | Go to the source code of this file.
Functions | |
| 38 | void | hello_world_init (void) |
| 41 | void | hello_world_appcall (void) |
1.4.6
47 |
48 |
49 |
--------------------------------------------------------------------------------
/plc-sw/uip/lc-switch.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2004-2005, Swedish Institute of Computer Science.
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above copyright
11 | * notice, this list of conditions and the following disclaimer in the
12 | * documentation and/or other materials provided with the distribution.
13 | * 3. Neither the name of the Institute nor the names of its contributors
14 | * may be used to endorse or promote products derived from this software
15 | * without specific prior written permission.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 | * SUCH DAMAGE.
28 | *
29 | * This file is part of the uIP TCP/IP stack
30 | *
31 | * Author: Adam Dunkels 24 |
27 | Definition in file httpd-cgi.h. 28 |
29 | #include "psock.h"
30 | #include "httpd.h"
31 |
32 |
33 | Go to the source code of this file.
Data Structures | |
| struct | httpd_cgi_call |
Defines | |
| #define | HTTPD_CGI_CALL(name, str, function) |
| HTTPD CGI function declaration. | |
Functions | |
| 44 | httpd_cgifunction | httpd_cgi (char *name) |
1.4.6
50 |
51 |
52 |
--------------------------------------------------------------------------------
/plc-sw/uip/timer.h:
--------------------------------------------------------------------------------
1 | /**
2 | * \defgroup timer Timer library
3 | *
4 | * The timer library provides functions for setting, resetting and
5 | * restarting timers, and for checking if a timer has expired. An
6 | * application must "manually" check if its timers have expired; this
7 | * is not done automatically.
8 | *
9 | * A timer is declared as a \c struct \c timer and all access to the
10 | * timer is made by a pointer to the declared timer.
11 | *
12 | * \note The timer library uses the \ref clock "Clock library" to
13 | * measure time. Intervals should be specified in the format used by
14 | * the clock library.
15 | *
16 | * @{
17 | */
18 |
19 |
20 | /**
21 | * \file
22 | * Timer library header file.
23 | * \author
24 | * Adam Dunkels 53 | 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_defs.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_defs_0x65.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_defs_0x72.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_0x66.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_0x65.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | Here is a list of all documented functions, variables, defines, enums, and typedefs with links to the documentation: 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/a00087.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | #include <timer.h>
27 | 28 |
31 | This structure is used for declaring a timer. The timer must be set with timer_set() before it can be used.
34 | dhcpc.h, example-mainloop-with-arp.c, example-mainloop-without-arp.c, and webclient.h.
36 | 37 |
38 | Definition at line 74 of file timer.h.
Data Fields | |
| 42 | clock_time_t | start |
| 45 | clock_time_t | interval |
1.4.6
51 |
52 |
53 |
--------------------------------------------------------------------------------
/plc-sw/uip/lc-addrlabels.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2004-2005, Swedish Institute of Computer Science.
3 | * All rights reserved.
4 | *
5 | * Redistribution and use in source and binary forms, with or without
6 | * modification, are permitted provided that the following conditions
7 | * are met:
8 | * 1. Redistributions of source code must retain the above copyright
9 | * notice, this list of conditions and the following disclaimer.
10 | * 2. Redistributions in binary form must reproduce the above copyright
11 | * notice, this list of conditions and the following disclaimer in the
12 | * documentation and/or other materials provided with the distribution.
13 | * 3. Neither the name of the Institute nor the names of its contributors
14 | * may be used to endorse or promote products derived from this software
15 | * without specific prior written permission.
16 | *
17 | * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 | * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
21 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 | * SUCH DAMAGE.
28 | *
29 | * This file is part of the uIP TCP/IP stack
30 | *
31 | * Author: Adam Dunkels 19 | 20 |
21 |
Modules | |
| DNS resolver | |
| The uIP DNS resolver functions are used to lookup a hostname and map it to a numerical IP address. | |
| SMTP E-mail sender | |
| The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is the standard way of sending and transfering e-mail on the Internet. | |
| Hello, world | |
| A small example showing how to write applications with protosockets. | |
| Web client | |
| This example shows a HTTP client that is able to download web pages and files from web servers. | |
| Web server | |
| The uIP web server is a very simplistic implementation of an HTTP server. | |
1.4.6
53 |
54 |
55 |
--------------------------------------------------------------------------------
/plc-sw/doc/html/globals_defs_0x62.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | 53 | 54 |
55 |
1.4.6
61 |
62 |
63 |
--------------------------------------------------------------------------------