Trailing whitespace clean
This commit is contained in:
parent
1746a7352e
commit
1c41de16d4
|
@ -95,7 +95,6 @@ void spiBegin (void) {
|
||||||
SPSR = spiRate & 1 || spiRate == 6 ? 0 : _BV(SPI2X);
|
SPSR = spiRate & 1 || spiRate == 6 ? 0 : _BV(SPI2X);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
/** SPI receive a byte */
|
/** SPI receive a byte */
|
||||||
uint8_t spiRec(void) {
|
uint8_t spiRec(void) {
|
||||||
|
|
|
@ -777,7 +777,6 @@
|
||||||
/** Begin SPI transaction, set clock, bit order, data mode */
|
/** Begin SPI transaction, set clock, bit order, data mode */
|
||||||
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
|
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
|
||||||
// TODO: to be implemented
|
// TODO: to be implemented
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ENABLED(SOFTWARE_SPI)
|
#endif // ENABLED(SOFTWARE_SPI)
|
||||||
|
|
|
@ -136,7 +136,7 @@ void analogWrite(pin_t pin, int pwm_value) { // 1 - 254: pwm_value, 0: LOW, 255
|
||||||
digitalWrite(pin, value);
|
digitalWrite(pin, value);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (LPC1768_PWM_attach_pin(pin, 1, LPC_PWM1->MR0, 0xff))
|
if (LPC1768_PWM_attach_pin(pin, 1, LPC_PWM1->MR0, 0xFF))
|
||||||
LPC1768_PWM_write(pin, map(value, 0, 255, 1, LPC_PWM1->MR0)); // map 1-254 onto PWM range
|
LPC1768_PWM_write(pin, map(value, 0, 255, 1, LPC_PWM1->MR0)); // map 1-254 onto PWM range
|
||||||
else { // out of PWM channels
|
else { // out of PWM channels
|
||||||
if (!out_of_PWM_slots) MYSERIAL.printf(".\nWARNING - OUT OF PWM CHANNELS\n.\n"); //only warn once
|
if (!out_of_PWM_slots) MYSERIAL.printf(".\nWARNING - OUT OF PWM CHANNELS\n.\n"); //only warn once
|
||||||
|
|
|
@ -108,5 +108,4 @@ void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode)
|
||||||
SPI.beginTransaction(spiConfig);
|
SPI.beginTransaction(spiConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // __MK64FX512__ || __MK66FX1M0__
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue