Added track store and updated copy to and from volatile to single template function
This commit is contained in:
13
src/data/track_store.h
Normal file
13
src/data/track_store.h
Normal file
@@ -0,0 +1,13 @@
|
||||
// Copyright (C) 2026 Hector van der Aa <hector@h3cx.dev>
|
||||
// Copyright (C) 2026 Association Exergie <association.exergie@gmail.com>
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
#pragma once
|
||||
|
||||
#include "custom_types.h"
|
||||
#include <EEPROM.h>
|
||||
|
||||
extern volatile track_data track_data_global;
|
||||
|
||||
void track_global_read(track_data& out);
|
||||
int track_global_read(unsigned short idx, track_data& out);
|
||||
void track_global_write(const track_data& in);
|
||||
Reference in New Issue
Block a user