Move devices into devices folder
This commit is contained in:
@@ -16,6 +16,7 @@ TESTS=tests
|
|||||||
|
|
||||||
SRCS=$(wildcard *.s) $(wildcard *.c)
|
SRCS=$(wildcard *.s) $(wildcard *.c)
|
||||||
SRCS+=$(wildcard filesystem/*.s) $(wildcard filesystem/*.c)
|
SRCS+=$(wildcard filesystem/*.s) $(wildcard filesystem/*.c)
|
||||||
|
SRCS+=$(wildcard devices/*.s) $(wildcard devices/*.c)
|
||||||
OBJS+=$(patsubst %.s,%.o,$(filter %s,$(SRCS)))
|
OBJS+=$(patsubst %.s,%.o,$(filter %s,$(SRCS)))
|
||||||
OBJS+=$(patsubst %.c,%.o,$(filter %c,$(SRCS)))
|
OBJS+=$(patsubst %.c,%.o,$(filter %c,$(SRCS)))
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
|
||||||
#include "sd_card.h"
|
#include "devices/sd_card.h"
|
||||||
|
|
||||||
void sd_init() {
|
void sd_init() {
|
||||||
uint32_t resp;
|
uint32_t resp;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "filesystem/fat.h"
|
#include "fat.h"
|
||||||
#include "sd_card.h"
|
#include "devices/sd_card.h"
|
||||||
|
|
||||||
uint8_t fat_buf[512];
|
uint8_t fat_buf[512];
|
||||||
|
|
||||||
|
|||||||
4
sw/irq.c
4
sw/irq.c
@@ -2,8 +2,8 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
|
|
||||||
#include "interrupt.h"
|
#include "devices/interrupt.h"
|
||||||
#include "uart.h"
|
#include "devices/uart.h"
|
||||||
|
|
||||||
char lastchar;
|
char lastchar;
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
#include <conio.h>
|
#include <conio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "board_io.h"
|
#include "devices/board_io.h"
|
||||||
#include "uart.h"
|
#include "devices/uart.h"
|
||||||
#include "mapper.h"
|
#include "devices/mapper.h"
|
||||||
#include "sd_card.h"
|
#include "devices/sd_card.h"
|
||||||
#include "filesystem/fat.h"
|
#include "filesystem/fat.h"
|
||||||
#include "exec.h"
|
#include "exec.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user