mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 12:51:22 +04:00
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
26 lines
490 B
C
26 lines
490 B
C
#include "app_api.h"
|
|
|
|
/* Actual implementation of app's API and its private state */
|
|
|
|
static uint32_t accumulator = 0;
|
|
|
|
void app_api_accumulator_set(uint32_t value) {
|
|
accumulator = value;
|
|
}
|
|
|
|
uint32_t app_api_accumulator_get(void) {
|
|
return accumulator;
|
|
}
|
|
|
|
void app_api_accumulator_add(uint32_t value) {
|
|
accumulator += value;
|
|
}
|
|
|
|
void app_api_accumulator_sub(uint32_t value) {
|
|
accumulator -= value;
|
|
}
|
|
|
|
void app_api_accumulator_mul(uint32_t value) {
|
|
accumulator *= value;
|
|
}
|