Package org.deepjava.runtime.iMX6
Class Kernel
- java.lang.Object
-
- org.deepjava.runtime.iMX6.Kernel
-
- All Implemented Interfaces:
Iarm32
,IdeepCompilerConstants
,Icolibri_iMX6
,IiMX6
public class Kernel extends Object implements Iarm32, Icolibri_iMX6, IdeepCompilerConstants
This is the kernel class. It provides basic functionalities and does the booting-up.
-
-
Field Summary
Fields Modifier and Type Field Description static int
clockFrequency
Clock frequency of the processor.(package private) static int
cmdAddr
(package private) static int
loopAddr
(package private) static int
stackEndPattern
-
Fields inherited from interface org.deepjava.runtime.arm32.Iarm32
ACTLR, CPACR, CPSR, D0, D1, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D2, D20, D21, D22, D23, D24, D25, D26, D27, D28, D29, D3, D30, D31, D4, D5, D6, D7, D8, D9, FPSCR, ID_ISAR0, ID_ISAR1, ID_ISAR2, ID_ISAR3, LR, LR_ABT, LR_FIQ, LR_IRQ, LR_MON, LR_SVC, LR_UND, LR_USR, MIDR, MPIDR, MPUIR, PC, R0, R1, R10, R10_FIQ, R11, R11_FIQ, R12, R12_FIQ, R2, R3, R4, R5, R6, R7, R8, R8_FIQ, R9, R9_FIQ, S0, S1, S10, S11, S12, S13, S14, S15, S16, S17, S18, S19, S2, S20, S21, S22, S23, S24, S25, S26, S27, S28, S29, S3, S30, S31, S4, S5, S6, S7, S8, S9, SCTLR, SP, SP_ABT, SP_FIQ, SP_IRQ, SP_MON, SP_SVC, SP_UND, SP_USR, SPSR_ABT, SPSR_FIQ, SPSR_IRQ, SPSR_MON, SPSR_SVC, SPSR_UND
-
Fields inherited from interface org.deepjava.runtime.iMX6.Icolibri_iMX6
excpCodeBase, excpCodeSize, extRamBase, extRamSize, heapSize, sysTabBaseAddr
-
Fields inherited from interface org.deepjava.runtime.IdeepCompilerConstants
cblkClinitAddrOffset, cblkCodeBaseOffset, cblkCodeSizeOffset, cblkConstBlockSizeOffset, cblkNofPtrsOffset, cblkPtrAddr0Offset, cblkVarBaseOffset, cblkVarSizeOffset, stClassConstOffset, stHeapOffset, stKernelClinitAddr, stNofStacks, stResetOffset, stSizeToCopy, stStackOffset
-
Fields inherited from interface org.deepjava.runtime.iMX6.IiMX6
GPIO2_DR, GPIO2_GDIR, GPIO2_PSR, GTCR, GTCR_L, GTCR_U, IMB, IOMUXC_NAND_DATA02, SRAMA_BaseAddr, SRAMA_Size, SRAMB_BaseAddr, SRAMB_Size, SRR1init, stackSize, UART1_UCR1, UART1_UCR2, UART1_UCR3, UART1_UCR4, UART1_UFCR, UART1_URXD, UART1_USR1, UART1_USR2, UART1_UTXD
-
-
Constructor Summary
Constructors Constructor Description Kernel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
blink(int nTimes)
Blinks LED on MPIOSM pin 15, nTimes with approx.static void
checkStack()
Blinks LED on MPIOSM pin 15 if stack end was overwrittenstatic void
enableInterrupts()
Enables interrupts globally.static long
timeNs()
Reads the system time.static long
timeUs()
Reads the system time.
-
-
-
Field Detail
-
stackEndPattern
static final int stackEndPattern
- See Also:
- Constant Field Values
-
clockFrequency
public static final int clockFrequency
Clock frequency of the processor.- See Also:
- Constant Field Values
-
loopAddr
static int loopAddr
-
cmdAddr
static int cmdAddr
-
-
Method Detail
-
timeUs
public static long timeUs()
Reads the system time.- Returns:
- System time in µs
-
timeNs
public static long timeNs()
Reads the system time.- Returns:
- System time in ns
-
blink
public static void blink(int nTimes)
Blinks LED on MPIOSM pin 15, nTimes with approx. 100us high time and 100us low time, blocks for 1s- Parameters:
nTimes
- Number of times the led blinks.
-
enableInterrupts
public static void enableInterrupts()
Enables interrupts globally. Individual interrupts for peripheral components must be enabled locally.
-
checkStack
public static void checkStack()
Blinks LED on MPIOSM pin 15 if stack end was overwritten
-
-