Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove a bunch of warnings.

  • Loading branch information...
commit 33dedda4ea1370882ab15579c93c5b836916c724 1 parent 9796b08
Marie Markwell authored
2  include/driver/keyboard/keyboard.h
View
@@ -34,7 +34,7 @@ int HalKeyboardNumlock();
void HalKeyboardEventQueue_enqueue(HalKeyboardEvent *event);
HalKeyboardEvent *HalKeyboardEventQueue_dequeue();
HalKeyboardEvent *HalKeyboardGetEvent(int blocking);
-HalKeyboardEvent *HalKeyboardReadLetter();
+char HalKeyboardReadLetter();
void HalKeyboardInit();
#endif /* end of include guard: HAL_KEYBOARD_H */
7 include/driver/serial.h → include/driver/uart.h
View
@@ -1,5 +1,5 @@
-#ifndef DRIVER_SERIAL_H
-#define DRIVER_SERIAL_H
+#ifndef DRIVER_UART_H
+#define DRIVER_UART_H
#include <driver/driver.h>
@@ -28,7 +28,8 @@ enum UART_Registers {
};
void UartSend(char c);
+void UartSendString(const char *str);
static void UartSend_int(char c);
int UartInit();
-#endif /* end of include guard: HAL_SERIAL_H */
+#endif /* end of include guard: HAL_UART_H */
3  src/metodo/colpa/debug.c
View
@@ -3,6 +3,9 @@
#include <metodo/core/shutdown.h>
#include <api/cpu.h>
+#include <init/tests.h>
+#include <init/memory_map.h>
+
uint8_t i;
char *str;
2  src/metodo/driver/keyboard.c
View
@@ -123,7 +123,7 @@ HalKeyboardEvent *HalKeyboardGetEvent(int blocking)
return HalKeyboardEventQueue_dequeue();
}
-HalKeyboardEvent *HalKeyboardReadLetter(int echo)
+char HalKeyboardReadLetter(int echo)
{
HalKeyboardEvent *event = HalKeyboardGetEvent(1);
while (!event || !event->character || event->type == HalKeyboardEventType_up) {
5 src/metodo/init/load_modules.c
View
@@ -1,5 +1,6 @@
-#include <metodo/init/load_modules.h>
-#include <metodo/misc/modules.h>
+#include <init/elfloader.h>
+#include <init/load_modules.h>
+#include <misc/modules.h>
void InitLoadModules()
{
4 src/modules/uart.c
View
@@ -7,7 +7,7 @@
#include <lib/krnllib.h>
#include <system.h>
-#include <driver/serial.h>
+#include <driver/uart.h>
//DRIVER_INIT(UartInit)
//void _start(void) { UartInit(); }
@@ -19,7 +19,7 @@ void UartSend(char c)
UartSend_int(c);
}
-void UartSendString(char *str)
+void UartSendString(const char *str)
{
do {
UartSend(*str);
Please sign in to comment.
Something went wrong with that request. Please try again.