Add Global conf file
This commit is contained in:
parent
730af98c8a
commit
dff43f451c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,7 +1,8 @@
|
||||
*.scvd
|
||||
*.uvprojx
|
||||
*.uvoptx
|
||||
**/RTE
|
||||
**/Objects
|
||||
**/Listings
|
||||
**/DebugConfig
|
||||
osProject.uvguix.nxf54496
|
||||
osProject.uvguix.nxf54496
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#ifndef __TIMEBASE_H__
|
||||
#define __TIMEBASE_H__
|
||||
|
||||
#include "RIDHAOS_CONF.h"
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
|
||||
15
RidhaOs/RIDHAOS_CONF.h
Normal file
15
RidhaOs/RIDHAOS_CONF.h
Normal 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__ */
|
||||
@ -1,5 +1,5 @@
|
||||
#include "timebase.h"
|
||||
#include "fsl_device_registers.h"
|
||||
|
||||
|
||||
#define CTRL_ENABLE (1U<<0)
|
||||
#define CTRL_TICKINT (1U<<1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user