| 1234567891011121314151617181920212223242526 |
- #ifndef __OTHERS_H__
- #define __OTHERS_H__
- #define PWR_EN_PIN GPIO_Pin_5
- #define PWR_EN_PORT GPIOB
- #define PWR_EN_HIGH PWR_EN_PORT->BSRR = PWR_EN_PIN //À¸ß
- #define PWR_EN_LOW PWR_EN_PORT->BRR = PWR_EN_PIN
- #define BEEP_PIN GPIO_Pin_7
- #define BEEP_PORT GPIOB
- #define MIC_MUTE_PIN GPIO_Pin_1
- #define MIC_MUTE_PORT GPIOA
- #define SPK_MUTE_PIN GPIO_Pin_0
- #define SPK_MUTE_PORT GPIOB
- #define MicCtrl(bit) bit?(MIC_MUTE_PORT->BRR=MIC_MUTE_PIN):(MIC_MUTE_PORT->BSRR=MIC_MUTE_PIN)
- #define SpeakerCtrl(bit) bit?(SPK_MUTE_PORT->BRR=SPK_MUTE_PIN):(SPK_MUTE_PORT->BSRR=SPK_MUTE_PIN)
- void OtherInit(void);
- void RCC_ClockInit(unsigned char enable);
- void MY_NVIC_Init(void);
- void AllGPIO_Init(void);
- #endif
|