Skip to content

Commit

Permalink
Copy hello_serial into bootloaders/encrypted (#537)
Browse files Browse the repository at this point in the history
Removes the dependence on file from a separate folder, which other examples don't have
  • Loading branch information
will-v-pi authored Aug 27, 2024
1 parent ba83100 commit 175b382
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bootloaders/encrypted/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ example_auto_set_url(enc_bootloader)

# Example binary to load
add_executable(hello_serial_enc
../../hello_world/serial/hello_serial.c
hello_serial.c
)

# pull in common dependencies
Expand Down
17 changes: 17 additions & 0 deletions bootloaders/encrypted/hello_serial.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/

#include <stdio.h>
#include "pico/stdlib.h"

int main() {
stdio_init_all();
while (true) {
printf("Hello, world!\n");
printf("I'm an encrypted binary\n");
sleep_ms(1000);
}
}

0 comments on commit 175b382

Please sign in to comment.