123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- /************************************************************************
- Project: Welling Motor Control Paltform
- Filename: hwsetup.h
- Partner Filename: hwsetup.c
- Description: The header file of hwsetup.c
- Complier: IAR Embedded Workbench for ARM 8.40.2
- CPU TYPE : GD32F30x
- *************************************************************************
- Copyright (c) 2022 Welling Motor Technology(Shanghai) Co. Ltd.
- All rights reserved.
- *************************************************************************
- *************************************************************************
- Revising History (ECL of this file):
- ************************************************************************/
- /************************************************************************
- Beginning of File, do not put anything above here except notes
- Compiler Directives:
- ************************************************************************/
- #ifndef HWSETUP_H
- #define HWSETUP_H
- #include "gd32f30x_libopt.h"
- /************************************************************************
- Compiler Directives (N/A)
- ************************************************************************/
- #ifdef _HWSETUP_C_
- #define _HWSETUP_EXT
- #else
- #define _HWSETUP_EXT extern
- #endif
- /************************************************************************
- Definitions & Macros
- ************************************************************************/
- /* Interrupt ON/OFF define */
- #define ENABLE_IRQ __enable_irq()
- #define DISABLE_IRQ __disable_irq()
- /************************************************************************
- TypeDefs & Structure defines (N/A)
- ************************************************************************/
- /************************************************************************
- Constant Table
- *************************************************************************/
- /************************************************************************
- Exported Variables
- ************************************************************************/
- /************************************************************************
- RAM ALLOCATION (N/A)
- ************************************************************************/
- /************************************************************************
- Exported Function Call Prototypes
- ************************************************************************/
- #ifdef _HWSETUP_C_
- _HWSETUP_EXT void hw_voHardwareSetup1(void);
- _HWSETUP_EXT void hw_voHardwareSetup2(void);
- _HWSETUP_EXT void hw_voEnInt(void);
- _HWSETUP_EXT void hw_voInitPeri(void);
- _HWSETUP_EXT void hw_voInitSysCtrl(void);
- _HWSETUP_EXT void hw_voInitGPIO(void);
- _HWSETUP_EXT void hw_voInitInt(void);
- _HWSETUP_EXT void hw_voInitSysTick(void);
- _HWSETUP_EXT void hw_voInitCAN(void);
- #else
- _HWSETUP_EXT void hw_voHardwareSetup1(void);
- _HWSETUP_EXT void hw_voHardwareSetup2(void);
- _HWSETUP_EXT void hw_voEnInt(void);
- _HWSETUP_EXT void hw_voTimEn(void);
- _HWSETUP_EXT void hw_voPWMInit(void);
- _HWSETUP_EXT void hw_voPWMOn(void);
- _HWSETUP_EXT void hw_voPWMOff(void);
- _HWSETUP_EXT void hw_voCharge(void);
- _HWSETUP_EXT void hw_voThrPhsShrt(void);
- _HWSETUP_EXT void hw_voIWDGInit(uint16_t prer, uint16_t rlr);
- #endif
- #define ID_TO_MC_FILTER (uint16_t)0x751
- #define ID_TO_MC_MASK (uint16_t)0x7FF
- #define ID_BC_FILTER (uint16_t)0x751
- #define ID_BC_MASK (uint16_t)0x7FF
- /************************************************************************
- Flag Define (N/A)
- ************************************************************************/
- /***********************************************************************/
- #endif
- /************************************************************************
- Copyright (c) 2022 Welling Motor Technology(Shanghai) Co. Ltd.
- All rights reserved.
- *************************************************************************
- End of this File (EOF)!
- Do not put anything after this part!
- ************************************************************************/
|