Wayne c9db6ed151
[bsp/nuvoton] Support NuMaker-M467HJ BSP and update drivers. (#6416)
* [bsp/nuvoton] Support NuMaker-M467HJ BSP and update drivers.

* Format files.

Co-authored-by: Wayne Lin <wclin@nuvoton.com>
2022-09-12 07:36:11 -04:00

28 lines
515 B
C

#ifndef __DRV_SYS_H__
#define __DRV_SYS_H__
#include <rtthread.h>
#include "drv_common.h"
#include "NuMicro.h"
struct nu_module
{
char *name;
void *m_pvBase;
uint32_t u32RstId;
IRQn_Type eIRQn;
} ;
typedef struct nu_module *nu_module_t;
typedef struct
{
vu32 vu32RegAddr;
vu32 vu32BitMask;
vu32 vu32Value;
char *szName;
} S_NU_REG;
#define NUREG_EXPORT(vu32RegAddr, vu32BitMask, vu32Value) { vu32RegAddr, vu32BitMask, vu32Value, #vu32Value }
#endif