With:
- LED control
- UART
- PDM out
- square wave generator (DMA to PDM out (was it really necessary?))
- sample program that plays a square wave from UART values
This commit is contained in:
Paul Mathieu
2021-03-13 15:50:25 -08:00
parent 75b5488b8d
commit 14dba00fd0
7 changed files with 510 additions and 0 deletions

15
dsp/sys.h Normal file
View File

@@ -0,0 +1,15 @@
#pragma once
#include "led.h"
#include "uart.h"
#include "wave.h"
#define LED0_BASE 0xc000
#define UART0_BASE 0xc010
#define PDMOUT0_BASE 0xc020
#define SQUARE0_BASE 0xc030
#define led0 ((struct led*) LED0_BASE)
#define uart0 ((struct uart*) UART0_BASE)
#define pdmout0 ((struct pdmout*) PDMOUT0_BASE)
#define square0 ((struct square*) SQUARE0_BASE)