sync
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
### Console / Logging: RTT (no UART on buzzy)
|
### Console / Logging: RTT
|
||||||
CONFIG_UART_CONSOLE=n
|
CONFIG_USE_SEGGER_RTT=y
|
||||||
CONFIG_CONSOLE=y
|
CONFIG_CONSOLE=y
|
||||||
CONFIG_RTT_CONSOLE=y
|
CONFIG_RTT_CONSOLE=y
|
||||||
CONFIG_USE_SEGGER_RTT=y
|
|
||||||
CONFIG_LOG_BACKEND_RTT=y
|
CONFIG_UART_CONSOLE=n
|
||||||
CONFIG_LOG_BACKEND_UART=n
|
CONFIG_LOG_BACKEND_UART=n
|
||||||
|
CONFIG_LOG_BACKEND_RTT=y
|
||||||
|
|||||||
8
firmware/debug.conf
Normal file
8
firmware/debug.conf
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
### Logging
|
||||||
|
CONFIG_LOG=y
|
||||||
|
CONFIG_AUDIO_LOG_LEVEL_DBG=y
|
||||||
|
|
||||||
|
CONFIG_DEBUG_OPTIMIZATIONS=y
|
||||||
|
|
||||||
|
CONFIG_INIT_STACKS=y
|
||||||
|
CONFIG_THREAD_STACK_INFO=y
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
if(CONFIG_AUDIO)
|
if(CONFIG_BUZZ_AUDIO)
|
||||||
zephyr_library()
|
zephyr_library()
|
||||||
zephyr_library_sources(src/audio.c)
|
zephyr_library_sources(src/audio.c)
|
||||||
zephyr_include_directories(include)
|
zephyr_include_directories(include)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
menuconfig AUDIO
|
menuconfig BUZZ_AUDIO
|
||||||
bool "Audio handling"
|
bool "Audio handling"
|
||||||
default y
|
default y
|
||||||
select I2S
|
select I2S
|
||||||
select POLL
|
select POLL
|
||||||
|
|
||||||
if AUDIO
|
if BUZZ_AUDIO
|
||||||
config AUDIO_NO_SAMPLES_SAMPLE
|
config AUDIO_NO_SAMPLES_SAMPLE
|
||||||
string "Audio no samples sample"
|
string "Audio no samples sample"
|
||||||
default "404"
|
default "404"
|
||||||
@@ -57,4 +57,4 @@ if AUDIO
|
|||||||
module = AUDIO
|
module = AUDIO
|
||||||
module-str = audio
|
module-str = audio
|
||||||
source "subsys/logging/Kconfig.template.log_config"
|
source "subsys/logging/Kconfig.template.log_config"
|
||||||
endif # AUDIO
|
endif # BUZZ_AUDIO
|
||||||
@@ -1,5 +1,6 @@
|
|||||||
#include <zephyr/fs/littlefs.h>
|
#include <zephyr/fs/littlefs.h>
|
||||||
#include <zephyr/fs/fs.h>
|
#include <zephyr/fs/fs.h>
|
||||||
|
#include <zephyr/storage/flash_map.h>
|
||||||
#include <zephyr/sys/byteorder.h>
|
#include <zephyr/sys/byteorder.h>
|
||||||
#include <zephyr/logging/log.h>
|
#include <zephyr/logging/log.h>
|
||||||
#include <zephyr/pm/device.h>
|
#include <zephyr/pm/device.h>
|
||||||
@@ -11,7 +12,14 @@
|
|||||||
|
|
||||||
LOG_MODULE_REGISTER(fs_mgmt, CONFIG_FS_MGMT_LOG_LEVEL);
|
LOG_MODULE_REGISTER(fs_mgmt, CONFIG_FS_MGMT_LOG_LEVEL);
|
||||||
|
|
||||||
#define FS_PARTITION_ID FLASH_AREA_ID(littlefs_storage)
|
/* Prefer external LittleFS partition when present, otherwise internal storage partition. */
|
||||||
|
#if DT_NODE_EXISTS(DT_NODELABEL(ext_flash_lfs))
|
||||||
|
#define FS_PARTITION_ID FIXED_PARTITION_ID(ext_flash_lfs)
|
||||||
|
#elif DT_NODE_EXISTS(DT_NODELABEL(storage_partition))
|
||||||
|
#define FS_PARTITION_ID FIXED_PARTITION_ID(storage_partition)
|
||||||
|
#else
|
||||||
|
#error "No compatible LittleFS partition node label found (expected ext_flash_lfs or storage_partition)"
|
||||||
|
#endif
|
||||||
FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(fs_storage_data);
|
FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(fs_storage_data);
|
||||||
|
|
||||||
#define EXTERNAL_FLASH_NODE DT_ALIAS(external_flash)
|
#define EXTERNAL_FLASH_NODE DT_ALIAS(external_flash)
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
### Logging
|
|
||||||
CONFIG_LOG=y
|
|
||||||
CONFIG_AUDIO_LOG_LEVEL_DBG=y
|
|
||||||
|
|
||||||
### Bluetooth
|
### Bluetooth
|
||||||
CONFIG_BLE_MGMT=y
|
CONFIG_BLE_MGMT=y
|
||||||
|
|
||||||
@@ -14,5 +10,3 @@ CONFIG_PM_DEVICE=y
|
|||||||
|
|
||||||
### Stack
|
### Stack
|
||||||
CONFIG_MAIN_STACK_SIZE=2048
|
CONFIG_MAIN_STACK_SIZE=2048
|
||||||
CONFIG_INIT_STACKS=y
|
|
||||||
CONFIG_THREAD_STACK_INFO=y
|
|
||||||
|
|||||||
Reference in New Issue
Block a user