diff --git a/.vscode/settings.json b/.vscode/settings.json index dcae607..2d289b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,8 @@ "fb.h": "c", "system.h": "c", "mod.h": "c", - "modstd.h": "c" + "modstd.h": "c", + "stdbool.h": "c", + "stdint.h": "c" } } \ No newline at end of file diff --git a/include/version.h b/include/version.h index 45a23bc..798291b 100644 --- a/include/version.h +++ b/include/version.h @@ -1,3 +1,3 @@ #define VERSION_MAJOR 0 #define VERSION_MINOR 1 -#define VERSION_BUILD 837 +#define VERSION_BUILD 840 diff --git a/kernel/arch/pit.c b/kernel/arch/pit.c index 8defc1c..547bca6 100644 --- a/kernel/arch/pit.c +++ b/kernel/arch/pit.c @@ -13,15 +13,18 @@ #include static volatile uint64_t count = 0; +static volatile uint64_t test_color = 0x00D000; extern uint32_t width; static volatile void isr_local( ) { + if (test_color >= 0xFFFFFF) { test_color = 0x00D000; } uint32_t last = fb_get_text_color( ); - fb_set_text_color(0x00FF00 + count); + fb_set_text_color(test_color); fb_printf_at(SCREEN_WIDTH - 6 * 7, 0, "БМПОС"); fb_set_text_color(last); count++; + test_color += 0x010101; } void pit_set_interval(int hz) { @@ -33,5 +36,5 @@ void pit_set_interval(int hz) { void pit_init( ) { idt_set_int(32, isr_local); - pit_set_interval(10000); + pit_set_interval(10); } \ No newline at end of file