Rename GPDMA channel disable_force() to disable().

There was nothing particularly forceful about the disable_force() code. Whether it's a "forced" operation depends on what happens before and after (HALT and ACTIVE flags are involved in a smooth disabling of the channel).
This commit is contained in:
Jared Boone 2016-01-10 10:11:16 -08:00
parent 43d6098c48
commit c75c167c25
6 changed files with 8 additions and 8 deletions

View file

@ -313,7 +313,7 @@ public:
return LPC_GPDMA->CH[number].CONFIG & (1U << 0);
}
void disable_force() const {
void disable() const {
LPC_GPDMA->CH[number].CONFIG &= ~(1U << 0);
}
@ -349,7 +349,7 @@ public:
void disable() const {
for(const auto& channel : channels) {
channel.disable_force();
channel.disable();
}
LPC_GPDMA->CONFIG &= ~(1U << 0);
}