Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KenwoodFox committed Nov 27, 2023
1 parent e352607 commit 17c1385
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
16 changes: 11 additions & 5 deletions Firmware/build_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,17 @@
username = "github"
host = "github"

# # Colors!
# revision = revision.replace("dirty", "\x1B[31mdirty\x1B[0m")
# host = "\x1B[34m" + host + "\x1B[0m"
# username = "\x1B[34m" + username + "\x1B[0m"

print(f"-DREVISION='\"{revision}\"'")
print(f"-DHOST='\"{host}\"'")
print(f"-DUSER='\"{username}\"'")


# These come from the platform defs
print(f"-D PICO_STDIO_USB") # Both
print(f"-D PICO_STDIO_UART") # Baremetal
print(f"-D USE_FREERTOS") # Both
print(f"-D USE_VFS")
print(f"-D USE_LFS") # Both
print(
f"-D FATFS_SPI_BRG=100000"
) # Compilation fix, SPI frqeuency for FAT SD card (goes unused here)
7 changes: 1 addition & 6 deletions Firmware/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ platform = https://github.com/maxgerhardt/wizio-pico.git ; Pico Framework
board = raspberry-pi-pico ; Board
framework = baremetal ; Without arduino for once!


; build_flags = !python build_flags.py ; Build flags before we push
build_flags =
-D PICO_STDIO_USB ; both
-D PICO_STDIO_UART ; only baremetal
;lib_deps = freertos ; both
build_flags = !python build_flags.py ; Build flags before we push

check_tool = clangtidy ; De-linter
check_flags =
Expand Down
9 changes: 8 additions & 1 deletion Firmware/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@
* @brief Source code for kw1fox-3
*/

// Libs
// Pico Libs
#include <stdio.h>
#include <stdbool.h>
#include "pico/stdlib.h"

// FreeRTOS
#include "FreeRTOS.h"
#include "task.h"

// VFS
#include <VFS.h>

// Headers
#include "boardPins.h"

Expand Down

0 comments on commit 17c1385

Please sign in to comment.