{"action":"created","issue":{"url":"https://api.github.com/repos/libopencm3/libopencm3/issues/236","labels_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/236/comments","events_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/236/events","html_url":"https://github.com/libopencm3/libopencm3/issues/236","id":25398280,"number":236,"title":"Populate current processor clock speed","user":{"login":"BuFran","id":4712252,"avatar_url":"https://avatars.githubusercontent.com/u/4712252?v=3","gravatar_id":"","url":"https://api.github.com/users/BuFran","html_url":"https://github.com/BuFran","followers_url":"https://api.github.com/users/BuFran/followers","following_url":"https://api.github.com/users/BuFran/following{/other_user}","gists_url":"https://api.github.com/users/BuFran/gists{/gist_id}","starred_url":"https://api.github.com/users/BuFran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuFran/subscriptions","organizations_url":"https://api.github.com/users/BuFran/orgs","repos_url":"https://api.github.com/users/BuFran/repos","events_url":"https://api.github.com/users/BuFran/events{/privacy}","received_events_url":"https://api.github.com/users/BuFran/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/libopencm3/libopencm3/labels/refactor","name":"refactor","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/libopencm3/libopencm3/milestones/1","html_url":"https://github.com/libopencm3/libopencm3/milestones/v0.1%20beta%20release","labels_url":"https://api.github.com/repos/libopencm3/libopencm3/milestones/1/labels","id":190242,"number":1,"title":"v0.1 beta release","description":"Attempt to make the first official release of libopencm3.","creator":{"login":"esden","id":17334,"avatar_url":"https://avatars.githubusercontent.com/u/17334?v=3","gravatar_id":"","url":"https://api.github.com/users/esden","html_url":"https://github.com/esden","followers_url":"https://api.github.com/users/esden/followers","following_url":"https://api.github.com/users/esden/following{/other_user}","gists_url":"https://api.github.com/users/esden/gists{/gist_id}","starred_url":"https://api.github.com/users/esden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esden/subscriptions","organizations_url":"https://api.github.com/users/esden/orgs","repos_url":"https://api.github.com/users/esden/repos","events_url":"https://api.github.com/users/esden/events{/privacy}","received_events_url":"https://api.github.com/users/esden/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":18,"state":"open","created_at":"2012-10-05T20:11:48Z","updated_at":"2014-04-04T21:34:13Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2014-01-10T14:37:29Z","updated_at":"2015-06-29T13:00:08Z","closed_at":null,"body":"Current versions of RCC module populates variables  rcc_ppre1_frequency and  rcc_ppre1_frequency, that has not descriptive name.\r\n\r\nThe idea of this issue is to create a global set of variables, common for all stm32 family, correctly filled with current clock speeds of appropriate busses.\r\n\r\nrcc_frequency_core\r\nrcc_frequency_apb1\r\nrcc_frequency_apb2\r\nrcc_frequency_ahb\r\n\r\nThe core clock speed information is missing in the current lib.\r\n"},"comment":{"url":"https://api.github.com/repos/libopencm3/libopencm3/issues/comments/116650440","html_url":"https://github.com/libopencm3/libopencm3/issues/236#issuecomment-116650440","issue_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/236","id":116650440,"user":{"login":"mox-mox","id":4519683,"avatar_url":"https://avatars.githubusercontent.com/u/4519683?v=3","gravatar_id":"","url":"https://api.github.com/users/mox-mox","html_url":"https://github.com/mox-mox","followers_url":"https://api.github.com/users/mox-mox/followers","following_url":"https://api.github.com/users/mox-mox/following{/other_user}","gists_url":"https://api.github.com/users/mox-mox/gists{/gist_id}","starred_url":"https://api.github.com/users/mox-mox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mox-mox/subscriptions","organizations_url":"https://api.github.com/users/mox-mox/orgs","repos_url":"https://api.github.com/users/mox-mox/repos","events_url":"https://api.github.com/users/mox-mox/events{/privacy}","received_events_url":"https://api.github.com/users/mox-mox/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T13:00:08Z","updated_at":"2015-06-29T13:00:08Z","body":"I just ran across the same issue and created a quick patch to populate at least the AHB clock speed (which should be equal to the core speed, correct?). It just adds one data member to the clock_scale_t struct which defines the AHB speed and sets rcc_ahb_frequency in void rcc_clock_setup_hse_3v3(const clock_scale_t *clock).\r\n\r\nSee https://gist.github.com/mox-mox/e21ee91e9ee9417badb5\r\n\r\nCould you please merge this into libopencm3?\r\n"}}