Small refactor and bugfixes

This commit is contained in:
CTCaer committed 2019-12-04 21:31:39 +02:00
1 parent 168de9ddd8
commit 0b1eebefe1
38 files changed
+1315 -1273

No files matched your search

+593 -593
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -18,7 +18,7 @@
#include <string.h>
#include "heap.h"
#include "../gfx/gfx.h"
#include "../../../common/common_heap.h"
#include "../../common/common_heap.h"
static void _heap_create(heap_t *heap, u32 start)
{
+1 -1
View File
@@ -18,7 +18,7 @@
#define _HEAP_H_
#include "../utils/types.h"
#include "../../../common/common_heap.h"
#include "../../common/common_heap.h"
void heap_init(u32 base);
void *malloc(u32 size);
+1
View File
@@ -71,6 +71,7 @@ static void _sdram_config(const sdram_params_t *params)
// Start clocks.
CLOCK(CLK_RST_CONTROLLER_PLLM_MISC1) = params->pllm_setup_control;
CLOCK(CLK_RST_CONTROLLER_PLLM_MISC2) = 0;
// u32 tmp = (params->pllm_feedback_divider << 8) | params->pllm_input_divider | ((params->pllm_post_divider & 0xFFFF) << 20);
// CLOCK(CLK_RST_CONTROLLER_PLLM_BASE) = tmp;
// CLOCK(CLK_RST_CONTROLLER_PLLM_BASE) = tmp | 0x40000000;