Skip to content

Commit

Permalink
v1.1 - Fixes over-run resets and adds NewLog and SeqLog functions. Ad…
Browse files Browse the repository at this point in the history
…ded lots-o-text.txt for testing.
  • Loading branch information
nseidle committed Dec 28, 2009
1 parent b447d60 commit 3e083ee
Show file tree
Hide file tree
Showing 8 changed files with 444 additions and 238 deletions.
19 changes: 14 additions & 5 deletions Code/Makefile
Expand Up @@ -104,6 +104,10 @@ ASRC =
# Optimization level, can be [0, 1, 2, 3, s]. # Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size. # 0 = turn off optimization. s = optimize for size.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.) # (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
#OPT = 0 //EEPROM functions fail at this level
#OPT = 1 //EEPROM functions fail at this level
#OPT = 2 //Ctrl+z doesn't work
#OPT = 3 //Ctrl+z doesn't work - this causes the asm("nop"); to fail
OPT = s OPT = s




Expand Down Expand Up @@ -272,14 +276,19 @@ LDFLAGS += $(PRINTF_LIB) $(SCANF_LIB) $(MATH_LIB)
#---------------- Programming Options (avrdude serial bootloader) ---------------- #---------------- Programming Options (avrdude serial bootloader) ----------------


#"C:\arduino\hardware\tools\avr\bin\avrdude" -PCOM3 -c stk500v1 -patmega168 -b19200 -Uflash:w:Simon-PTH-v1.hex -V -F -C"C:\arduino\hardware\tools\avr\etc\avrdude.conf" #"C:\arduino\hardware\tools\avr\bin\avrdude" -PCOM3 -c stk500v1 -patmega168 -b19200 -Uflash:w:Simon-PTH-v1.hex -V -F -C"C:\arduino\hardware\tools\avr\etc\avrdude.conf"
SERIAL_AVRDUDE = D:\arduino\hardware\tools\avr\bin\avrdude #SERIAL_AVRDUDE = D:\arduino\hardware\tools\avr\bin\avrdude
#SERIAL_AVRDUDE = avrdude #SERIAL_AVRDUDE = avrdude
SERIAL_AVRDUDE_CONFIG = D:\arduino\hardware\tools\avr\etc\avrdude.conf #SERIAL_AVRDUDE_CONFIG = D:\arduino\hardware\tools\avr\etc\avrdude.conf
SERIAL_AVRDUDE_PORT = COM1 #SERIAL_AVRDUDE_PORT = COM5
SERIAL_AVRDUDE_SPEED = 115200 #SERIAL_AVRDUDE_SPEED = 57600

SERIAL_AVRDUDE = C:\arduino\hardware\tools\avr\bin\avrdude
SERIAL_AVRDUDE_CONFIG = C:\arduino\hardware\tools\avr\etc\avrdude.conf
SERIAL_AVRDUDE_PORT = COM3
SERIAL_AVRDUDE_SPEED = 57600
SERIAL_AVRDUDE_PROGRAMMER = stk500v1 SERIAL_AVRDUDE_PROGRAMMER = stk500v1


SERIAL_AVRDUDE_FLAGS = -p $(MCU) -P $(SERIAL_AVRDUDE_PORT) -c $(SERIAL_AVRDUDE_PROGRAMMER) -b $(SERIAL_AVRDUDE_SPEED) SERIAL_AVRDUDE_FLAGS = -p $(MCU) -P $(SERIAL_AVRDUDE_PORT) -c $(SERIAL_AVRDUDE_PROGRAMMER) -b $(SERIAL_AVRDUDE_SPEED) -V
SERIAL_AVRDUDE_FLAGS += -C$(SERIAL_AVRDUDE_CONFIG) SERIAL_AVRDUDE_FLAGS += -C$(SERIAL_AVRDUDE_CONFIG)
SERIAL_AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY) SERIAL_AVRDUDE_FLAGS += $(AVRDUDE_NO_VERIFY)
SERIAL_AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE) SERIAL_AVRDUDE_FLAGS += $(AVRDUDE_VERBOSE)
Expand Down
4 changes: 4 additions & 0 deletions Code/byteordering.h
Expand Up @@ -13,6 +13,9 @@


#include <stdint.h> #include <stdint.h>


#define LITTLE_ENDIAN 1
#define DOXYGEN 0

#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"
{ {
Expand Down Expand Up @@ -53,6 +56,7 @@ extern "C"
* \returns The given 32-bit integer converted to little-endian byte order. * \returns The given 32-bit integer converted to little-endian byte order.
*/ */



#if DOXYGEN || LITTLE_ENDIAN || __AVR__ #if DOXYGEN || LITTLE_ENDIAN || __AVR__
#define HTOL16(val) (val) #define HTOL16(val) (val)
#define HTOL32(val) (val) #define HTOL32(val) (val)
Expand Down
3 changes: 3 additions & 0 deletions Code/fat.c
Expand Up @@ -16,6 +16,9 @@


#include <string.h> #include <string.h>


#define DOXYGEN 0


#if USE_DYNAMIC_MEMORY #if USE_DYNAMIC_MEMORY
#include <stdlib.h> #include <stdlib.h>
#endif #endif
Expand Down

0 comments on commit 3e083ee

Please sign in to comment.