mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 03:13:14 +00:00
* app loading wip * various improvements irq/isr stuff is now working lvgl locking where needed hello world now uses proper mutex for app unlocking etc? * various improvements * cmsis_esp improvements * implement interrupts
41 lines
753 B
C
41 lines
753 B
C
#pragma once
|
|
|
|
#include "freertos/portmacro.h"
|
|
#include "furi_extra_defines.h"
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <cmsis_compiler.h>
|
|
|
|
#ifndef FURI_WARN_UNUSED
|
|
#define FURI_WARN_UNUSED __attribute__((warn_unused_result))
|
|
#endif
|
|
|
|
#ifndef FURI_WEAK
|
|
#define FURI_WEAK __attribute__((weak))
|
|
#endif
|
|
|
|
#ifndef FURI_PACKED
|
|
#define FURI_PACKED __attribute__((packed))
|
|
#endif
|
|
|
|
// Used by portENABLE_INTERRUPTS and portDISABLE_INTERRUPTS?
|
|
#ifndef FURI_IS_IRQ_MODE
|
|
#define FURI_IS_IRQ_MODE() (xPortInIsrContext() == pdTRUE)
|
|
#endif
|
|
|
|
#ifndef FURI_IS_ISR
|
|
#define FURI_IS_ISR() (FURI_IS_IRQ_MODE())
|
|
#endif
|
|
|
|
#ifndef FURI_CHECK_RETURN
|
|
#define FURI_CHECK_RETURN __attribute__((__warn_unused_result__))
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|