Class Kernel

    • Field Detail

      • loopAddr

        static int loopAddr
      • cmdAddr

        static int cmdAddr
    • Constructor Detail

      • Kernel

        public Kernel()
    • 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 GPIO_WKUP_7, nTimes with approx. 100µs high time and 100µs 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 GPIO_WKUP_7 if stack end was overwritten