Skip to content

Commit 59f0867

Browse files
authored
Merge pull request #3 from oilulio/restructure
Restructured core (unchanging) app layer routines into applicationCore.c
2 parents bc9e30f + 1870dbe commit 59f0867

File tree

5 files changed

+15
-1038
lines changed

5 files changed

+15
-1038
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ OBJDUMP = $(AVRPATH)\avr-objdump
1212
SIZE = $(AVRPATH)\avr-size --format=avr --mcu=$(MCU)
1313
CFLAGS = -Wall -Os -mmcu=$(MCU) -c -std=gnu99 -funsigned-char -funsigned-bitfields -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -gdwarf-2
1414
#-DF_CPU=$(CLK)
15-
SRCS = application.c lfsr.c init.c isp.c mem23SRAM.c w25q.c main.c network.c linkENC28J60.c transport.c md5.c ripemd160.c sha1.c sha256.c power.c
15+
SRCS = application.c applicationCore.c lfsr.c init.c isp.c mem23SRAM.c w25q.c main.c network.c linkENC28J60.c transport.c md5.c ripemd160.c sha1.c sha256.c power.c
1616
#where.c
1717

1818
OBJS = $(patsubst %.c,obj/%.o,$(SRCS))

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ Whereas the standard protocol bindings should not need to change (e.g)
4040
#endif
4141
```
4242

43-
**application.c** : This is where the majority of user changes are likely (although not in stock application layer routines like "queryNTP()" or "handleDNS()") whereas "sendHTML()" is the core routine for a server where it responds to an incoming request.
43+
**applicationCore.c** : Contains stock application layer routines like "queryNTP()" or "handleDNS()"
44+
45+
**application.c** or **application[DeviceName].c** contains device-specific application layer material, e.g. "sendHTML()" is the core routine for a server where it responds to an incoming request.
4446

4547
Some routines, e.g. **power.c**, **stepper.c** are bespoke to specific hardware finished products.
4648

0 commit comments

Comments
 (0)