Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions sdk/bsp/optical.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,14 @@ void OPTICAL_SFD_Handler(void) {
// print statement
// doing this prevent a long string of loads back to back
printf(
"HF=%lu-%lu 2M=%lu-%lu",
count_HFclock, HF_CLOCK_fine,
count_2M, RC2M_coarse);
"HF=%lu-%lu-%lu ",
count_HFclock, HF_CLOCK_fine, HF_CLOCK_coarse);
printf(
",%lu,%lu LC=%lu-%lu ",
RC2M_fine, RC2M_superfine,
"2M=%lu-%lu,%lu,%lu ",
count_2M, RC2M_coarse,
RC2M_fine, RC2M_superfine);
printf(
"LC=%lu-%lu ",
count_LC, optical_vars.LC_code);
#if defined(MODULE_RADIO)
printf(
Expand Down
2 changes: 1 addition & 1 deletion sdk/bsp/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ void default_radio_rx_cb(uint8_t* packet, uint8_t packet_len) {

void cb_timer_radio(void) {
if (radio_vars.radio_mode == TX_MODE) {
// Tranmit the packet
// Transmit the packet
radio_txNow();
} else if (radio_vars.radio_mode == RX_MODE) {
// Stop attempting to receive
Expand Down
25 changes: 21 additions & 4 deletions sdk/cmake/scum-build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,30 @@ if(NOT DEFINED SCUM_BUILD_C_FLAGS)
string(APPEND SCUM_BUILD_C_FLAGS
${${SCUM_BUILD_TYPE_FLAGS}}
" -mcpu=cortex-m0"
" -march=armv6s-m"
" -mthumb"
" -mlittle-endian"
" -mfloat-abi=soft"
" -std=c17"
" -fdebug-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/../..="
" -pedantic"
" -Wall"
" -Werror"
" -Wstrict-prototypes"
" -fdata-sections"
" -ffunction-sections"
" -fwrapv"
" -fno-common"
" -fshort-enums"
" -fomit-frame-pointer"
" -fshort-wchar"
" -fdiagnostics-color"
" -fno-delete-null-pointer-checks"
" -pedantic"
" -Wall"
" -Werror"
" -Wcast-align"
" -Wformat=2"
" -Wformat-overflow"
" -Wformat-truncation"
" -Wstrict-overflow"
" -Wstrict-prototypes"
)
endif()

Expand All @@ -48,6 +61,10 @@ if(NOT DEFINED SCUM_BUILD_LD_FLAGS)
" -Wl,--gc-sections"
" -Wl,--print-memory-usage"
" -Wl,--no-wchar-size-warning"
" -Wl,--no-warn-rwx-segments"
" -Wl,--fatal-warnings"
" -lc"
" -lgcc"
" -T${LINKER_SCRIPT}"
" -Wl,-Map=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}.map"
)
Expand Down
Loading