Skip to content

Commit 7cfacb9

Browse files
Ole AarhaugOle Aarhaug
authored andcommitted
MPAE-4746 Made readme and uploaded project
1 parent 7ae1ab4 commit 7cfacb9

File tree

204 files changed

+181273
-20
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+181273
-20
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<environment>
2+
<configurations>
3+
<configuration environment="Atmel Studio" name="All" version="7.0.0">
4+
<linker-config>
5+
<option id="avrgcc_linker_miscellaneous_LinkerFlags" name="avrgcc-linker-miscellaneous-LinkerFlags">
6+
<value></value>
7+
</option>
8+
</linker-config>
9+
<linker-script-config/>
10+
<compiler-config>
11+
<option id="avrgcc_compiler_miscellaneous_OtherFlags" name="avrgcc-compiler-miscellaneous-OtherFlags">
12+
<value>-std=gnu99</value>
13+
</option>
14+
</compiler-config>
15+
</configuration>
16+
</configurations>
17+
<device-packs>
18+
<device-pack device="ATmega4809" name="ATmega_DFP" vendor="Atmel" version="1.4.351"/>
19+
</device-packs>
20+
</environment>
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<package xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="1.0" xs:noNamespaceSchemaLocation="PACK.xsd">
2+
<vendor>Atmel</vendor>
3+
<name>ADC Basics with megaAVR 0-Series</name>
4+
<description>Project generated by Atmel Start</description>
5+
<url>http://start.atmel.com/</url>
6+
<releases>
7+
<release version="1.0.1">Initial version</release>
8+
</releases>
9+
<taxonomy>
10+
<description Cclass="AtmelStart" generator="AtmelStart">Configuration Files generated by Atmel Start</description>
11+
</taxonomy>
12+
<generators>
13+
<generator id="AtmelStart">
14+
<description>Atmel Start</description>
15+
<select Dname="ATmega4809" Dvendor="Atmel:3"/>
16+
<command>http://start.atmel.com/</command>
17+
<files>
18+
<file category="generator" name="atmel_start_config.atstart"/>
19+
<file attr="template" category="other" name="AtmelStart.env_conf" select="Environment configuration"/>
20+
</files>
21+
</generator>
22+
</generators>
23+
<conditions>
24+
<condition id="AVR Device Startup">
25+
<description>Dependency on Device Startup components</description>
26+
<require Cclass="Device" Cgroup="Startup" Cversion="1.4.0"/>
27+
</condition>
28+
<condition id="ARMCC, GCC, IAR">
29+
<require Dname="ATmega4809"/>
30+
<accept Tcompiler="ARMCC"/>
31+
<accept Tcompiler="GCC"/>
32+
<accept Tcompiler="IAR"/>
33+
</condition>
34+
</conditions>
35+
<components generator="AtmelStart">
36+
<component Cclass="AtmelStart" Cgroup="Framework" Cversion="1.0.0" condition="AVR Device Startup">
37+
<description>Atmel Start Framework</description>
38+
<RTE_Components_h>#define ATMEL_START</RTE_Components_h>
39+
<files>
40+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/generator/DoxygenLayout.xml"/>
41+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/generator/doxyfile.doxygen"/>
42+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/mainpage.dox"/>
43+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/adc/doc/adc.rst"/>
44+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/bod/doc/bod.rst"/>
45+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/clkctrl/doc/clkctrl.rst"/>
46+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/cpuint/doc/cpuint.rst"/>
47+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/slpctrl/doc/slpctrl.rst"/>
48+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/usart/doc/usart_basic.rst"/>
49+
<file category="doc" condition="ARMCC, GCC, IAR" name="modules/vref/doc/vref.rst"/>
50+
<file category="source" condition="ARMCC, GCC, IAR" name="main.c"/>
51+
<file category="other" condition="ARMCC, GCC, IAR" name="documentation/adc_basics_with_megaavr_0_series.rst/"/>
52+
<file category="source" condition="ARMCC, GCC, IAR" name="src/driver_init.c"/>
53+
<file category="header" condition="ARMCC, GCC, IAR" name="include/driver_init.h"/>
54+
<file category="header" condition="ARMCC, GCC, IAR" name="include/atmel_start_pins.h"/>
55+
<file category="source" condition="ARMCC, GCC, IAR" name="driver_isr.c"/>
56+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/mainpage.dox"/>
57+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/generator/doxyfile.doxygen"/>
58+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/generator/DoxygenLayout.xml"/>
59+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/adc.dox"/>
60+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/adc_window.dox"/>
61+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/system.dox"/>
62+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/usart.dox"/>
63+
<file category="other" condition="ARMCC, GCC, IAR" name="doxygen/usart_basic.dox"/>
64+
<file category="header" condition="ARMCC, GCC, IAR" name="examples/include/adc_window_example.h"/>
65+
<file category="header" condition="ARMCC, GCC, IAR" name="examples/include/usart_basic_example.h"/>
66+
<file category="source" condition="ARMCC, GCC, IAR" name="examples/src/adc_window_example.c"/>
67+
<file category="source" condition="ARMCC, GCC, IAR" name="examples/src/usart_basic_example.c"/>
68+
<file category="header" condition="ARMCC, GCC, IAR" name="include/adc_window.h"/>
69+
<file category="header" condition="ARMCC, GCC, IAR" name="include/bod.h"/>
70+
<file category="header" condition="ARMCC, GCC, IAR" name="include/ccp.h"/>
71+
<file category="header" condition="ARMCC, GCC, IAR" name="include/clkctrl.h"/>
72+
<file category="header" condition="ARMCC, GCC, IAR" name="include/cpuint.h"/>
73+
<file category="header" condition="ARMCC, GCC, IAR" name="include/port.h"/>
74+
<file category="header" condition="ARMCC, GCC, IAR" name="include/protected_io.h"/>
75+
<file category="header" condition="ARMCC, GCC, IAR" name="include/rstctrl.h"/>
76+
<file category="header" condition="ARMCC, GCC, IAR" name="include/slpctrl.h"/>
77+
<file category="header" condition="ARMCC, GCC, IAR" name="include/system.h"/>
78+
<file category="header" condition="ARMCC, GCC, IAR" name="include/usart_basic.h"/>
79+
<file category="header" condition="ARMCC, GCC, IAR" name="include/vref.h"/>
80+
<file category="source" condition="ARMCC, GCC, IAR" name="src/adc_window.c"/>
81+
<file category="source" condition="ARMCC, GCC, IAR" name="src/bod.c"/>
82+
<file category="source" condition="ARMCC, GCC, IAR" name="src/clkctrl.c"/>
83+
<file category="source" condition="ARMCC, GCC, IAR" name="src/cpuint.c"/>
84+
<file category="source" condition="ARMCC, GCC, IAR" name="src/protected_io.S"/>
85+
<file category="source" condition="ARMCC, GCC, IAR" name="src/slpctrl.c"/>
86+
<file category="source" condition="ARMCC, GCC, IAR" name="src/usart_basic.c"/>
87+
<file category="source" condition="ARMCC, GCC, IAR" name="src/vref.c"/>
88+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/assembler.h"/>
89+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/assembler/gas.h"/>
90+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/assembler/iar.h"/>
91+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/atomic.h"/>
92+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/compiler.h"/>
93+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/interrupt_avr8.h"/>
94+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/utils.h"/>
95+
<file category="header" condition="ARMCC, GCC, IAR" name="utils/utils_assert.h"/>
96+
<file category="header" condition="ARMCC, GCC, IAR" name="atmel_start.h"/>
97+
<file category="source" condition="ARMCC, GCC, IAR" name="atmel_start.c"/>
98+
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="config/clock_config.h"/>
99+
<file attr="config" category="header" condition="ARMCC, GCC, IAR" name="main.h"/>
100+
<file category="include" condition="ARMCC, GCC, IAR" name="config"/>
101+
<file category="include" condition="ARMCC, GCC, IAR" name="examples/include"/>
102+
<file category="include" condition="ARMCC, GCC, IAR" name="include"/>
103+
<file category="include" condition="ARMCC, GCC, IAR" name="utils"/>
104+
<file category="include" condition="ARMCC, GCC, IAR" name="utils/assembler"/>
105+
<file category="include" condition="ARMCC, GCC, IAR" name=""/>
106+
</files>
107+
</component>
108+
</components>
109+
</package>
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
#
2+
# There exist several targets which are by default empty and which can be
3+
# used for execution of your targets. These targets are usually executed
4+
# before and after some main targets. They are:
5+
#
6+
# .build-pre: called before 'build' target
7+
# .build-post: called after 'build' target
8+
# .clean-pre: called before 'clean' target
9+
# .clean-post: called after 'clean' target
10+
# .clobber-pre: called before 'clobber' target
11+
# .clobber-post: called after 'clobber' target
12+
# .all-pre: called before 'all' target
13+
# .all-post: called after 'all' target
14+
# .help-pre: called before 'help' target
15+
# .help-post: called after 'help' target
16+
#
17+
# Targets beginning with '.' are not intended to be called on their own.
18+
#
19+
# Main targets can be executed directly, and they are:
20+
#
21+
# build build a specific configuration
22+
# clean remove built files from a configuration
23+
# clobber remove all built files
24+
# all build all configurations
25+
# help print help mesage
26+
#
27+
# Targets .build-impl, .clean-impl, .clobber-impl, .all-impl, and
28+
# .help-impl are implemented in nbproject/makefile-impl.mk.
29+
#
30+
# Available make variables:
31+
#
32+
# CND_BASEDIR base directory for relative paths
33+
# CND_DISTDIR default top distribution directory (build artifacts)
34+
# CND_BUILDDIR default top build directory (object files, ...)
35+
# CONF name of current configuration
36+
# CND_ARTIFACT_DIR_${CONF} directory of build artifact (current configuration)
37+
# CND_ARTIFACT_NAME_${CONF} name of build artifact (current configuration)
38+
# CND_ARTIFACT_PATH_${CONF} path to build artifact (current configuration)
39+
# CND_PACKAGE_DIR_${CONF} directory of package (current configuration)
40+
# CND_PACKAGE_NAME_${CONF} name of package (current configuration)
41+
# CND_PACKAGE_PATH_${CONF} path to package (current configuration)
42+
#
43+
# NOCDDL
44+
45+
46+
# Environment
47+
MKDIR=mkdir
48+
CP=cp
49+
CCADMIN=CCadmin
50+
RANLIB=ranlib
51+
52+
53+
# build
54+
build: .build-post
55+
56+
.build-pre:
57+
# Add your pre 'build' code here...
58+
59+
.build-post: .build-impl
60+
# Add your post 'build' code here...
61+
62+
63+
# clean
64+
clean: .clean-post
65+
66+
.clean-pre:
67+
# Add your pre 'clean' code here...
68+
# WARNING: the IDE does not call this target since it takes a long time to
69+
# simply run make. Instead, the IDE removes the configuration directories
70+
# under build and dist directly without calling make.
71+
# This target is left here so people can do a clean when running a clean
72+
# outside the IDE.
73+
74+
.clean-post: .clean-impl
75+
# Add your post 'clean' code here...
76+
77+
78+
# clobber
79+
clobber: .clobber-post
80+
81+
.clobber-pre:
82+
# Add your pre 'clobber' code here...
83+
84+
.clobber-post: .clobber-impl
85+
# Add your post 'clobber' code here...
86+
87+
88+
# all
89+
all: .all-post
90+
91+
.all-pre:
92+
# Add your pre 'all' code here...
93+
94+
.all-post: .all-impl
95+
# Add your post 'all' code here...
96+
97+
98+
# help
99+
help: .help-post
100+
101+
.help-pre:
102+
# Add your pre 'help' code here...
103+
104+
.help-post: .help-impl
105+
# Add your post 'help' code here...
106+
107+
108+
109+
# include project implementation makefile
110+
include nbproject/Makefile-impl.mk
111+
112+
# include project make variables
113+
include nbproject/Makefile-variables.mk
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include <atmel_start.h>
2+
3+
/**
4+
* Initializes MCU, drivers and middleware in the project
5+
**/
6+
void atmel_start_init(void)
7+
{
8+
system_init();
9+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef ATMEL_START_H_INCLUDED
2+
#define ATMEL_START_H_INCLUDED
3+
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
7+
8+
#include "include/driver_init.h"
9+
#include "include/atmel_start_pins.h"
10+
11+
/**
12+
* Initializes MCU, drivers and middleware in the project
13+
**/
14+
void atmel_start_init(void);
15+
16+
#ifdef __cplusplus
17+
}
18+
#endif
19+
#endif

0 commit comments

Comments
 (0)