Skip to content
led_driver.h 791 B
Newer Older
laurentc's avatar
laurentc committed



// Reset Code 50s at 0=> 55s.
// 55/0.4	
#define LED_RESET_DELAY ((uint32_t)(55.0f/0.4f))

// Very Low Power pour commencer
#define POWER_LIMIT 128


#define NB_DMA_WRITES ((uint32_t)((NB_LEDS_PER_STRIP*8*3*3)+LED_RESET_DELAY))


void initLedResetCodeInMemoryForDMA2(uint8_t *portamem);
void formatMemoryForDMA2(uint8_t *raw, uint8_t *portamem, uint8_t integer_offset);
void dmaLedDrive2(uint8_t *portamem);
void dmaPostLedDrive(void);
void dmaWait(void);
void dmaUrgentStop(void);

//void initLedResetCodeInMemoryForDMA(uint16_t *portamem, uint8_t *portcmem);
//void formatMemoryForDMA(uint8_t *raw, uint16_t *portamem, uint8_t *portcmem, uint8_t integer_offset);
//void manualLedDrive(uint16_t *portamem, uint8_t *portcmem);
//void dmaLedDrive(uint16_t *portamem, uint8_t *portcmem);