sw: tester: adjust tester time to 900us/1ms
This is in-line with the datasheet. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
//--------------------------------------------------------------------------------
|
||||
// Auto-generated by Migen (bc90344) & LiteX (3a72688b) on 2019-05-23 14:16:56
|
||||
// Auto-generated by Migen (bc90344) & LiteX (3a72688b) on 2019-05-26 18:13:05
|
||||
//--------------------------------------------------------------------------------
|
||||
#ifndef __GENERATED_CSR_H
|
||||
#define __GENERATED_CSR_H
|
||||
|
@ -137,8 +137,13 @@ static uint32_t test_one_color(int color)
|
||||
|
||||
rgb_bypass_write(1 << color);
|
||||
rgb_mode_off();
|
||||
rgb_duty_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 1);
|
||||
rgb_pulse_write(SYSTEM_CLOCK_FREQUENCY / 1000 * 1);
|
||||
|
||||
// Amount of time it's off (900 us)
|
||||
rgb_duty_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 9);
|
||||
|
||||
// Total amount of time for one pulse (1000 us or 1 ms)
|
||||
rgb_pulse_write(SYSTEM_CLOCK_FREQUENCY / 10000 * 10);
|
||||
|
||||
put_string("RGB");
|
||||
put_char(color_names[color]);
|
||||
put_string(": ");
|
||||
|
Reference in New Issue
Block a user