Commit a4226a9e authored by Filip Demski's avatar Filip Demski
Browse files

SAMV71: Init hardware in main

parent 7be38d69
......@@ -51,8 +51,17 @@ project @_CAPITALIZE:Name_@ is
"@_LOWER:Name_@/runtime/Packetizer",
"@_LOWER:Name_@/runtime/Broker",
"@_LOWER:Name_@/runtime/RuntimeCommon",
"@_LOWER:Name_@/runtime/SAMV71-Runtime",
"@_LOWER:Name_@/runtime/SAMV71-Runtime/Init",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Fpu",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Nvic",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Pio",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Pmc",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Sdramc",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Startup",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Uart",
"@_LOWER:Name_@/runtime/SAMV71-BSP/src/Wdt",
"@_LOWER:Name_@/runtime/FreeRTOS",
"@_LOWER:Name_@")
& external_as_list("EXTERNAL_SOURCE_PATH", ":")
......@@ -69,11 +78,6 @@ project @_CAPITALIZE:Name_@ is
for Main use ("main.c");
Include_Dirs :=
("-I.",
"-I../@_LOWER:Name_@/runtime/SAMV71-BSP/src",
"-I../@_LOWER:Name_@/runtime/FreeRTOS/include");
Warning_Switches :=
("-Wall",
"-Wextra",
......@@ -102,7 +106,6 @@ project @_CAPITALIZE:Name_@ is
for Default_Switches ("C") use
("-g",
"-O2")
& Include_Dirs
& SAMV71_Switches
& external_as_list("@_UPPER:Name_@_USER_CFLAGS", " ")
& external_as_list("USER_CFLAGS", " ");
......@@ -114,7 +117,6 @@ project @_CAPITALIZE:Name_@ is
for Default_Switches ("C") use
("-O0",
"-g")
& Include_Dirs
& SAMV71_Switches
& external_as_list("@_UPPER:Name_@_USER_CFLAGS", " ")
& external_as_list("USER_CFLAGS", " ");
......@@ -141,12 +143,10 @@ project @_CAPITALIZE:Name_@ is
when "Release" =>
for Default_Switches ("C") use
Common_LD_Switches
& Include_Dirs
& SAMV71_Switches;
when "Debug" =>
for Default_Switches ("C") use
Common_LD_Switches
& Include_Dirs
& SAMV71_Switches;
end case;
......
......@@ -4,9 +4,15 @@
@@-- If you have no internet access you can also use (with vim) Ctrl-W-f or gf in vim to open the text doc:
@@-- $HOME/tool-inst/share/kazoo/doc/templates_concurrency_view_sub_partition.ascii
/* File generated by kazoo for TASTE - do not edit */
// the main function
#include <Init/Init.h>
#include <Uart/Uart.h>
Uart consoleUart;
// the main function
int main(void)
{
Init_setup_hardware();
return 0;
}
......@@ -16,11 +16,13 @@ cp -r "${GENERIC_RUNTIME_COMMON_PATH}"/src/Broker "@_LOWER:Name_@/runtime/"
cp -r "${GENERIC_RUNTIME_COMMON_PATH}"/src/RuntimeCommon "@_LOWER:Name_@/runtime/"
echo "Copying TASTE SAMV71 runtime"
mkdir -p "@_LOWER:Name_@/runtime/SAMV71-Runtime"
cp -r "${SAMV71_RUNTIME_PATH}"/Init "@_LOWER:Name_@/runtime/SAMV71-Runtime"
cp -r "${SAMV71_RUNTIME_PATH}"/SAMV71-BSP "@_LOWER:Name_@/runtime/"
mkdir -p "@_LOWER:Name_@/runtime/FreeRTOS"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/*.c "@_LOWER:Name_@/runtime/FreeRTOS"
cp -r "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/include "@_LOWER:Name_@/runtime/FreeRTOS"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/include/*.h "@_LOWER:Name_@/runtime/FreeRTOS"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/portable/MemMang/heap_4.c "@_LOWER:Name_@/runtime/FreeRTOS"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1/port.c "@_LOWER:Name_@/runtime/FreeRTOS"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1/portmacro.h "@_LOWER:Name_@/runtime/FreeRTOS/include"
cp "${SAMV71_RUNTIME_PATH}"/FreeRTOS-Kernel/portable/GCC/ARM_CM7/r0p1/* "@_LOWER:Name_@/runtime/FreeRTOS"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment