nexmon – Rev 1
?pathlinks?
/***************************************************************************
* *
* ########### ########### ########## ########## *
* ############ ############ ############ ############ *
* ## ## ## ## ## ## ## *
* ## ## ## ## ## ## ## *
* ########### #### ###### ## ## ## ## ###### *
* ########### #### # ## ## ## ## # # *
* ## ## ###### ## ## ## ## # # *
* ## ## # ## ## ## ## # # *
* ############ ##### ###### ## ## ## ##### ###### *
* ########### ########### ## ## ## ########## *
* *
* S E C U R E M O B I L E N E T W O R K I N G *
* *
* This file is part of NexMon. *
* *
* Copyright (c) 2016 NexMon Team *
* *
* NexMon is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* NexMon is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with NexMon. If not, see <http://www.gnu.org/licenses/>. *
* *
**************************************************************************/
#ifndef LOCAL_WRAPPER_C
#define LOCAL_WRAPPER_C
#include <firmware_version.h>
#include <structs.h>
#include <stdarg.h>
#ifndef WRAPPER_H
// if this file is not included in the wrapper.h file, create dummy functions
#define VOID_DUMMY { ; }
#define RETURN_DUMMY { ; return 0; }
#define AT(CHIPVER, FWVER, ADDR) __attribute__((weak, at(ADDR, "dummy", CHIPVER, FWVER)))
#else
// if this file is included in the wrapper.h file, create prototypes
#define VOID_DUMMY ;
#define RETURN_DUMMY ;
#define AT(CHIPVER, FWVER, ADDR)
#endif
AT(CHIP_VER_BCM43451b1, FW_VER_7_63_43_0, 0x20a584)
AT(CHIP_VER_BCM43455c0, FW_VER_7_45_154, 0x2005c4)
int
fp_apply_patches(void)
RETURN_DUMMY
#undef VOID_DUMMY
#undef RETURN_DUMMY
#undef AT
#endif /*LOCAL_WRAPPER_C*/