diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-08-19 21:34:09 -0500 |
|---|---|---|
| committer | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-08-19 21:34:09 -0500 |
| commit | 0cb345ed5ccbe786d0a7e7e2de740c0a07b82770 (patch) | |
| tree | 89682cd81419b138c5657cfa2dae797c81f8ea33 /Core/Inc/cs4272.h | |
| parent | 0c79f390c81f56fd087c2fffb07b373594119668 (diff) | |
sdram and ringmod effect
Diffstat (limited to 'Core/Inc/cs4272.h')
| -rwxr-xr-x | Core/Inc/cs4272.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Core/Inc/cs4272.h b/Core/Inc/cs4272.h index 30e493a..423b7c0 100755 --- a/Core/Inc/cs4272.h +++ b/Core/Inc/cs4272.h @@ -8,7 +8,9 @@ #ifndef INC_CS4272_H_
#define INC_CS4272_H_
-// cs4272k-czzr 7. REGISTER QUICK REFERENCE
+#include <stdint.h>
+
+/* cs4272k-czzr 7. REGISTER QUICK REFERENCE */
#define MODE_CONTROL_1 0x01
#define DAC_CONTROL 0x02
#define DAC_VOLUME_AND_MIXING_CONTROL 0x03
@@ -20,16 +22,20 @@ #define CS4272_CHIP_ID 0x0
-// set by ncs/ad0 pin
+/* set by ad0 ncs pin */
#define CS4272_I2C_ADDR (0b0010000 << 1)
+#define SAMPLE_RATE 48000
#define BUFFER_SIZE 512
extern volatile int32_t rx_buffer[BUFFER_SIZE];
extern volatile int32_t tx_buffer[BUFFER_SIZE];
+extern volatile float samples[BUFFER_SIZE];
extern const uint8_t CS4272_CONFIG[7];
-uint8_t CS4272_Init();
+uint8_t CS4272_Init(void);
+
+#define INT24_MAX 0x7FFFFF
#endif /* INC_CS4272_H_ */
|
