Macros | Functions
same70/osc.h File Reference

Chip-specific oscillator management functions. More...

#include "board.h"
#include "pmc.h"
Include dependency graph for same70/osc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOARD_FREQ_MAINCK_BYPASS   (12000000UL)
 
#define BOARD_FREQ_MAINCK_XTAL   (12000000UL)
 
#define BOARD_FREQ_SLCK_BYPASS   (32768UL)
 
#define BOARD_FREQ_SLCK_XTAL   (32768UL)
 
#define BOARD_OSC_STARTUP_US   (15625UL)
 
Oscillator identifiers
#define OSC_SLCK_32K_RC   0
 Internal 32kHz RC oscillator. More...
 
#define OSC_SLCK_32K_XTAL   1
 External 32kHz crystal oscillator. More...
 
#define OSC_SLCK_32K_BYPASS   2
 External 32kHz bypass oscillator. More...
 
#define OSC_MAINCK_4M_RC   3
 Internal 4MHz RC oscillator. More...
 
#define OSC_MAINCK_8M_RC   4
 Internal 8MHz RC oscillator. More...
 
#define OSC_MAINCK_12M_RC   5
 Internal 12MHz RC oscillator. More...
 
#define OSC_MAINCK_XTAL   6
 External crystal oscillator. More...
 
#define OSC_MAINCK_BYPASS   7
 External bypass oscillator. More...
 
Oscillator clock speed in hertz
#define OSC_SLCK_32K_RC_HZ   CHIP_FREQ_SLCK_RC
 Internal 32kHz RC oscillator. More...
 
#define OSC_SLCK_32K_XTAL_HZ   BOARD_FREQ_SLCK_XTAL
 External 32kHz crystal oscillator. More...
 
#define OSC_SLCK_32K_BYPASS_HZ   BOARD_FREQ_SLCK_BYPASS
 External 32kHz bypass oscillator. More...
 
#define OSC_MAINCK_4M_RC_HZ   CHIP_FREQ_MAINCK_RC_4MHZ
 Internal 4MHz RC oscillator. More...
 
#define OSC_MAINCK_8M_RC_HZ   CHIP_FREQ_MAINCK_RC_8MHZ
 Internal 8MHz RC oscillator. More...
 
#define OSC_MAINCK_12M_RC_HZ   CHIP_FREQ_MAINCK_RC_12MHZ
 Internal 12MHz RC oscillator. More...
 
#define OSC_MAINCK_XTAL_HZ   BOARD_FREQ_MAINCK_XTAL
 External crystal oscillator. More...
 
#define OSC_MAINCK_BYPASS_HZ   BOARD_FREQ_MAINCK_BYPASS
 External bypass oscillator. More...
 

Functions

static void osc_disable (uint32_t ul_id)
 
static void osc_enable (uint32_t ul_id)
 
static uint32_t osc_get_rate (uint32_t ul_id)
 
static bool osc_is_ready (uint32_t ul_id)
 

Detailed Description

Chip-specific oscillator management functions.

Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries.

Definition in file same70/osc.h.

Macro Definition Documentation

◆ BOARD_FREQ_MAINCK_BYPASS

#define BOARD_FREQ_MAINCK_BYPASS   (12000000UL)

Definition at line 72 of file same70/osc.h.

◆ BOARD_FREQ_MAINCK_XTAL

#define BOARD_FREQ_MAINCK_XTAL   (12000000UL)

Definition at line 67 of file same70/osc.h.

◆ BOARD_FREQ_SLCK_BYPASS

#define BOARD_FREQ_SLCK_BYPASS   (32768UL)

Definition at line 62 of file same70/osc.h.

◆ BOARD_FREQ_SLCK_XTAL

#define BOARD_FREQ_SLCK_XTAL   (32768UL)

Definition at line 57 of file same70/osc.h.

◆ BOARD_OSC_STARTUP_US

#define BOARD_OSC_STARTUP_US   (15625UL)

Definition at line 77 of file same70/osc.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:06