summaryrefslogtreecommitdiff
path: root/examples/vf6xx_colibri_m4/demo_apps/hello_world
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vf6xx_colibri_m4/demo_apps/hello_world')
-rw-r--r--examples/vf6xx_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt2
-rw-r--r--examples/vf6xx_colibri_m4/demo_apps/hello_world/main.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/vf6xx_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt b/examples/vf6xx_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt
index 741b0c6..57055bf 100644
--- a/examples/vf6xx_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt
+++ b/examples/vf6xx_colibri_m4/demo_apps/hello_world/armgcc/CMakeLists.txt
@@ -127,6 +127,8 @@ ADD_EXECUTABLE(hello_world
"${ProjDirPath}/../../../../../platform/utilities/src/print_scan.h"
"${ProjDirPath}/../../../../../platform/devices/VF6XX/startup/system_VF6XX_M4.c"
"${ProjDirPath}/../../../../../platform/devices/VF6XX/startup/system_VF6XX_M4.h"
+ "${ProjDirPath}/../../../pin_mux.c"
+ "${ProjDirPath}/../../../pin_mux.h"
)
SET_TARGET_PROPERTIES(hello_world PROPERTIES OUTPUT_NAME "hello_world.elf")
diff --git a/examples/vf6xx_colibri_m4/demo_apps/hello_world/main.c b/examples/vf6xx_colibri_m4/demo_apps/hello_world/main.c
index 1fad4c2..c661f02 100644
--- a/examples/vf6xx_colibri_m4/demo_apps/hello_world/main.c
+++ b/examples/vf6xx_colibri_m4/demo_apps/hello_world/main.c
@@ -34,6 +34,7 @@
#include <ccm_vf6xx.h>
#include <lpuart_vf6xx.h>
#include "debug_console_vf6xx.h"
+#include "pin_mux.h"
/*!
* @brief A basic user-defined task
@@ -58,6 +59,7 @@ int main(void)
CCM_GetClocks();
CCM_ControlGate(ccmCcgrGateUart2, ccmClockNeededAll);
+ configure_uart_pins(UART2);
vf6xx_DbgConsole_Init(UART2, ccmIpgBusClk, 115200);
xTaskCreate(HelloTask, "Print Task", configMINIMAL_STACK_SIZE,