28 lines
645 B
C++
28 lines
645 B
C++
/*
|
|
* ProtectedMemory.hh
|
|
*
|
|
* Created on: 6 àïð. 2021 ã.
|
|
* Author: titov
|
|
*/
|
|
|
|
#ifndef UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_
|
|
#define UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_
|
|
|
|
#include <cstddef>
|
|
#include <cstdio>
|
|
|
|
namespace peripheral {
|
|
|
|
typedef char protected_char;
|
|
|
|
extern bool (*write_lock) ( protected_char * begin, std::size_t size );
|
|
extern void (*write_unlock) ( protected_char * begin, std::size_t size );
|
|
extern bool (*read_lock) ( const protected_char * begin, std::size_t size );
|
|
extern void (*read_unlock) ( const protected_char * begin, std::size_t size );
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* UMLIBRARY_PERIPHERAL_PROTECTEDMEMORY_HH_ */
|