Add Global conf file

This commit is contained in:
Ridha Noomane 2024-12-03 19:53:09 +01:00
parent 730af98c8a
commit dff43f451c
4 changed files with 19 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.scvd
*.uvprojx *.uvprojx
*.uvoptx *.uvoptx
**/RTE **/RTE

View File

@ -1,6 +1,7 @@
#ifndef __TIMEBASE_H__ #ifndef __TIMEBASE_H__
#define __TIMEBASE_H__ #define __TIMEBASE_H__
#include "RIDHAOS_CONF.h"
#include <stdint.h> #include <stdint.h>

15
RidhaOs/RIDHAOS_CONF.h Normal file
View File

@ -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__ */

View File

@ -1,5 +1,5 @@
#include "timebase.h" #include "timebase.h"
#include "fsl_device_registers.h"
#define CTRL_ENABLE (1U<<0) #define CTRL_ENABLE (1U<<0)
#define CTRL_TICKINT (1U<<1) #define CTRL_TICKINT (1U<<1)