From 6406ef69e3ea9ff56f8bc3e4f99297d8909d97ec Mon Sep 17 00:00:00 2001 From: Rik Bouwmeester Date: Thu, 11 Apr 2024 12:57:12 +0200 Subject: [PATCH] Update examples for gap_sdk v4.22.0 Docker has been updated --- docs/ai-examples/classification-demo.md | 4 ++-- docs/img-proc-examples/face-detection.md | 2 +- examples/ai/classification/classification.c | 2 +- examples/image_processing/FaceDetection/main.c | 2 +- examples/other/com-test/com-test.c | 2 +- examples/other/wifi-img-streamer/wifi-img-streamer.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/ai-examples/classification-demo.md b/docs/ai-examples/classification-demo.md index ae637c87..05084437 100644 --- a/docs/ai-examples/classification-demo.md +++ b/docs/ai-examples/classification-demo.md @@ -31,8 +31,8 @@ For more information on good deep learning practices, we recommend reviewing [De #### GAP8 There are two approaches for this: -* Install gap_sdk natively on your machine (>= 4.8.0) -* Build inside Docker container with gap_sdk >= 4.8.0 +* Install gap_sdk natively on your machine (>= 4.22.0) +* Build inside Docker container with gap_sdk >= 4.22.0 This document uses the Docker container to compile the example. diff --git a/docs/img-proc-examples/face-detection.md b/docs/img-proc-examples/face-detection.md index 0f1cee46..292b54e8 100644 --- a/docs/img-proc-examples/face-detection.md +++ b/docs/img-proc-examples/face-detection.md @@ -5,7 +5,7 @@ page_id: face-detection This is the face detection application based on the example as developed by Greenwaves technologies. It is a bit more tailor made towards the AI-deck and uses the wifi streamer to stream the output to your computer. -This was tested on **GAP_SDK version 4.8.0.2**, which at the moment of writing was the newest we had a docker container for. +This was tested on **GAP_SDK version 4.22.0**, which at the moment of writing was the newest we had a docker container for. ## Building with Docker GAP-SDK diff --git a/examples/ai/classification/classification.c b/examples/ai/classification/classification.c index c896d8be..483aecaf 100644 --- a/examples/ai/classification/classification.c +++ b/examples/ai/classification/classification.c @@ -147,7 +147,7 @@ int classification() { pi_freq_set(PI_FREQ_DOMAIN_FC, FREQ_FC*1000*1000); //pi_freq_set(PI_FREQ_DOMAIN_CL, FREQ_CL*1000*1000); - pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); + __pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); // For debugging struct pi_uart_conf uart_conf; diff --git a/examples/image_processing/FaceDetection/main.c b/examples/image_processing/FaceDetection/main.c index 881d299e..c9a1116a 100644 --- a/examples/image_processing/FaceDetection/main.c +++ b/examples/image_processing/FaceDetection/main.c @@ -467,6 +467,6 @@ int main(void) // Increase the FC freq to 250 MHz pi_freq_set(PI_FREQ_DOMAIN_FC, 250000000); - pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); + __pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); return pmsis_kickoff((void *)start_example); } diff --git a/examples/other/com-test/com-test.c b/examples/other/com-test/com-test.c index 84af4b6d..b71a3b8c 100644 --- a/examples/other/com-test/com-test.c +++ b/examples/other/com-test/com-test.c @@ -153,7 +153,7 @@ int main(void) // Increase the FC freq to 250 MHz pi_freq_set(PI_FREQ_DOMAIN_FC, 250000000); - pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); + __pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); return pmsis_kickoff((void *)start_test_application); } diff --git a/examples/other/wifi-img-streamer/wifi-img-streamer.c b/examples/other/wifi-img-streamer/wifi-img-streamer.c index 0991853c..91633e83 100644 --- a/examples/other/wifi-img-streamer/wifi-img-streamer.c +++ b/examples/other/wifi-img-streamer/wifi-img-streamer.c @@ -412,7 +412,7 @@ int main(void) // Increase the FC freq to 250 MHz pi_freq_set(PI_FREQ_DOMAIN_FC, 250000000); - pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); + __pi_pmu_voltage_set(PI_PMU_DOMAIN_FC, 1200); return pmsis_kickoff((void *)start_example); }