1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 17:31:18 +01:00

cpu/esp32: SDK_USED replace by MODULE_ESP_SDK

This commit is contained in:
Gunar Schorcht 2018-12-27 19:00:05 +01:00 committed by Schorcht
parent ec1980a438
commit 950dfba7de
3 changed files with 6 additions and 6 deletions

View File

@ -112,9 +112,9 @@ xt_handler xt_set_interrupt_handler(int n, xt_handler f, void * arg)
if( Xthal_intlevel[n] > XCHAL_EXCM_LEVEL )
return 0; /* priority level too high to safely handle in C */
#ifdef SDK_USED
// for compatibility reasons with SDK, we use _xtos_interrupt_table
// in reverse order
#ifdef MODULE_ESP_SDK
/* for compatibility reasons with SDK, we use _xtos_interrupt_table */
/* in reverse order */
entry = _xt_interrupt_table + (XCHAL_NUM_INTERRUPTS - n);
#else
entry = _xt_interrupt_table + n;

View File

@ -66,7 +66,7 @@ _xt_vpri_mask: .word 0xFFFFFFFF /* Virtual priority mask */
in SDK we use _xtos_interrupt_table_ which is provided as symbol
_xt_interrupt_table_ by ld script
*/
#ifdef SDK_NOT_USED
#ifndef MODULE_ESP_SDK
.data
.global _xt_interrupt_table
.align 8

View File

@ -219,13 +219,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
movi a3, XT_TIMER_INTEN /* a3 = timer interrupt bit */
wsr a4, INTCLEAR /* clear sw or edge-triggered interrupt */
#ifndef RIOT_VERSION /* we use it as hardware timer in RIOT OS */
#ifndef RIOT_VERSION /* we use it as hardware timer in RIOT OS */
beq a3, a4, 7f /* if timer interrupt then skip table */
#endif
find_ms_setbit a3, a4, a3, 0 /* a3 = interrupt number */
#if SDK_USED /* _xtos_interrupt_table is in reverse order */
#if MODULE_ESP_SDK /* _xtos_interrupt_table is in reverse order */
movi a4, XCHAL_NUM_INTERRUPTS /* intnum = XCHAL_NUM_INTERRUPTS - intnum */
sub a3, a4, a3
#endif