Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • L lpc43xx-hal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Embedded Rust
  • lpc43xx-hal
  • Merge requests
  • !22

Reapplies patch that removes the clear_bits macro

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged A Sundbom requested to merge can-regression into master 5 years ago
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1
Compare
  • master (base)

and
  • latest version
    2357f7da
    1 commit, 5 years ago

1 file
+ 0
− 22

    Preferences

    File browser
    Compare changes
src/can/bus.rs
+ 0
− 22
  • View file @ 2357f7da

  • Edit in single-file editor

  • Open in Web IDE


@@ -287,28 +287,6 @@ macro_rules! hal {
if2_da2, if2_db2, if2_db2),
};
macro_rules! clear_bits {
($cmdmsk: ident, $cmdmsk_r: ident, $cmdreq: ident) => {
// reset NEWDAT = 0
// reset INTPND = 0
unsafe {
self.can.$cmdmsk_r().write(|w| w.newdat().bit(true)
.clrintpnd().bit(true)
.wr_rd().bit(true));
// write MessageNum to CANIFx_CMDREQ
self.can.$cmdreq.write(|w| w.messnum().bits(message_num));
while self.can.$cmdreq.read().busy().bit() {}
}
}
}
// Reset newdata and intpnd
match iface {
MsgIface::Iface1 => clear_bits!(if1_cmdmsk, if1_cmdmsk_r, if1_cmdreq),
MsgIface::Iface2 => clear_bits!(if2_cmdmsk, if2_cmdmsk_r, if2_cmdreq),
};
if !newdat { // No data in the message
return Ok(self.data_buf.clone())
} else {
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 Participants
Stefan Hellgren
A Sundbom
Reference: embedded-rust/lpc43xx-hal!22
Source branch: can-regression

Menu

Explore Projects Groups Topics Snippets