Change global interrupt disable to timer specific interrupt disable for data protection. Added interrupt disabled around ADC API.

This commit is contained in:
skarg
2010-10-22 00:11:25 +00:00
parent 2cac9ba528
commit 3b49fb0271
3 changed files with 30 additions and 27 deletions
@@ -144,6 +144,11 @@ COMMON = -mmcu=$(MCU)
# define something from the Makefile or batch file
DEFINES =
# various SEEPROM sizes
ifeq (${SEEPROM},128)
DEFINES += -DSEEPROM_PAGE_SIZE=64
DEFINES += -DSEEPROM_WORD_ADDRESS_16BIT=1
endif
OPTIMIZE_FLAGS = -mcall-prologues
OPTIMIZE_FLAGS += -finline-functions-called-once