diff --git a/sdk/bsp/optical.c b/sdk/bsp/optical.c index 56354e6..aeb0c53 100644 --- a/sdk/bsp/optical.c +++ b/sdk/bsp/optical.c @@ -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( diff --git a/sdk/bsp/radio.c b/sdk/bsp/radio.c index 233fff8..ed948f4 100644 --- a/sdk/bsp/radio.c +++ b/sdk/bsp/radio.c @@ -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 diff --git a/sdk/cmake/scum-build.cmake b/sdk/cmake/scum-build.cmake index 6e67671..8115355 100644 --- a/sdk/cmake/scum-build.cmake +++ b/sdk/cmake/scum-build.cmake @@ -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() @@ -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" )