gonzui


Format: Advanced Search

mtkernel_3/kernel/sysdepend/cpu/stm32l4/sysdepend.hbare sourcepermlink (0.01 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.03
    4:  *
    5:  *    Copyright (C) 2006-2021 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2021/03/31.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: /*
   15:  *      sysdepend.h (STM32L4)
   16:  *      System-Dependent local defined
   17:  */
   18: 
   19: #ifndef _SYSDEPEND_CPU_SYSDEPEND_
   20: #define _SYSDEPEND_CPU_SYSDEPEND_
   21: 
   22: #include "../core/armv7m/sysdepend.h"
   23: 
   24: /*
   25:  *    Clock Setting (cpu_clock.c)
   26:  */
   27: IMPORT void startup_clock(ATR clkatr);
   28: /* ATR clkatr: Clock attribute */
   29: #define CLKATR_MSI              0x00000000
   30: #define CLKATR_HSI              0x00000001
   31: #define CLKATR_HSE              0x00000002
   32: 
   33: #define CLKATR_USE_PLL          0x00000010
   34: 
   35: #define CLKATR_LATENCY_0        0x00000000
   36: #define CLKATR_LATENCY_1        0x00000100
   37: #define CLKATR_LATENCY_2        0x00000200
   38: #define CLKATR_LATENCY_3        0x00000300
   39: #define CLKATR_LATENCY_4        0x00000400
   40: #define CLKATR_LATENCY_MASK     0x00000F00
   41: 
   42: IMPORT void shutdown_clock(void);
   43: 
   44: #endif /* _SYSDEPEND_CPU_SYSDEPEND_ */