diff --git a/.gitignore b/.gitignore index fd4aa5a..ad54b07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ +*.scvd *.uvprojx *.uvoptx **/RTE **/Objects **/Listings **/DebugConfig -osProject.uvguix.nxf54496 \ No newline at end of file +osProject.uvguix.nxf54496 diff --git a/RidhaOs/Inc/timebase.h b/RidhaOs/Inc/timebase.h index a6a1cd3..4aa29cc 100644 --- a/RidhaOs/Inc/timebase.h +++ b/RidhaOs/Inc/timebase.h @@ -1,6 +1,7 @@ #ifndef __TIMEBASE_H__ #define __TIMEBASE_H__ +#include "RIDHAOS_CONF.h" #include diff --git a/RidhaOs/RIDHAOS_CONF.h b/RidhaOs/RIDHAOS_CONF.h new file mode 100644 index 0000000..fc56198 --- /dev/null +++ b/RidhaOs/RIDHAOS_CONF.h @@ -0,0 +1,15 @@ +#ifndef __R_CONFIGURATION_H__ +#define __R_CONFIGURATION_H__ + +/* Here Define your MCU REGISTER MAP FILE */ +#include "fsl_device_registers.h" + + +/* SysTick Configuration for TimeBase */ +extern uint32_t SystemCoreClock; + +#define CPU_CLOCK_HZ SystemCoreClock +#define MAX_DELAY 0xFFFFFFFFU +#define TICK_RATE_HZ 1000 + +#endif /* __R_CONFIGURATION_H__ */ \ No newline at end of file diff --git a/RidhaOs/Src/timebase.c b/RidhaOs/Src/timebase.c index 0cd459c..b85ac42 100644 --- a/RidhaOs/Src/timebase.c +++ b/RidhaOs/Src/timebase.c @@ -1,5 +1,5 @@ #include "timebase.h" -#include "fsl_device_registers.h" + #define CTRL_ENABLE (1U<<0) #define CTRL_TICKINT (1U<<1)