Skip to content

Commit 175b382

Browse files
authored
Copy hello_serial into bootloaders/encrypted (#537)
Removes the dependence on file from a separate folder, which other examples don't have
1 parent ba83100 commit 175b382

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

bootloaders/encrypted/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ example_auto_set_url(enc_bootloader)
6464

6565
# Example binary to load
6666
add_executable(hello_serial_enc
67-
../../hello_world/serial/hello_serial.c
67+
hello_serial.c
6868
)
6969

7070
# pull in common dependencies

bootloaders/encrypted/hello_serial.c

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
3+
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
7+
#include <stdio.h>
8+
#include "pico/stdlib.h"
9+
10+
int main() {
11+
stdio_init_all();
12+
while (true) {
13+
printf("Hello, world!\n");
14+
printf("I'm an encrypted binary\n");
15+
sleep_ms(1000);
16+
}
17+
}

0 commit comments

Comments
 (0)