Files
hpw421/project/example/2.4g/RF24_SingleWave/app/api/app_64m.h
T
2026-07-03 18:08:25 +08:00

19 lines
723 B
C

#ifndef __APP_64M__
#define __APP_64M__
#include "xc6xxx_rf_2_4g.h"
#define __write_hw_reg32(reg, val) ((*reg) = (val))
#define __read_hw_reg32(reg, val) ((val) = (*reg))
#define CPR_CTLAPBCLKEN_GRCTL ((volatile unsigned *)(0x40000000 + 0x070))
#define CPR_AOCLKEN_GRCTL ((volatile unsigned *)(0x40002400 + 0x7C))
#define AO_GPIO_MODE ((volatile unsigned *)(0x40002000 + 0x0044))
#define AO_GPIO_CTL ((volatile unsigned *)(0x40002000 + 0x0048))
void use_64m_crtstal_init(void);
void rf_64M_set_rx_channel(uint16_t channel);
void rf_64M_set_tx_channel(uint16_t channel);
void testpin_64M_config(void);
void Init_rtc_gpio(uint32_t num, uint8_t inter_mode);
#endif //__APP_64M__