Code style and comment tweaks
This commit is contained in:
@ -240,7 +240,7 @@
|
||||
}
|
||||
|
||||
// all the others
|
||||
static uint32_t spiDelayCyclesX4 = (F_CPU) / 1000000; // 4uS => 125khz
|
||||
static uint32_t spiDelayCyclesX4 = (F_CPU) / 1000000; // 4µs => 125khz
|
||||
|
||||
static uint8_t spiTransferX(uint8_t b) { // using Mode 0
|
||||
int bits = 8;
|
||||
|
@ -1479,7 +1479,7 @@ static void udd_ctrl_in_sent(void)
|
||||
// The IN data don't must be written in endpoint 0 DPRAM during
|
||||
// a next setup reception in same endpoint 0 DPRAM.
|
||||
// Thereby, an OUT ZLP reception must check before IN data write
|
||||
// and if no OUT ZLP is recevied the data must be written quickly (800us)
|
||||
// and if no OUT ZLP is received the data must be written quickly (800µs)
|
||||
// before an eventually ZLP OUT and SETUP reception
|
||||
flags = cpu_irq_save();
|
||||
if (Is_udd_out_received(0)) {
|
||||
|
@ -177,7 +177,7 @@ int i2s_init() {
|
||||
*
|
||||
* fwclk = fbclk / 32
|
||||
*
|
||||
* for fwclk = 250kHz (4uS pulse time)
|
||||
* for fwclk = 250kHz (4µS pulse time)
|
||||
* N = 10
|
||||
* M = 20
|
||||
*/
|
||||
|
@ -47,7 +47,7 @@ typedef uint64_t hal_timer_t;
|
||||
|
||||
#if ENABLED(I2S_STEPPER_STREAM)
|
||||
#define STEPPER_TIMER_PRESCALE 1
|
||||
#define STEPPER_TIMER_RATE 250000 // 250khz, 4us pulses of i2s word clock
|
||||
#define STEPPER_TIMER_RATE 250000 // 250khz, 4µs pulses of i2s word clock
|
||||
#define STEPPER_TIMER_TICKS_PER_US ((STEPPER_TIMER_RATE) / 1000000) // stepper timer ticks per µs // wrong would be 0.25
|
||||
#else
|
||||
#define STEPPER_TIMER_PRESCALE 40
|
||||
|
@ -26,8 +26,8 @@
|
||||
*
|
||||
* These are based on the LPC1768 routines.
|
||||
*
|
||||
* Couldn't just call exact copies because the overhead resulted in the
|
||||
* one microsecond delay being about 4uS.
|
||||
* Couldn't just call exact copies because the overhead
|
||||
* results in a one microsecond delay taking about 4µS.
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user