diff --git a/Clean.sh b/Clean.sh index 7c7e8c4..8fafcd5 100644 --- a/Clean.sh +++ b/Clean.sh @@ -1,4 +1,3 @@ #!/bin/bash make clean - diff --git a/Code/Mcal/Clock.c b/Code/Mcal/Clock.c index dd6a0b0..feef6be 100644 --- a/Code/Mcal/Clock.c +++ b/Code/Mcal/Clock.c @@ -18,9 +18,9 @@ //===================================================================================================== // Includes //===================================================================================================== -#include "FE310.h" -#include "Clock.h" -#include "riscv-csr.h" +#include +#include +#include //===================================================================================================== // Functions prototype diff --git a/Code/Mcal/Mcu.c b/Code/Mcal/Mcu.c index ebfc379..cc3fdcb 100644 --- a/Code/Mcal/Mcu.c +++ b/Code/Mcal/Mcu.c @@ -18,10 +18,10 @@ //===================================================================================================== // Includes //===================================================================================================== -#include "FE310.h" -#include "Clock.h" -#include "Mcu.h" -#include "riscv-csr.h" +#include +#include +#include +#include //===================================================================================================== // Functions prototype diff --git a/Code/Mcal/mtimer.c b/Code/Mcal/mtimer.c index f573ab9..f14590a 100644 --- a/Code/Mcal/mtimer.c +++ b/Code/Mcal/mtimer.c @@ -18,8 +18,8 @@ //========================================================================================= // Includes //========================================================================================= -#include "mtimer.h" -#include "riscv-csr.h" +#include +#include //----------------------------------------------------------------------------------------- /// \brief diff --git a/Code/Startup/intvect.c b/Code/Startup/intvect.c index b4aa588..c6d243a 100644 --- a/Code/Startup/intvect.c +++ b/Code/Startup/intvect.c @@ -18,9 +18,9 @@ //===================================================================================================== // Includes //===================================================================================================== -#include "FE310.h" -#include "riscv-csr.h" -#include "Platform_Types.h" +#include +#include +#include //===================================================================================================== // Functions prototype diff --git a/Code/main.c b/Code/main.c index 2b39a14..a8cdcb1 100644 --- a/Code/main.c +++ b/Code/main.c @@ -15,12 +15,18 @@ ******************************************************************************************/ +// cd /mnt/c/Users/ckorm/Documents/Ks/uC_Software/Boards/RED-V_SiFive_RISC-V_FE310_SoC +// wget --no-check-certificate https://buildbot.embecosm.com/job/riscv32-gcc-ubuntu2204-release/10/artifact/riscv32-embecosm-ubuntu2204-gcc13.2.0.tar.gz +// tar -xzf riscv32-embecosm-ubuntu2204-gcc13.2.0.tar.gz -C /mnt/c/Users/ckorm/Documents/Ks/uC_Software/Boards/RED-V_SiFive_RISC-V_FE310_SoC +// PATH="/mnt/c/Users/ckorm/Documents/Ks/uC_Software/Boards/RED-V_SiFive_RISC-V_FE310_SoC/riscv32-embecosm-ubuntu2204-gcc13.2.0/bin:$PATH" +// bash ./Rebuild.sh + //===================================================================================================== // Includes //===================================================================================================== -#include "FE310.h" -#include "mtimer.h" -#include "riscv-csr.h" +#include +#include +#include #define MTIME_TIMEOUT_LED_PHASE 1000U @@ -71,5 +77,3 @@ void Isr_MachineTimerInterrupt(void) /* reload the mtimer */ mtimer_ReloadTimer(MTIME_TIMEOUT_MS(MTIME_TIMEOUT_LED_PHASE)); } - - diff --git a/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj b/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj index 0412c83..a001ac1 100644 --- a/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj +++ b/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj @@ -11,6 +11,7 @@ + @@ -84,11 +85,15 @@ make all TYP_CC=LLVM make all TYP_CC=LLVM make clean TYP_CC=LLVM + $(SolutionDir)../Code;$(SolutionDir)../Code/Mcal; + __attribute__()= make all TYP_CC=GCC make all TYP_CC=GCC make clean TYP_CC=GCC + $(SolutionDir)../Code;$(SolutionDir)../Code/Mcal; + __attribute__()= diff --git a/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj.filters b/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj.filters index c52d751..d9a966c 100644 --- a/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj.filters +++ b/build/RED-V_SiFive_RISC-V_FE310_SoC.vcxproj.filters @@ -13,12 +13,18 @@ {685e5da8-bb6f-4f61-bafa-855ae8316286} - - {b18bc57a-f6e6-4a7e-94f1-0e741870dbaa} - {a41951c5-2a67-4402-9518-95337fc7a4a7} + + {b18bc57a-f6e6-4a7e-94f1-0e741870dbaa} + + + {8bd596ee-2b15-4fe2-b514-484ef7efc85c} + + + {4f794441-a60f-4b21-a720-73332904f080} + @@ -66,6 +72,9 @@ build + + .github\workflows + @@ -74,33 +83,33 @@ - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal - Code\Mcal + Mcal Code\Startup