-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/rgb-led-mirror
Conflicts: hal/src/stm32f2xx/hal_dynalib_export.cpp modules/photon/system-part2/module_system_part2_export.ld modules/photon/system-part2/src/module_system_part2.cpp
- Loading branch information
Showing
19 changed files
with
3,525 additions
and
3,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#ifndef HAL_BOOTLOADER_EXCLUDE | ||
#include "hal_dynalib_bootloader.h" | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
Copyright (c) 2013-2016 Particle Industries, Inc. All rights reserved. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation, either | ||
version 3 of the License, or (at your option) any later version. | ||
This library 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 | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, see <http://www.gnu.org/licenses/>. | ||
****************************************************************************** | ||
*/ | ||
|
||
#ifndef BOOTLOADER_HAL_H_ | ||
#define BOOTLOADER_HAL_H_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include <stdint.h> | ||
|
||
const uint8_t* HAL_Bootloader_Image(uint32_t* size, void* reserved); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* BOOTLOADER_HAL_H_ */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
****************************************************************************** | ||
* @file hal_dynalib_bootloader.h | ||
* @authors Andrey Tolstoy | ||
* @date 15 December 2016 | ||
****************************************************************************** | ||
Copyright (c) 2016 Particle Industries, Inc. All rights reserved. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation, either | ||
version 3 of the License, or (at your option) any later version. | ||
This library 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 | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, see <http://www.gnu.org/licenses/>. | ||
****************************************************************************** | ||
*/ | ||
|
||
#ifndef HAL_DYNALIB_BOOTLOADER_H | ||
#define HAL_DYNALIB_BOOTLOADER_H | ||
|
||
#include "dynalib.h" | ||
|
||
#ifdef DYNALIB_EXPORT | ||
#include "bootloader_hal.h" | ||
#endif | ||
|
||
DYNALIB_BEGIN(hal_bootloader) | ||
|
||
DYNALIB_FN(0, hal_bootloader, HAL_Bootloader_Image, const uint8_t*(uint32_t*, void*)) | ||
|
||
DYNALIB_END(hal_bootloader) | ||
|
||
#endif /* HAL_DYNALIB_BOOTLOADER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
Copyright (c) 2013-2016 Particle Industries, Inc. All rights reserved. | ||
This library is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation, either | ||
version 3 of the License, or (at your option) any later version. | ||
This library 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 | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public | ||
License along with this library; if not, see <http://www.gnu.org/licenses/>. | ||
****************************************************************************** | ||
*/ | ||
|
||
#ifndef HAL_BOOTLOADER_EXCLUDE | ||
|
||
#include "bootloader_hal.h" | ||
|
||
#define CAT2(a,b) a##b | ||
#define CAT(a,b) CAT2(a,b) | ||
|
||
#define BOOTLOADER_IMAGE CAT(bootloader_platform_, CAT(PLATFORM_ID,_bin)) | ||
#define BOOTLOADER_IMAGE_LEN CAT(bootloader_platform_, CAT(PLATFORM_ID,_bin_len)) | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
extern const unsigned int BOOTLOADER_IMAGE_LEN; | ||
extern const unsigned char BOOTLOADER_IMAGE[]; | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
const uint8_t* HAL_Bootloader_Image(uint32_t* size, void* reserved) | ||
{ | ||
if (size) | ||
*size = (uint32_t)BOOTLOADER_IMAGE_LEN; | ||
return (const uint8_t*)BOOTLOADER_IMAGE; | ||
} | ||
|
||
#endif // HAL_BOOTLOADER_EXCLUDE |
Oops, something went wrong.