Skip to content

Commit

Permalink
new menu
Browse files Browse the repository at this point in the history
  • Loading branch information
manu committed Sep 25, 2023
1 parent 75011ab commit 686c980
Show file tree
Hide file tree
Showing 18 changed files with 1,939 additions and 63 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ set(CMAKE_ASM_COMPILER arm-none-eabi-gcc)
set(CMAKE_AR arm-none-eabi-ar)
set(CMAKE_OBJCOPY arm-none-eabi-objcopy)
set(CMAKE_OBJDUMP arm-none-eabi-objdump)
set(SIZE arm-none-eabi-size)
set(CMAKE_SIZE_UTIL arm-none-eabi-size)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)

message(${CMAKE_C_COMPILER})

# project settings
project(firmware ASM C)
Expand Down Expand Up @@ -170,7 +169,7 @@ set(HEX_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.hex)
set(BIN_FILE ${PROJECT_BINARY_DIR}/${PROJECT_NAME}.bin)

add_custom_command(TARGET ${PROJECT_NAME}.elf POST_BUILD
COMMAND ${SIZE} $<TARGET_FILE:${PROJECT_NAME}.elf>
COMMAND ${CMAKE_SIZE_UTIL} $<TARGET_FILE:${PROJECT_NAME}.elf>
COMMAND ${CMAKE_OBJCOPY} -Oihex $<TARGET_FILE:${PROJECT_NAME}.elf> ${HEX_FILE}
COMMAND ${CMAKE_OBJCOPY} -Obinary $<TARGET_FILE:${PROJECT_NAME}.elf> ${BIN_FILE}
COMMAND python3 ${CMAKE_SOURCE_DIR}/fw-pack.py ${BIN_FILE} ${GIT_HASH} ${PROJECT_NAME}.packed.bin
Expand Down
3 changes: 2 additions & 1 deletion app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ target_sources(firmware.elf PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/dtmf.c
${CMAKE_CURRENT_SOURCE_DIR}/generic.c
${CMAKE_CURRENT_SOURCE_DIR}/main.c
${CMAKE_CURRENT_SOURCE_DIR}/menu.c
# ${CMAKE_CURRENT_SOURCE_DIR}/menu.c
${CMAKE_CURRENT_SOURCE_DIR}/menu_new.c
${CMAKE_CURRENT_SOURCE_DIR}/scanner.c
${CMAKE_CURRENT_SOURCE_DIR}/spectrum.c
${CMAKE_CURRENT_SOURCE_DIR}/userapps.c
Expand Down
3 changes: 1 addition & 2 deletions app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#endif
#include "app/generic.h"
#include "app/main.h"
#include "app/menu.h"
#include "app/menu_new.h"
#include "app/scanner.h"
#if defined(ENABLE_UART)
#include "app/uart.h"
Expand Down Expand Up @@ -57,7 +57,6 @@
#endif
#include "ui/battery.h"
#include "ui/inputbox.h"
#include "ui/menu.h"
#include "ui/rssi.h"
#include "ui/status.h"
#include "ui/ui.h"
Expand Down
2 changes: 1 addition & 1 deletion app/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "app/fm.h"
#endif
#include "app/generic.h"
#include "app/menu.h"
#include "app/menu_new.h"
#include "app/scanner.h"
#include "audio.h"
#include "driver/keyboard.h"
Expand Down
Loading

0 comments on commit 686c980

Please sign in to comment.