restructure to yotta module, with a few tweaks to get things building

This commit is contained in:
James Crosby 2015-06-23 18:15:41 +01:00
parent 2716309ce1
commit 488e24620d
122 changed files with 3093 additions and 3093 deletions

View File

@ -69,7 +69,7 @@
#elif defined ( __GNUC__ )
#ifndef __ASM
#define __ASM __asm /*!< asm keyword for GNU Compiler */
#define __ASM __asm__ /*!< asm keyword for GNU Compiler */
#endif
#ifndef __INLINE
@ -84,7 +84,7 @@
static inline unsigned int gcc_current_sp(void)
{
register unsigned sp asm("sp");
register unsigned sp __ASM("sp");
return sp;
}

View File

@ -29,7 +29,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "compiler_abstraction.h"
#include "bootloader_util.h"
#include <stdint.h>
#include <string.h>
@ -88,7 +88,7 @@ isr_abort
#elif defined(TOOLCHAIN_GCC)
static void bootloader_util_reset(uint32_t start_addr)
{
asm(
__ASM(
".equ MASK_ONES, 0xFFFFFFFF\n\t" /* Ones, to be loaded into register as default value before reset. */
".equ MASK_ZEROS, 0x00000000\n\t" /* Zeros, to be loaded into register as default value before reset. */
".equ xPSR_RESET, 0x21000000\n\t" /* Default value of xPSR after System Reset. */

Some files were not shown because too many files have changed in this diff Show More