Compare commits
3 commits
5f0b40ed59
...
2c070c8640
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c070c8640 | ||
|
|
b4788466de | ||
|
|
7bd6440c14 |
2 changed files with 9 additions and 9 deletions
|
|
@ -198,17 +198,17 @@ uint32_t _PM_timerStop(Protomatter_core *core) {
|
|||
|
||||
// See notes in core.c before the "blast" functions
|
||||
#if F_CPU >= 200000000
|
||||
#define _PM_clockHoldHigh asm("nop; nop; nop; nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop; nop");
|
||||
#define _PM_clockHoldHigh asm("nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop; nop; nop; nop; nop");
|
||||
#elif F_CPU >= 180000000
|
||||
#define _PM_clockHoldHigh asm("nop; nop; nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop");
|
||||
#define _PM_clockHoldHigh asm("nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop; nop; nop; nop");
|
||||
#elif F_CPU >= 150000000
|
||||
#define _PM_clockHoldHigh asm("nop; nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop");
|
||||
#define _PM_clockHoldHigh asm("nop");
|
||||
#define _PM_clockHoldLow asm("nop; nop; nop");
|
||||
#else
|
||||
#define _PM_clockHoldHigh asm("nop; nop; nop");
|
||||
#define _PM_clockHoldLow asm("nop");
|
||||
#define _PM_clockHoldHigh asm("nop");
|
||||
#define _PM_clockHoldLow asm("nop; nop");
|
||||
#endif
|
||||
|
||||
#define _PM_minMinPeriod 160
|
||||
|
|
|
|||
|
|
@ -726,7 +726,7 @@ IRAM_ATTR static void blast_byte(Protomatter_core *core, uint8_t *data) {
|
|||
_PM_PORT_TYPE rgbclock = core->rgbAndClockMask; // RGB + clock bit
|
||||
#endif
|
||||
_PM_PORT_TYPE clock = core->clockMask; // Clock bit
|
||||
uint8_t chunks = (core->chainBits + (_PM_chunkSize - 1)) / _PM_chunkSize;
|
||||
uint16_t chunks = (core->chainBits + (_PM_chunkSize - 1)) / _PM_chunkSize;
|
||||
|
||||
// PORT has already been initialized with RGB data + clock bits
|
||||
// all LOW, so we don't need to initialize that state here.
|
||||
|
|
|
|||
Loading…
Reference in a new issue