Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Doc comments for hal and lib. #118

Merged
merged 1 commit into from
Jul 30, 2014
Merged

Doc comments for hal and lib. #118

merged 1 commit into from
Jul 30, 2014

Conversation

bharrisau
Copy link
Contributor

Just leaves drivers (and platformtree) to go.

@bharrisau
Copy link
Contributor Author

cc #82

@@ -20,8 +20,7 @@ Some pins that could be configured here may be missing from actual MCU depending
on the package.
*/

use core::intrinsics::abort;
use core::option::{Option, Some, None};
use core::option::{Option};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can drop the { / } here.

@farcaller
Copy link
Member

Thanks for the cleanup work. I've added a few comments on that.

@bharrisau
Copy link
Contributor Author

r?

#[inline(always)]
pub fn init_stack() {
set_stack_limit((&_eglobals as *const u32) as u32);
}

/// Helper function to copy over .data from rom to ram and zero out .bss
/// Helper function to initialize memory.
/// Copies .data sections in from RAM and initialized .bss sections to zero.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initializes

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd quote those with backticks, i.e. .data and .bss...

@bharrisau
Copy link
Contributor Author

Not sure if you are still reviewing. But I made the changes to the bss/data stuff.

hacknbot added a commit that referenced this pull request Jul 30, 2014
Doc comments for hal and lib.

Reviewed-by: farcaller
@hacknbot hacknbot merged commit aeeb8e8 into hackndev:master Jul 30, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants