nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /*************************************************************************** |
2 | * * |
||
3 | * ########### ########### ########## ########## * |
||
4 | * ############ ############ ############ ############ * |
||
5 | * ## ## ## ## ## ## ## * |
||
6 | * ## ## ## ## ## ## ## * |
||
7 | * ########### #### ###### ## ## ## ## ###### * |
||
8 | * ########### #### # ## ## ## ## # # * |
||
9 | * ## ## ###### ## ## ## ## # # * |
||
10 | * ## ## # ## ## ## ## # # * |
||
11 | * ############ ##### ###### ## ## ## ##### ###### * |
||
12 | * ########### ########### ## ## ## ########## * |
||
13 | * * |
||
14 | * S E C U R E M O B I L E N E T W O R K I N G * |
||
15 | * * |
||
16 | * This file is part of NexMon. * |
||
17 | * * |
||
18 | * Copyright (c) 2016 NexMon Team * |
||
19 | * * |
||
20 | * NexMon is free software: you can redistribute it and/or modify * |
||
21 | * it under the terms of the GNU General Public License as published by * |
||
22 | * the Free Software Foundation, either version 3 of the License, or * |
||
23 | * (at your option) any later version. * |
||
24 | * * |
||
25 | * NexMon is distributed in the hope that it will be useful, * |
||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
||
28 | * GNU General Public License for more details. * |
||
29 | * * |
||
30 | * You should have received a copy of the GNU General Public License * |
||
31 | * along with NexMon. If not, see <http://www.gnu.org/licenses/>. * |
||
32 | * * |
||
33 | **************************************************************************/ |
||
34 | |||
35 | #ifndef LOCAL_WRAPPER_C |
||
36 | #define LOCAL_WRAPPER_C |
||
37 | |||
38 | #include <firmware_version.h> |
||
39 | #include <structs.h> |
||
40 | #include <stdarg.h> |
||
41 | |||
42 | #ifndef WRAPPER_H |
||
43 | // if this file is not included in the wrapper.h file, create dummy functions |
||
44 | #define VOID_DUMMY { ; } |
||
45 | #define RETURN_DUMMY { ; return 0; } |
||
46 | |||
47 | #define AT(CHIPVER, FWVER, ADDR) __attribute__((weak, at(ADDR, "dummy", CHIPVER, FWVER))) |
||
48 | #else |
||
49 | // if this file is included in the wrapper.h file, create prototypes |
||
50 | #define VOID_DUMMY ; |
||
51 | #define RETURN_DUMMY ; |
||
52 | #define AT(CHIPVER, FWVER, ADDR) |
||
53 | #endif |
||
54 | |||
55 | AT(CHIP_VER_BCM43451b1, FW_VER_7_63_43_0, 0x20a584) |
||
56 | AT(CHIP_VER_BCM43455c0, FW_VER_7_45_154, 0x2005c4) |
||
57 | int |
||
58 | fp_apply_patches(void) |
||
59 | RETURN_DUMMY |
||
60 | |||
61 | #undef VOID_DUMMY |
||
62 | #undef RETURN_DUMMY |
||
63 | #undef AT |
||
64 | |||
65 | #endif /*LOCAL_WRAPPER_C*/ |