Replace libmain:app_main.o with core/app_main.c

This commit is contained in:
Alex Stewart 2015-08-25 09:34:37 -07:00
parent 8b8f7c9de4
commit a044c061d5
7 changed files with 805 additions and 0 deletions

21
core/include/xtensa_ops.h Normal file
View file

@ -0,0 +1,21 @@
/** xtensa_ops.h
*
* Special macros/etc which deal with Xtensa-specific architecture/CPU
* considerations.
*
* Part of esp-open-rtos
* Copyright (C) 2015 Superhouse Automation Pty Ltd
* BSD Licensed as described in the file LICENSE
*/
#ifndef _XTENSA_OPS_H
#define _XTENSA_OPS_H
// GCC macros for reading, writing, and exchanging Xtensa processor special
// registers:
#define RSR(var, reg) asm volatile ("rsr %0, " #reg : "=r" (var));
#define WSR(var, reg) asm volatile ("wsr %0, " #reg : : "r" (var));
#define XSR(var, reg) asm volatile ("xsr %0, " #reg : "+r" (var));
#endif /* _XTENSA_OPS_H */