TOP
SSV SOFTWARE SYSTEMS REGISTER  REGISTER
Log in to check your private messages  Log in to check your private messages
START FAQ SEARCH MITGLIEDER PROFILE  Log in 
SSV-Forum
Geschwindigkeit der Master Clock

 
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200
<<< Previous topic - Next topic >>>  
Display posts from previous:   
Author Message
Ole



Joined: 26 Nov 2008
Posts: 20

PostPosted: 25.08.2009, 16:02    Post subject: Geschwindigkeit der Master Clock Reply with quote

Hallo,

um mit den Timercountern des AT91 zu arbeiten muss man wissen auf welcher Geschwindigkeit die Master Clock läuft - dmesg sagt mir 59Mhz - aber stimmt das wirklich? 59 klingt für mich etwas "ungerade"... Also kann man der Angabe vertrauen?

Mit freundlichem Gruß,
Ole
Back to top
View user's profile Send private message
Ole



Joined: 26 Nov 2008
Posts: 20

PostPosted: 01.09.2009, 13:23    Post subject: Reply with quote

Ums abzuschliesen, die genaue Rate lautet: 59904000

Code um das auszulesen (kernel 2.6.16):
Code:

#include <linux/clk.h>

static long (*p_clk_get)(struct device *dev, const char *id) = (long*)0x0c0025114;
static long (*p_clk_get_rate)(struct clk *clk) = (long*)0x0c0025278;

struct clk *master_clk;
master_clk = p_clk_get(NULL, "mck");
printk( "Rate: %d\n", p_clk_get_rate(master_clk));
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SSV-Forum Forum Index >>> DNP/9200 All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

SSV SOFTWARE SYSTEMS

Dünenweg 5
30419 Hannover

Fon: +49(0)511  ·  40 000-0
Fax: +49(0)511  ·  40 000-40

sales@ssv-embedded.de


Impressum    ·    Datenschutz    ·    AGB

© 2024 SSV SOFTWARE SYSTEMS GmbH. Alle Rechte vorbehalten.

ISO 9001:2015