Skip to content
This repository has been archived by the owner on Jan 7, 2019. It is now read-only.

Commit

Permalink
split target 'avr' to 'atmega' and 'atxmega' because there are to man…
Browse files Browse the repository at this point in the history
…y differences and it is easier to maintain that way. Introduced a way to generate the uart defintion files from a template.
  • Loading branch information
dergraaf committed Nov 8, 2009
1 parent 2ea1f2b commit e239176
Show file tree
Hide file tree
Showing 47 changed files with 1,301 additions and 585 deletions.
2 changes: 1 addition & 1 deletion SConstruct
Expand Up @@ -54,7 +54,7 @@ parser = PropertyParser(GetOption('properties'), target, verbose)
# create a build-environment for the specific target # create a build-environment for the specific target


build = parser.getGlobalProperties() build = parser.getGlobalProperties()
if build.target == 'avr': if build.target == 'atmega' or build.target == 'atxmega':
env = Environment( env = Environment(
ARCHITECTURE = 'avr', ARCHITECTURE = 'avr',
AVRDUDE = build.avr.avrdude, AVRDUDE = build.avr.avrdude,
Expand Down
6 changes: 4 additions & 2 deletions misc/python/scons/build_properties.py
Expand Up @@ -32,8 +32,10 @@ def __init__(self, properties, target=None):
target = properties.get('target', 'pc') target = properties.get('target', 'pc')
self.target = target self.target = target


if self.target == 'avr': if self.target == 'atmega':
self.avr = self.AvrProperties(properties.get('avr', {})) self.avr = self.AvrProperties(properties.get('atmega', {}))
elif self.target == 'atxmega':
self.avr = self.AvrProperties(properties.get('atxmega', {}))


def getLocalProperties(self, path, target, tag): def getLocalProperties(self, path, target, tag):
try: try:
Expand Down
18 changes: 10 additions & 8 deletions properties.yaml
@@ -1,15 +1,19 @@


#target: avr #target: atmega
#target: atxmega
target: pc target: pc


avr: atmega:
# device: atmega2560 device: atmega2560
clock: 14745600
avrdude:
programmer: stk500
port: /dev/ttyUSB0

atxmega:
device: atxmega128a1 device: atxmega128a1
clock: 32000000 clock: 32000000
# clock: 14745600
avrdude: avrdude:
# programmer: stk500
# port: /dev/ttyUSB0
programmer: avrispmkII programmer: avrispmkII
port: usb port: usb


Expand Down Expand Up @@ -37,5 +41,3 @@ library:
tests: tests:
include: no include: no


unittest:

3 changes: 0 additions & 3 deletions src/xpcc/hal/avr/properties.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions src/xpcc/hal/avr/uart/uart0_put.cpp

This file was deleted.

75 changes: 0 additions & 75 deletions src/xpcc/hal/avr/uart/uart1.cpp

This file was deleted.

48 changes: 0 additions & 48 deletions src/xpcc/hal/avr/uart/uart1_put.cpp

This file was deleted.

75 changes: 0 additions & 75 deletions src/xpcc/hal/avr/uart/uart2.cpp

This file was deleted.

49 changes: 0 additions & 49 deletions src/xpcc/hal/avr/uart/uart2_put.cpp

This file was deleted.

0 comments on commit e239176

Please sign in to comment.