https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: b65acc6714e56bd5055d92bd74dbbef78c39d19f authored by a1ex on 26 September 2014, 07:45:44 UTC
Close branch eosm-magic-off-fix.
Tip revision: b65acc6
misc.c
// misc functions specific to 60D/109

#include <dryos.h>
#include <property.h>
#include <bmp.h>
#include <config.h>
#include <consts.h>
#include <lens.h>
#include <version.h>

// dummy stubs
int new_LiveViewApp_handler = 0xff123456;
void bootflag_write_bootblock(){};
int handle_af_patterns(struct event * event) { return 1; }

// gcc mempcy has odd alignment issues?
void
my_memcpy(
    void *       dest,
    const void *     src,
    size_t          len
)
{
    while( len-- > 0 )
        *(uint8_t*)dest++ = *(const uint8_t*)src++;
}
back to top