Skip to content
Snippets Groups Projects
Select Git revision
  • 0d8be9c38bcb79376cde682af9b55d94c6806b91
  • master default protected
  • patch-1
  • rahix/simple_menu
  • koalo/bhi160
  • ch3/splashscreen
  • genofire/ble-rewrite
  • koalo/bhi160-works-but-dirty
  • ios-workarounds
  • koalo/wip/i2c-for-python
  • renze/safe_mode
  • renze/hatchery_apps
  • schneider/fundamental-test
  • koalo/factory-reset
  • msgctl/gfx_rle
  • msgctl/faultscreen
  • msgctl/textbuffer_api
  • schneider/bonding
  • schneider/bootloader-update-9a0d158
  • schneider/bsec
  • rahix/bma
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
28 results

interrupt.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    asmarm.h 4.88 KiB
    /*
     * This file is part of the Micro Python project, http://micropython.org/
     *
     * The MIT License (MIT)
     *
     * Copyright (c) 2014 Fabian Vogt
     * Copyright (c) 2013, 2014 Damien P. George
     *
     * Permission is hereby granted, free of charge, to any person obtaining a copy
     * of this software and associated documentation files (the "Software"), to deal
     * in the Software without restriction, including without limitation the rights
     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     * copies of the Software, and to permit persons to whom the Software is
     * furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     * THE SOFTWARE.
     */
    #ifndef __MICROPY_INCLUDED_PY_ASMARM_H__
    #define __MICROPY_INCLUDED_PY_ASMARM_H__
    
    #include "py/misc.h"
    
    #define ASM_ARM_PASS_COMPUTE (1)
    #define ASM_ARM_PASS_EMIT    (2)
    
    #define ASM_ARM_REG_R0  (0)
    #define ASM_ARM_REG_R1  (1)
    #define ASM_ARM_REG_R2  (2)
    #define ASM_ARM_REG_R3  (3)
    #define ASM_ARM_REG_R4  (4)
    #define ASM_ARM_REG_R5  (5)
    #define ASM_ARM_REG_R6  (6)
    #define ASM_ARM_REG_R7  (7)
    #define ASM_ARM_REG_R8  (8)
    #define ASM_ARM_REG_R9  (9)
    #define ASM_ARM_REG_R10 (10)
    #define ASM_ARM_REG_R11 (11)
    #define ASM_ARM_REG_R12 (12)
    #define ASM_ARM_REG_R13 (13)
    #define ASM_ARM_REG_R14 (14)
    #define ASM_ARM_REG_R15 (15)
    #define ASM_ARM_REG_SP  (ASM_ARM_REG_R13)
    #define ASM_ARM_REG_LR  (ASM_ARM_REG_R14)
    #define ASM_ARM_REG_PC  (ASM_ARM_REG_R15)
    
    #define ASM_ARM_CC_EQ (0x0 << 28)
    #define ASM_ARM_CC_NE (0x1 << 28)
    #define ASM_ARM_CC_CS (0x2 << 28)
    #define ASM_ARM_CC_CC (0x3 << 28)
    #define ASM_ARM_CC_MI (0x4 << 28)
    #define ASM_ARM_CC_PL (0x5 << 28)
    #define ASM_ARM_CC_VS (0x6 << 28)
    #define ASM_ARM_CC_VC (0x7 << 28)
    #define ASM_ARM_CC_HI (0x8 << 28)
    #define ASM_ARM_CC_LS (0x9 << 28)
    #define ASM_ARM_CC_GE (0xa << 28)
    #define ASM_ARM_CC_LT (0xb << 28)
    #define ASM_ARM_CC_GT (0xc << 28)
    #define ASM_ARM_CC_LE (0xd << 28)
    #define ASM_ARM_CC_AL (0xe << 28)