конфигурационные файлы
This commit is contained in:
parent
df2c9499d0
commit
01ff374787
54
Projects/epwm_test_biss_c_cpu1/src/config.h
Normal file
54
Projects/epwm_test_biss_c_cpu1/src/config.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* config.h
|
||||
*
|
||||
* Created on: 19 июл. 2024 г.
|
||||
* Author: seklyuts
|
||||
*/
|
||||
|
||||
#ifndef SRC_CONFIG_H_
|
||||
#define SRC_CONFIG_H_
|
||||
|
||||
#ifdef REF0
|
||||
|
||||
#define GPIO_FaultPWM GPIO64
|
||||
#define GPIO_FaultPWM_SEL GPCCSEL1
|
||||
#define GPIO_FaultPWM_DIR GPCDIR
|
||||
#define GPIO_FaultPWM_DAT GPCDAT
|
||||
#define GPIO_FaultPWM_GMUX GPCGMUX1
|
||||
#define GPIO_FaultPWM_MUX GPCMUX1
|
||||
|
||||
#define GPIO_RS485_DE 21
|
||||
#define GPIO_RS485_RE 83
|
||||
|
||||
#define GPIO_LED_R_SEL GPACSEL1
|
||||
#define GPIO_LED_G_SEL GPACSEL2
|
||||
#define GPIO_LED_B_SEL GPACSEL1
|
||||
|
||||
#define GPIO_LED_R GPIO6
|
||||
#define GPIO_LED_G GPIO10
|
||||
#define GPIO_LED_B GPIO7
|
||||
|
||||
#else
|
||||
|
||||
#define GPIO_FaultPWM GPIO99
|
||||
#define GPIO_FaultPWM_SEL GPDCSEL1
|
||||
#define GPIO_FaultPWM_DIR GPDDIR
|
||||
#define GPIO_FaultPWM_DAT GPDDAT
|
||||
#define GPIO_FaultPWM_GMUX GPDGMUX1
|
||||
#define GPIO_FaultPWM_MUX GPDMUX1
|
||||
|
||||
#define GPIO_RS485_DE 133
|
||||
#define GPIO_RS485_RE 145
|
||||
|
||||
#define GPIO_LED_R_SEL GPACSEL2
|
||||
#define GPIO_LED_G_SEL GPACSEL2
|
||||
#define GPIO_LED_B_SEL GPACSEL2
|
||||
|
||||
#define GPIO_LED_R GPIO11
|
||||
#define GPIO_LED_G GPIO13
|
||||
#define GPIO_LED_B GPIO12
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* SRC_CONFIG_H_ */
|
||||
54
Projects/epwm_test_biss_c_cpu2/src/config.h
Normal file
54
Projects/epwm_test_biss_c_cpu2/src/config.h
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* config.h
|
||||
*
|
||||
* Created on: 19 июл. 2024 г.
|
||||
* Author: seklyuts
|
||||
*/
|
||||
|
||||
#ifndef SRC_CONFIG_H_
|
||||
#define SRC_CONFIG_H_
|
||||
|
||||
#ifdef REF0
|
||||
|
||||
#define GPIO_FaultPWM GPIO64
|
||||
#define GPIO_FaultPWM_SEL GPCCSEL1
|
||||
#define GPIO_FaultPWM_DIR GPCDIR
|
||||
#define GPIO_FaultPWM_DAT GPCDAT
|
||||
#define GPIO_FaultPWM_GMUX GPCGMUX1
|
||||
#define GPIO_FaultPWM_MUX GPCMUX1
|
||||
|
||||
#define GPIO_RS485_DE 21
|
||||
#define GPIO_RS485_RE 83
|
||||
|
||||
#define GPIO_LED_R_SEL GPACSEL1
|
||||
#define GPIO_LED_G_SEL GPACSEL2
|
||||
#define GPIO_LED_B_SEL GPACSEL1
|
||||
|
||||
#define GPIO_LED_R GPIO6
|
||||
#define GPIO_LED_G GPIO10
|
||||
#define GPIO_LED_B GPIO7
|
||||
|
||||
#else
|
||||
|
||||
#define GPIO_FaultPWM GPIO99
|
||||
#define GPIO_FaultPWM_SEL GPDCSEL1
|
||||
#define GPIO_FaultPWM_DIR GPDDIR
|
||||
#define GPIO_FaultPWM_DAT GPDDAT
|
||||
#define GPIO_FaultPWM_GMUX GPDGMUX1
|
||||
#define GPIO_FaultPWM_MUX GPDMUX1
|
||||
|
||||
#define GPIO_RS485_DE 133
|
||||
#define GPIO_RS485_RE 145
|
||||
|
||||
#define GPIO_LED_R_SEL GPACSEL2
|
||||
#define GPIO_LED_G_SEL GPACSEL2
|
||||
#define GPIO_LED_B_SEL GPACSEL2
|
||||
|
||||
#define GPIO_LED_R GPIO11
|
||||
#define GPIO_LED_G GPIO13
|
||||
#define GPIO_LED_B GPIO12
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* SRC_CONFIG_H_ */
|
||||
Loading…
Reference in New Issue
Block a user