Salvia divinorum (10x extract), Lithium, Quetiapine (Seroquel) & Lamotrigine (Lamictal)
First and foremost I am diagnosed with bipolar I disorder w/ psychotic features. I have been hospitalized once and have had extended psychotic episodes involving mostly visual hallucinations and delusions (though not particularly strong). The first time I smoked pot was actually after I had been diagnosed bipolar, at age 19.
I am currently 22 and have tried these 'recreational' drugs.
- once, MDMA (ecstasy)
- many, marijuana (with EXTREMELY varying effects)
- once, salvia
- twice, Dextromethorphan (low dose, enough for a subtle spacy echo)
- once, opium, smoked.
- once, Nutmeg (almost pointless)
- many, alcohol
- once, Inhaled Nitrous Oxide
- prescribed, Provigil (sort of recreational)
The only two of these that might have contributed to a worsening of my condition are alcohol and marijuana, likely because of greater use (surprise, surprise).
---------------------------The Salvia Experience---------------------------
I will leave the decision on why I chose to experience this out of the report, and focus on the experience itself.
Today I purchased a 10x extract from a smoke shop on Telegraph, here in Berkeley. I sat in my room in mid-afternoon and packed a bowl in my bubbler. I'm not a big pot smoker, but I do end up smoking here and there each month.
My current (I've been on a lot) psychiatric drug regiment consists of 900mg Lithium, 150 mg Seroquel (low dose), and 150mg lamictal. There was some intermittent construction noise in the background and I played Music for Airports (Brian Eno). This is a very great minimalist ambient album.
I alone on my bed with a lighter (just a normal one) in hand and devoured the extract. I held it in for as long as I could (about 15-20 seconds) and let it go. My friend later told me I didn't hold it in long enough, but it's all I could do. I felt kind of light at first, but decided another would be good... and then another.
Suddenly a strike in the music gave me a very different emotional perspective on my room. It was sort of akin to a very beautiful emotional moment.
I kept expecting the unknown but was instead hit by a wave of familiarity. The experience was just like one of the strongest marijuana highs I've ever had, the first time. Not the overall thoughts, but the detachment. The feeling that my room and I had been cast out into space, released from temporal and spatial reference points. I knew I was tripping, but I kept on smoking. I wanted to go higher.
I began to talk to myself out loud. It seemed various objects in the room drew my attention, and that the answers to my various questions emanated from them (not auditory). I remember at first asking why I was all alone. At first I thought I was referring to nobody else being in the room, but received a response from my other self that built upon the question. I began to realize that I am surrounded by good people and was not at all alone.. but was spending a lot of time alone with no 'apparent' productivity toward school.
(This experience was not foreign to me either. In one of my 'psychotic episodes' I ran around talking to various trees that I acquired wisdom from). The salvia experience was almost the same...though much much shorter.
I remember shouting (at least I felt like I was shouting) what must of been a somewhat incoherent argument about why people talk to themselves.
I began to hear people outside whispering and talking about me. At one point it felt like people had all gathered around my door and were mocking me for all that I had said out loud.... This too I was completely familiar with as these are actually called 'delusions of reference' in psychotic episodes. However, that didn't stop me from walking to the door and checking... nobody there.
Things started to take a bad turn when the trip started to take shades of my worst pot experience (some super powerful cookies during a very emotionally unstable time).
I guess it goes like this (though I haven't completely figured it out): I begin to realize how a true delusion forms and how intrinsic it feels to the person... I then start to believe I've broken from reality and have gone permanently *snapped* and can't come back. However, I seemed to possess a strange sense of calm while on salvia and told myself that *snapping* is not a big deal.
Many people believe things that are not true, and they are deemed perfectly sane. I tell myself I used to talk to trees and have felt rays come from light sockets, whispers from vents. I've been in a mental hospital. I have large quantities of the antipsychotic Risperdal sitting on my shelf that I can take.
... It's not that big of a deal. I then sit down and stare at the window. The window starts to take on a slight movement toward the type of visual hallucinations I've seen in the past, but somehow I stop it by resisting the temptation to indulge myself in that direction. I asked myself if this ability to decide might simply be due to the Seroquel, a strange manifestation of the medication psychologically... I sort of doubt it, but it's an interesting thought. I began to think about how recreational drugs bring on changes very suddenly whereas the medications I take act slowly over time, but the changes they both make are no more or less drastic...
... I start to get anxious and remembered that I hadn't set the timer on my watch (I wanted to keep good track in case of a bad trip). I set it. I stare at it... I remember staring at it for about 15 minutes, telling myself I was done here..
The trip ended and I was left with a sense of peace, contentment, happiness and a good amount of energy.
It was like some of my most powerful and often more negative trips combined into one whole powerful and positive entity.
I also smoked the whole gram during the trip....
... I was under the impression that I would be completely knocked back and be unable to keep hitting.. so I kept hitting until it was gone (did spill a little bit though).
I wonder about the meds decreasing the effectiveness, especially the Seroquel (though it is a low dose). 10x is relatively low. I used a regular lighter and didn't hold the smoke in as long as others are able.
I also had my eyes open the whole time, and heard it's good to just close your eyes, relax, and imagine.. I'll definitely keep that in mind next time.
Overall this wound up being an expensive trip! I'd like to try again. But next time with more preparation to get more bang for my buck.
It very much surprised me that for the most part I have already experienced most of what happened in this trip before. The overall feel was unique, but that was mostly because of the unique situation... The trip was very much a positive one, though it did have a few moments of anxiety.
However, I will say that this is probably the best recreational drug I've taken. If I try again I'll try for a more meditative stance as this drug was definitely forcing a good amount of introspection on my part.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


Your details
What should we call you?
First name
Last name
Email address
Date of birth
Postcode
Your weight
in stones
in kg
in lb
stones
lb


Current Version: v0.3.0dev
License: MIT (see included LICENSE file)
Author: Kevin P. Albrecht - http://www.kevinalbrecht.com
Web Site: http://www.github.com/onlyafly/distillery
Distillery is a Node.js program which extracts multiline comments that start with /*** (a forward slash and three asterisks) of Markdown-formatted text from a JavaScript file, then generates an HTML file from the results.
From the root folder, run this:
> node distillery.js
From the root/examples folder, run this to regenerate output.html:
> . example.sh
From the root folder, run this:
> nodeunit tests


--- title: "Days 1-3: Dual boot Windows 10 and Ubuntu 18, the hard way" created: !!timestamp '2019-01-10 12:00:00' --- {% mark excerpt -%} Before I can start playing around with some more interesting things, I need a computer to play around on them with. My desktop has Windows 10 as a base with Ubuntu running inside [VirtualBox](https://www.virtualbox.org/wiki/VirtualBox), but I want to dual boot Ubuntu instead. I've dual booted before, so I thought I knew what I was doing, but it turns out that I was just lucky all those other times because this time it got a lot more interesting, and I ended up learning lots about UEFI and BIOS and why the differences are important. {%- endmark %} The internet is full of "how to dual boot" guides. If you read carefully, you'll see that the better ones are really, really specific about who the guide is for. Here is an example of a specific title: > [How to dual boot Ubuntu 16.04 and Windows 10 on a PC with UEFI firmware](http://linuxbsdos.com/2016/06/05/dual-boot-ubuntu-16-04-and-windows-10-on-a-pc-with-uefi-firmware/) The trouble is that a) not all guides are so specific about who they're for b) even if they are specific, you may not notice c) even if you notice, it's much more fun to believe that the specifics don't matter and to just go for it anyway and d) even if you are prepared to admit that the specifics matter, you may not know how to find them out. And that may be fine, or it may lead to scouring forums for stuff like "Ubuntu installer can't find my Windows installation", or worse. So here is my guide to choosing a guide:
_______ | | | Start | |_______| | ----------------------->-------------------------| | | _______________|_______________ _________________V_________________ _______________________________ | | NO IDEA / / NO | |<------- | No worries; you can find out! |<------------/ Does your PC have UEFI firmware? /------->| You should be fine! | | |_______________________________| /__________________________________/ | Go to dual boot in BIOS mode. | | | |_______________________________| | ----------------------->-------------------------| | | | YES | _______________|_______________ _________________V___________________ _______________________________ | | | NO IDEA / / YES | | | | No worries; you can find out! |<------------/ Is Windows installed in UEFI mode? /------->| You should be fine! |<----+----- |_______________________________| /____________________________________/ | Go to dual boot in UEFI mode. | | | | |_______________________________| | | | NO | | ____________V___________ | | | | ^ | -----------<----| Choose your adventure! |---->--------------------- | ^ | |________________________| | | | ___________V____________ ____________________V___________________ | | | | | | | | | Convert Windows to GPT | | Boot the Ubuntu installer in BIOS mode |-->---- | |________________________| |________________________________________| | | | ---------------------------------------------------------------------------------------------------(I followed both "no idea"s, learned a lot of stuff, and ended up [converting Windows to GPT](https://www.intel.co.uk/content/www/uk/en/support/articles/000024558/memory-and-storage/intel-optane-memory.html).)


main =
let result = 2 `div` 0
in print result
main =
let result = 2 `div` 0
in putStr "Bye!"
main =
let cx = 2 / 6.054
nk = 4 * 12.003
coeffs = [cx, nk]
in putStr "Nothing..."
main =
let cx = 2 / 6.054
nk = 4 * 12.003
coeffs = [cx, nk]
in print $ length coeffs
main =
let cx = 2 / 6.054
nk = 4 * 12.003
coeffs = [cx, nk]
in print $ coeffs !! 1
main =
let cx = 2 / 6.054
nk = 4 * 12.003
coeffs = [cx, nk]
in print coeffs
main =
let evens = [2, 4 .. 100]
in print $ take 10 evens
main =
let evens = [2, 4 ..]
in print $ take 10 evens
(?) :: Bool -> (a, a) -> a
True ? (f, _) = f
False ? (_, s) = s
main = do
putStr "Input URL prefix: "
prefix <- getLine
(prefix == "https") ?
(putStr "Secure web!",
exitFailure)
main =
let result = 2 `div` 0
in putStr "Bye!"
bad :: Num b => [a] -> b -> b
bad [] c = c
bad (_:xs) c = bad xs $ c + 1
bad [1,2,3] 0
bad 1:[2,3] 0 + 1
bad 1:2:[3] (0 + 1) + 1
bad 1:2:3:[] ((0 + 1) + 1) + 1
((0 + 1) + 1) + 1 = 3
main =
print $ bad [1..50000000] 0
| -O0 | -O2 | |
|---|---|---|
| 63 c | 3.2 с | |
| 6.4 ГБ | 104 кБ | |
ok :: Num b => [a] -> b -> b
ok [] c = c
ok (_:xs) c = ok xs $! c + 1
| Лениво | Строго | |
|---|---|---|
| 63 c | 5.8 с | |
| 6.4 ГБ | 182 кБ | |


---
layout: post
title: Quo Vadis Talk, New Demo Place
date: '2013-04-25T18:05:00.001+01:00'
author: Andre Weissflog
tags:
modified_time: '2013-04-25T18:05:23.212+01:00'
blogger_id: tag:blogger.com,1999:blog-2948438400037317662.post-8588677834139521869
blogger_orig_url: http://flohofwoe.blogspot.com/2013/04/quo-vadis-talk-new-demo-place.html
---
Quick update:
Just came back from Quo Vadis 2013 in Berlin where I talked about "C++ on the Web" in front of a crowded room (thanks to all who've been there :), the slides are here:
http://de.slideshare.net/andreweissflog3/quovadis2013-cpp-ontheweb
And I have moved the Nebula3/emscripten demos to my own web site here:
http://www.flohofwoe.net/demos.html
The demos at the old appspot.com URL haven't been updated in a while. When I get around it I'll redirect to the new demo page from there.
Over and out :)
-Floh.


| Top |
NcmFitESMCMCWalkerAPESNcmFitESMCMCWalkerAPES — Ensemble sampler Markov Chain Monte Carlo walker - apes move. |
Functions
Properties
| NcmFitESMCMCWalkerAPESKType | kernel-type | Read / Write / Construct |
| NcmFitESMCMCWalkerAPESMethod | method | Read / Write / Construct |
| double | over-smooth | Read / Write / Construct |
| gboolean | use-interp | Read / Write / Construct |
| gboolean | use-threads | Read / Write / Construct |
Object Hierarchy
GEnum ├── NcmFitESMCMCWalkerAPESKType ╰── NcmFitESMCMCWalkerAPESMethod GObject ╰── NcmFitESMCMCWalker ╰── NcmFitESMCMCWalkerAPES
Description
Implementing apes move walker for NcmFitESMCMC (affine invariant).
This object implements the Approximate Posterior Ensemble Sample (APES) step proposal for a walker. This proposal was developed by Sandro Dias Pinto Vitenti and implemented in this library. Below there is a description of the proposal.
The APES proposal consists of using radial basis interpolation to generate an interpolant $\tilde{\pi}$ from a target distribution $\pi$ and use this interpolant to propose new points for the walker. By using a distribution $\tilde{\pi}$ that resembles the original target distribution, the APES proposal generates samples that converge faster to the target distribution and are more independent when compared to other step proposals.
The APES step is implemented as follows: suppose that there are $L$ walkers. They are divided into two blocks $L_1$ and $L_2$, containing the first and the second half of the walkers respectively. When proposing new points $Y$ for the walkers in the $L_1$ block, we use the points in the $L_2$ block to generate an interpolant $\tilde{\pi}_{L_2}$ and then propose points $Y \sim \tilde{\pi}_{L_2}$ for the $L_1$ block. These points are accepted or rejected based on an acceptance probability $A(Y|X)$, and after the points of the first block are updated, we do the same procedure for the $L_2$ block using the $L_1$ block. This procedure can be seen in the pseudocode below.
The user must provide the input the values: nwalkers
, nparams
, method
, k
_type
, over
_smooth
$ and use
_interp
- ncm_fit_esmcmc_walker_apes_new_full()
.
The user can also initialize the object with: nwalkers
, nparams
- ncm_fit_esmcmc_walker_apes_new()
and let the remaining parameters as default,
which are defined in the properties of the class.
For more information about the algorithm, check the explanation below.
- This object shall be used in the NcmFitESMCMC class to generate a Monte Carlo Markov Chain using an ensemble sampler. To see an example of its implementation, check the file example_rosenbrock.py in NumCosmo/examples.
- Regarding the radial basis interpolation method is implemented, check the NcmStatsDist class.
- Regarding the types of kernel used in the interpolation method as the radial basis function, check the NcmStatsDistKernel class.
Functions
ncm_fit_esmcmc_walker_apes_new ()
NcmFitESMCMCWalkerAPES * ncm_fit_esmcmc_walker_apes_new (guint nwalkers
,guint nparams
);
Creates a new NcmFitESMCMCWalkerAPES to be used
with nwalkers
.
ncm_fit_esmcmc_walker_apes_new_full ()
NcmFitESMCMCWalkerAPES * ncm_fit_esmcmc_walker_apes_new_full (guint nwalkers
,guint nparams
,NcmFitESMCMCWalkerAPESMethod method
,NcmFitESMCMCWalkerAPESKType k_type
,gdouble over_smooth
,gboolean use_interp
);
Creates a new NcmFitESMCMCWalkerAPES to be used with nwalkers
,
interpolation method method
, kernel kernel
and over-smooth parameter
over_smooth
. If use_interp
is TRUE computes the approximation
interpolating the computed likelihood values, otherwise, use standard
kernel density estimation.
ncm_fit_esmcmc_walker_apes_ref ()
NcmFitESMCMCWalkerAPES *
ncm_fit_esmcmc_walker_apes_ref (NcmFitESMCMCWalkerAPES *apes
);
Increases the reference count of apes
atomically.
ncm_fit_esmcmc_walker_apes_free ()
void
ncm_fit_esmcmc_walker_apes_free (NcmFitESMCMCWalkerAPES *apes
);
Decreases the reference count of apes
atomically.
ncm_fit_esmcmc_walker_apes_clear ()
void
ncm_fit_esmcmc_walker_apes_clear (NcmFitESMCMCWalkerAPES **apes
);
Decreases the reference count of *apes
atomically and sets the pointer *apes
to null.
ncm_fit_esmcmc_walker_apes_set_method ()
void ncm_fit_esmcmc_walker_apes_set_method (NcmFitESMCMCWalkerAPES *apes
,NcmFitESMCMCWalkerAPESMethod method
);
Sets the estimation method to be used when building the posterior approximations.
ncm_fit_esmcmc_walker_apes_set_k_type ()
void ncm_fit_esmcmc_walker_apes_set_k_type (NcmFitESMCMCWalkerAPES *apes
,NcmFitESMCMCWalkerAPESKType k_type
);
Sets the kernel to be used when building the posterior approximations.
ncm_fit_esmcmc_walker_apes_set_over_smooth ()
void ncm_fit_esmcmc_walker_apes_set_over_smooth (NcmFitESMCMCWalkerAPES *apes
,const gdouble os
);
Sets the over smooth parameter to adjust the interpolation bandwidth.
ncm_fit_esmcmc_walker_apes_get_method ()
NcmFitESMCMCWalkerAPESMethod
ncm_fit_esmcmc_walker_apes_get_method (NcmFitESMCMCWalkerAPES *apes
);
Gets the currently used estimation method.
ncm_fit_esmcmc_walker_apes_get_k_type ()
NcmFitESMCMCWalkerAPESKType
ncm_fit_esmcmc_walker_apes_get_k_type (NcmFitESMCMCWalkerAPES *apes
);
Gets the currently used kernel.
ncm_fit_esmcmc_walker_apes_get_over_smooth ()
gdouble
ncm_fit_esmcmc_walker_apes_get_over_smooth
(NcmFitESMCMCWalkerAPES *apes
);
Gets the currently used over-smooth parameter.
ncm_fit_esmcmc_walker_apes_use_interp ()
void ncm_fit_esmcmc_walker_apes_use_interp (NcmFitESMCMCWalkerAPES *apes
,gboolean use_interp
);
Sets whether to use interpolation of the posterior approximation (use_interp
== TRUE)
or kernel density estimate (use_interp
== FALSE).
ncm_fit_esmcmc_walker_apes_interp ()
gboolean
ncm_fit_esmcmc_walker_apes_interp (NcmFitESMCMCWalkerAPES *apes
);
ncm_fit_esmcmc_walker_apes_set_use_threads ()
void ncm_fit_esmcmc_walker_apes_set_use_threads (NcmFitESMCMCWalkerAPES *apes
,gboolean use_threads
);
Sets whether to use threads for building the posterior approximation.
ncm_fit_esmcmc_walker_apes_get_use_threads ()
gboolean
ncm_fit_esmcmc_walker_apes_get_use_threads
(NcmFitESMCMCWalkerAPES *apes
);
ncm_fit_esmcmc_walker_apes_peek_sds ()
void ncm_fit_esmcmc_walker_apes_peek_sds (NcmFitESMCMCWalkerAPES *apes
,NcmStatsDist **sd0
,NcmStatsDist **sd1
);
Peeks the currently used NcmStatsDist objects.
ncm_fit_esmcmc_walker_apes_set_local_frac ()
void ncm_fit_esmcmc_walker_apes_set_local_frac (NcmFitESMCMCWalkerAPES *apes
,gdouble local_frac
);
Sets the local fraction to use in VKDE.
ncm_fit_esmcmc_walker_apes_set_cov_fixed_from_mset ()
void ncm_fit_esmcmc_walker_apes_set_cov_fixed_from_mset (NcmFitESMCMCWalkerAPES *apes
,NcmMSet *mset
);
Sets the fixed covariance to the KDE interpolation using
the scales set into mset
.
ncm_fit_esmcmc_walker_apes_set_cov_robust_diag ()
void
ncm_fit_esmcmc_walker_apes_set_cov_robust_diag
(NcmFitESMCMCWalkerAPES *apes
);
Sets the fixed covariance to the KDE interpolation using robust estimates of scale.
ncm_fit_esmcmc_walker_apes_set_cov_robust ()
void
ncm_fit_esmcmc_walker_apes_set_cov_robust
(NcmFitESMCMCWalkerAPES *apes
);
Sets the fixed covariance to the KDE interpolation using robust estimates of scale.
Property Details
The “kernel-type”
property
“kernel-type” NcmFitESMCMCWalkerAPESKType
Kernel used in posterior approximation.
Owner: NcmFitESMCMCWalkerAPES
Flags: Read / Write / Construct
Default value: NCM_FIT_ESMCMC_WALKER_APES_KTYPE_CAUCHY
The “method”
property
“method” NcmFitESMCMCWalkerAPESMethod
Method used in posterior approximation.
Owner: NcmFitESMCMCWalkerAPES
Flags: Read / Write / Construct
Default value: NCM_FIT_ESMCMC_WALKER_APES_METHOD_VKDE
The “over-smooth”
property
“over-smooth” double
Over-smooth parameter used to adjust kernel bandwidth.
Owner: NcmFitESMCMCWalkerAPES
Flags: Read / Write / Construct
Allowed values: [1e-10,1e+10]
Default value: 1
The “use-interp”
property
“use-interp” gboolean
Whether to use interpolation to build the posterior approximation.
Owner: NcmFitESMCMCWalkerAPES
Flags: Read / Write / Construct
Default value: TRUE
The “use-threads”
property
“use-threads” gboolean
Whether to use threads when building the posterior approximation.
Owner: NcmFitESMCMCWalkerAPES
Flags: Read / Write / Construct
Default value: FALSE


| Name | Date | Rate | Sales | |
|---|---|---|---|---|
| Penelope Thornton | 23/06/2016 | 60% | 639 | |
| Justine Myranda | 15/05/2016 | 23% | 235 | |
| Benji Harper | 10/03/2016 | 79% | 728 | |
| Sherwood Clifford | 18/01/2016 | 18% | 135 |
| Name | Date | Rate | Sales | |
|---|---|---|---|---|
| Penelope Thornton | 23/06/2016 | 60% | 639 | |
| Justine Myranda | 15/05/2016 | 23% | 235 | |
| Benji Harper | 10/03/2016 | 79% | 728 | |
| Sherwood Clifford | 18/01/2016 | 18% | 135 |
| User | Commit | Date | |
|---|---|---|---|
| Penelope Thornton | Initial commit | Aug 6, 2015 |
|
| Benji Harper | Main structure markup | Jul 28, 2015 |
|
| Justine Myranda | Left sidebar adjusments | Jul 15, 2015 |
|
| Sherwood Clifford | Topbar dropdown style | Jun 30, 2015 |
|
| Operating System | Users | Rebound |
|---|---|---|
| Windows | 1.580 | 20% |
| Mac OS | 1.322 | 55% |
| Linux | 850 | 45% |
| Android | 560 | 70% |
| iOS | 450 | 39% |
| Other | 317 | 67% |
| Class | Commit | Date |
|---|---|---|
| Penelope Thornton | Init | May 6, 2016 |
| Benji Harper | Main structure markup | April 22, 2016 |
| Justine Myranda | Left sidebar adjusments | April 15, 2016 |
| Sherwood Clifford | Topbar dropdown style | April 8, 2016 |
| Kristopher Donny | Left sidebar adjusments | April 15, 2016 |
|
|
User | Last Commit | Milestone | Branch | Date | |
|---|---|---|---|---|---|---|
|
|
Benji HarperDesigner | Main structure markupCLI Connector |
22 / 30
|
develop4cc1bc2 | April 22, 201614:45 |
|
|
|
Alex ChanDeveloper | Initial commitBootstrap Admin |
8 / 15
|
develop63e8ec3 | April 22, 201614:45 |
|
|
|
Justine CliffordDesigner | Material styleBack-end Manager |
1/ 12
|
master8cb98ec | April 22, 201613:02 |
|


| Number of Classes | Line Coverage | Mutation Coverage |
|---|---|---|
| 5 | 96% | 75% |
| Name | Line Coverage | Mutation Coverage |
|---|---|---|
| Interval.java | 82% |
65% |
| IntervalNode.java | 100% |
79% |
| IntervalTree.java | 100% |
80% |
| IntervalableComparatorByPosition.java | 100% |
100% |
| IntervalableComparatorBySize.java | 100% |
100% |


#include <stdint.h>
Go to the source code of this file.
Macros | |
| #define | FAST_RC_4MHZ CKGR_MOR_MOSCRCF_4MHz |
| #define | FAST_RC_8MHZ CKGR_MOR_MOSCRCF_8MHz |
| #define | FAST_RC_12MHZ CKGR_MOR_MOSCRCF_12MHz |
| #define | DEFAUTL_FAST_RC_COUNT 1 |
| #define | DEFAUTL_MAIN_OSC_COUNT 8 |
| #define | DEFAUTL_PLLA_COUNT 1 |
| #define | DEFAUTL_UPLL_COUNT 3 |
| #define | DEFAUTL_COUNT_NO_CHANGE 0xFFFF |
Functions | |
| void | PMC_EnablePeripheral (uint32_t dwId) |
| Enables the clock of a peripheral. More... | |
| void | PMC_DisablePeripheral (uint32_t dwId) |
| Disables the clock of a peripheral. More... | |
| void | PMC_EnableAllPeripherals (void) |
| Enable all the periph clock via PMC. More... | |
| void | PMC_DisableAllPeripherals (void) |
| Disable all the periph clock via PMC. More... | |
| uint32_t | PMC_IsPeriphEnabled (uint32_t dwId) |
| Get Periph Status for the given peripheral ID. More... | |
| void | PMC_SelectExtOsc (void) |
| Select external OSC. More... | |
| void | PMC_EnableExtOsc (void) |
| Enable external oscillator as main clock input. More... | |
| void | PMC_DisableExtOsc (void) |
| Disable external 12MHz oscillator. More... | |
| void | PMC_SelectExtBypassOsc (void) |
| Select external OSC. More... | |
| void | PMC_EnableIntRC4_8_12MHz (uint32_t fastRcFreq) |
| Enable internal 4/8/12MHz fast RC as main clock input. More... | |
| void | PMC_DisableIntRC4_8_12MHz (void) |
| Disable internal 4/8/12MHz fast RC. More... | |
| void | PMC_SetPllaClock (uint32_t mul, uint32_t div) |
| Configure PLLA clock by giving MUL and DIV. More... | |
| void | PMC_SetPllbClock (uint32_t mul, uint32_t div) |
| void | PMC_SetMckSelection (uint32_t clockSource, uint32_t prescaler) |
| Selection of Master Clock. More... | |
| void | PMC_DisableAllClocks (void) |
| Disable all clocks. More... | |
| void | PMC_ConfigureMckWithPlla (uint32_t mul, uint32_t div, uint32_t prescaler) |
| Configure PLLA as clock input for MCK. More... | |
| void | PMC_ConfigureMckWithPllb (uint32_t mul, uint32_t div, uint32_t prescaler) |
| void | PMC_EnableXT32KFME (void) |
| Configure PLLA as clock input for MCK. More... | |
| void | PMC_ConfigurePCK0 (uint32_t MasterClk, uint32_t prescaler) |
| Configure PLLA as clock input for MCK. More... | |
| void | PMC_ConfigurePCK1 (uint32_t MasterClk, uint32_t prescaler) |
| Configure PLLA as clock input for MCK. More... | |
| void | PMC_ConfigurePCK2 (uint32_t MasterClk, uint32_t prescaler) |
| Configure PLLA as clock input for MCK. More... | |
| #define DEFAUTL_COUNT_NO_CHANGE 0xFFFF |
| #define DEFAUTL_FAST_RC_COUNT 1 |
| #define DEFAUTL_MAIN_OSC_COUNT 8 |
| #define DEFAUTL_PLLA_COUNT 1 |
| #define DEFAUTL_UPLL_COUNT 3 |
| #define FAST_RC_12MHZ CKGR_MOR_MOSCRCF_12MHz |
| #define FAST_RC_4MHZ CKGR_MOR_MOSCRCF_4MHz |
| #define FAST_RC_8MHZ CKGR_MOR_MOSCRCF_8MHz |
| void PMC_ConfigureMckWithPlla | ( | uint32_t | mul, |
| uint32_t | div, | ||
| uint32_t | prescaler | ||
| ) |
Configure PLLA as clock input for MCK.
| mul | PLL multiplier factor (not shifted, don't minus 1). |
| div | PLL divider factor (not shifted). |
| prescaler | Master Clock prescaler (shifted as in register). |
| void PMC_ConfigureMckWithPllb | ( | uint32_t | mul, |
| uint32_t | div, | ||
| uint32_t | prescaler | ||
| ) |
| void PMC_ConfigurePCK0 | ( | uint32_t | MasterClk, |
| uint32_t | prescaler | ||
| ) |
Configure PLLA as clock input for MCK.
| mul | PLL multiplier factor (not shifted, don't minus 1). |
| div | PLL divider factor (not shifted). |
| prescaler | Master Clock prescaler (shifted as in register). |
| void PMC_ConfigurePCK1 | ( | uint32_t | MasterClk, |
| uint32_t | prescaler | ||
| ) |
Configure PLLA as clock input for MCK.
| mul | PLL multiplier factor (not shifted, don't minus 1). |
| div | PLL divider factor (not shifted). |
| prescaler | Master Clock prescaler (shifted as in register). |
| void PMC_ConfigurePCK2 | ( | uint32_t | MasterClk, |
| uint32_t | prescaler | ||
| ) |
Configure PLLA as clock input for MCK.
| mul | PLL multiplier factor (not shifted, don't minus 1). |
| div | PLL divider factor (not shifted). |
| prescaler | Master Clock prescaler (shifted as in register). |
| void PMC_DisableAllClocks | ( | void | ) |
Disable all clocks.
| void PMC_DisableAllPeripherals | ( | void | ) |
Disable all the periph clock via PMC.
| void PMC_DisableExtOsc | ( | void | ) |
Disable external 12MHz oscillator.
| void PMC_DisableIntRC4_8_12MHz | ( | void | ) |
Disable internal 4/8/12MHz fast RC.
| void PMC_DisablePeripheral | ( | uint32_t | dwId | ) |
Disables the clock of a peripheral.
The peripheral ID is used to identify which peripheral is targeted.
| id | Peripheral ID (ID_xxx). |
| void PMC_EnableAllPeripherals | ( | void | ) |
Enable all the periph clock via PMC.
| void PMC_EnableExtOsc | ( | void | ) |
Enable external oscillator as main clock input.
| void PMC_EnableIntRC4_8_12MHz | ( | uint32_t | freqSelect | ) |
Enable internal 4/8/12MHz fast RC as main clock input.
| freqSelect | fast RC frequency (FAST_RC_4MHZ, FAST_RC_8MHZ, FAST_RC_12MHZ). |
| void PMC_EnablePeripheral | ( | uint32_t | dwId | ) |
Enables the clock of a peripheral.
The peripheral ID is used to identify which peripheral is targeted.
| id | Peripheral ID (ID_xxx). |
| void PMC_EnableXT32KFME | ( | void | ) |
Configure PLLA as clock input for MCK.
| mul | PLL multiplier factor (not shifted, don't minus 1). |
| div | PLL divider factor (not shifted). |
| prescaler | Master Clock prescaler (shifted as in register). |
| uint32_t PMC_IsPeriphEnabled | ( | uint32_t | dwId | ) |
Get Periph Status for the given peripheral ID.
| id | Peripheral ID (ID_xxx). |
| void PMC_SelectExtBypassOsc | ( | void | ) |
Select external OSC.
| void PMC_SelectExtOsc | ( | void | ) |
Select external OSC.
| void PMC_SetMckSelection | ( | uint32_t | clockSource, |
| uint32_t | prescaler | ||
| ) |
Selection of Master Clock.
| clockSource | Master Clock source. |
| prescaler | Master Clock prescaler. |
| void PMC_SetPllaClock | ( | uint32_t | mul, |
| uint32_t | div | ||
| ) |
Configure PLLA clock by giving MUL and DIV.
Disable PLLA when 'mul' set to 0.
| mul | PLL multiplier factor. |
| div | PLL divider factor. |
| void PMC_SetPllbClock | ( | uint32_t | mul, |
| uint32_t | div | ||
| ) |