mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 04:41:26 +04:00
Added -Wundef to compiler options (#3815)
* fbt: added -Wundef to compiler options; libs: various small fixes for missing defines; desktop: proper access to current RTOS config * apps: fixes for FURI_DEBUG handling * rpc: unified definition checks * Cleanup various defines use * Cleanup configs and move SVCall ISR priority configuration to furi_hal_interrupts Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -194,3 +194,7 @@
|
||||
255 /**< Set to 255 with the memory manager and the mailbox */
|
||||
|
||||
#define TL_BLE_EVENT_FRAME_SIZE (TL_EVT_HDR_SIZE + CFG_TLBLE_MOST_EVENT_PAYLOAD_SIZE)
|
||||
|
||||
/* Various defines for compatibility with -Wundef - thanks, ST */
|
||||
#define CFG_DEBUG_TRACE_FULL 0
|
||||
#define CFG_DEBUG_TRACE_LIGHT 0
|
||||
|
||||
@@ -9,3 +9,15 @@
|
||||
#define BLE_CFG_SVC_MAX_NBR_CB 0
|
||||
|
||||
#define BLE_CFG_CLT_MAX_NBR_CB 0
|
||||
|
||||
/* Various defines for compatibility with -Wundef - thanks, ST */
|
||||
#define BLE_CFG_BLS_INTERMEDIATE_CUFF_PRESSURE 0
|
||||
#define BLE_CFG_BLS_TIME_STAMP_FLAG 0
|
||||
#define BLE_CFG_BLS_PULSE_RATE_FLAG 0
|
||||
#define BLE_CFG_BLS_USER_ID_FLAG 0
|
||||
#define BLE_CFG_BLS_MEASUREMENT_STATUS_FLAG 0
|
||||
#define BLE_CFG_HRS_ENERGY_EXPENDED_INFO_FLAG 0
|
||||
#define BLE_CFG_HRS_ENERGY_RR_INTERVAL_FLAG 0
|
||||
#define BLE_CFG_HTS_MEASUREMENT_INTERVAL 0
|
||||
#define BLE_CFG_HTS_TIME_STAMP_FLAG 0
|
||||
#define BLE_CFG_HTS_TEMPERATURE_TYPE_VALUE_STATIC 0
|
||||
|
||||
@@ -120,6 +120,7 @@ void furi_hal_interrupt_init(void) {
|
||||
TAMP_STAMP_LSECSS_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 0, 0));
|
||||
NVIC_EnableIRQ(TAMP_STAMP_LSECSS_IRQn);
|
||||
|
||||
NVIC_SetPriority(SVCall_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 0, 0));
|
||||
NVIC_SetPriority(PendSV_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 15, 0));
|
||||
|
||||
NVIC_SetPriority(FPU_IRQn, NVIC_EncodePriority(NVIC_GetPriorityGrouping(), 15, 0));
|
||||
|
||||
@@ -17,11 +17,13 @@
|
||||
#define configUSE_PREEMPTION 1
|
||||
#define configSUPPORT_STATIC_ALLOCATION 1
|
||||
#define configSUPPORT_DYNAMIC_ALLOCATION 0
|
||||
#define configUSE_MALLOC_FAILED_HOOK 0
|
||||
#define configUSE_IDLE_HOOK 0
|
||||
#define configUSE_TICK_HOOK 0
|
||||
#define configCPU_CLOCK_HZ (SystemCoreClock)
|
||||
#define configTICK_RATE_HZ_RAW 1000
|
||||
#define configTICK_RATE_HZ ((TickType_t)configTICK_RATE_HZ_RAW)
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
#define configMAX_PRIORITIES (32)
|
||||
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
|
||||
|
||||
@@ -34,7 +36,6 @@
|
||||
#define portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
|
||||
|
||||
#define configUSE_TRACE_FACILITY 1
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
#define configUSE_MUTEXES 1
|
||||
#define configQUEUE_REGISTRY_SIZE 0
|
||||
#define configCHECK_FOR_STACK_OVERFLOW 0
|
||||
|
||||
Reference in New Issue
Block a user