MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/peripheral/ProtectedMemory.cpp
2024-06-07 11:12:56 +03:00

21 lines
945 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* ProtectedMemory.cpp
*
* Created on: 6 апр. 2021 г.
* Author: titov
*/
#include "ProtectedMemory.hh"
bool defualt_lock( peripheral::protected_char * begin, std::size_t size ) { return true; }
void defualt_unlock( peripheral::protected_char * begin, std::size_t size ) {}
bool defualt_constlock( const peripheral::protected_char * begin, std::size_t size ) { return true; }
void defualt_constunlock( const peripheral::protected_char * begin, std::size_t size ) {}
bool (* peripheral::write_lock) ( peripheral::protected_char * begin, std::size_t size ) = &defualt_lock;
void (* peripheral::write_unlock) ( peripheral::protected_char * begin, std::size_t size ) = &defualt_unlock;
bool (* peripheral::read_lock) ( const peripheral::protected_char * begin, std::size_t size ) = &defualt_constlock;
void (* peripheral::read_unlock) ( const peripheral::protected_char * begin, std::size_t size ) = &defualt_constunlock;