https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: e9edaf3806e1bb36eb99d165c063bf8726155c01 authored by a1ex on 19 January 2014, 10:17:18 UTC
Close branch temps2
Tip revision: e9edaf3
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