Split PicoGUS into its own repo

This commit is contained in:
Ian Scott committed 2022-08-28 14:35:00 -06:00
1 parent 0d69a51a9c
commit 7fb04e2a0d
7 files changed
+70 -47

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
.DS_Store
*.EXE
*.OBJ
build
fp-info-cache
PicoGUS-backups
+12 -25
View File
@@ -1,42 +1,29 @@
# PiISA / PiGUS
# PicoGUS
![PiISA Logo](piisa-logo.svg)
![PicoGUS Logo](picogus-logo.svg)
ISA card emulation on the Raspberry Pi Pico's RP2040 microcontroller, and Raspberry Pi 3, 4, and CM4. Initially focusing on [Gravis Ultrasound (GUS)](https://en.wikipedia.org/wiki/Gravis_Ultrasound) sound card emulation.
This is a work in progress in the experimentation phase. It can emulate a GUS and produce sound but things are nowhere near perfect! Please see [the Wiki](https://github.com/polpo/pigus/wiki) for current status.
See/hear it in action on YouTube:
[![Watch the video](https://img.youtube.com/vi/rZopvkDTv08/hqdefault.jpg)](https://youtu.be/rZopvkDTv08)
## For Raspberry Pi Pico:
ISA card emulation on the Raspberry Pi Pico's RP2040 microcontroller. Initially focusing on [Gravis Ultrasound (GUS)](https://en.wikipedia.org/wiki/Gravis_Ultrasound) sound card emulation, hence the name PicoGUS.
![picogus-prototype](https://user-images.githubusercontent.com/1544908/182006174-71a1792d-ac5b-4c2b-8e61-94a05a0ef55c.jpg)
## For "big" Raspberry Pi:
Please see [the Wiki](https://github.com/polpo/picogus/wiki) for current status.
![pigus-prototype](https://user-images.githubusercontent.com/1544908/182006165-61aa58a7-d336-4c86-becf-883b1548bee1.jpg)
Looking for the original project, using Raspberry Pi 3/4? See the [pigus repo](htts://github.com/polpo/pigus).
## Credits
See/hear PicoGUS in action on YouTube:
The Raspberry Pi Pico project uses:
[![Watch the video](https://img.youtube.com/vi/rZopvkDTv08/hqdefault.jpg)](https://youtu.be/rZopvkDTv08)
## Open Source Credits
* [Raspberry Pi Pico C/C++ SDK](https://github.com/raspberrypi/pico-sdk)
* `pico_audio_i2s` from [pico-extras](https://github.com/raspberrypi/pico-extras)
* `stdio_async_uart` from [PicoCart64](https://github.com/kbeckmann/PicoCart64)
* `gus.cpp` from [DOSBox-X](https://github.com/joncampbell123/dosbox-x)
* `gus-x.cpp` adapted from [DOSBox-X](https://github.com/joncampbell123/dosbox-x)
* OPL/AdLib emulation from [rp2040-doom](https://github.com/kilograham/rp2040-doom)
The Raspberry Pi project uses:
* [circle](https://github.com/rsta2/circle)
* [circle-stdlib](https://github.com/smuehlst/circle-stdlib)
* `gus.cpp` from [DOSBox-staging](https://github.com/dosbox-staging/dosbox-staging)
* Initial PCB design and AdLib emulation based on [RPiISA](https://github.com/eigenco/RPiISA)
## License
The hardware portions of this repository (hw/, hw-pico/ directories) are licensed under the CERN OHL version 2, permissive.
The hardware portions of this repository (hw/ directory) are licensed under the CERN OHL version 2, permissive.
The software portions of this repository (sw/, sw-pico/, pgusinit/ directories) are licensed under the GNU GPL version 2.
The software portions of this repository (sw/, pgusinit/ directories) are licensed under the GNU GPL version 2.
+30
View File
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="100%" height="100%" viewBox="0 0 600 68" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;">
<g>
<g transform="matrix(8.18877,0,0,8.18877,-37.8202,-172.698)">
<path d="M21.202,22.331L17.966,22.331L18.25,21.291L21.486,21.291L21.202,22.331Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-41.8202,-172.698)">
<path d="M50.255,21.295L56.674,21.295L56.377,22.329L52.283,22.329L51.867,22.339L51.503,22.366L51.187,22.415L51.045,22.448L50.913,22.488L50.791,22.535L50.677,22.589L50.571,22.651L50.473,22.722L50.381,22.801L50.295,22.888L50.215,22.986L50.139,23.093L49.999,23.339L49.871,23.629L49.748,23.966L49.626,24.355L49.04,26.486L49.012,26.6L48.992,26.708L48.98,26.812L48.976,26.91L48.979,27.003L48.989,27.092L49.005,27.175L49.027,27.255L49.055,27.329L49.087,27.4L49.125,27.466L49.166,27.528L49.211,27.585L49.26,27.639L49.312,27.689L49.366,27.736L49.422,27.778L49.48,27.818L49.539,27.853L49.599,27.886L49.721,27.941L49.84,27.985L49.955,28.018L50.062,28.041L50.157,28.054L50.237,28.059L51.584,28.06L52.384,25.229L55.623,25.228L54.566,29.137L53.795,29.126L52.105,29.124L49.66,29.136L49.326,29.137L48.975,29.133L48.612,29.12L48.244,29.094L47.877,29.051L47.696,29.022L47.518,28.988L47.344,28.948L47.174,28.902L47.009,28.849L46.851,28.789L46.699,28.721L46.555,28.645L46.42,28.561L46.294,28.467L46.178,28.364L46.073,28.252L45.98,28.129L45.9,27.995L45.833,27.85L45.78,27.694L45.743,27.525L45.721,27.344L45.716,27.15L45.729,26.943L45.76,26.722L45.81,26.486L46.543,23.689L46.625,23.408L46.724,23.143L46.839,22.893L46.971,22.659L47.121,22.442L47.291,22.242L47.384,22.148L47.481,22.059L47.584,21.974L47.693,21.894L47.807,21.819L47.926,21.748L48.051,21.682L48.182,21.621L48.319,21.565L48.463,21.515L48.612,21.469L48.768,21.428L49.098,21.362L49.456,21.318L49.841,21.295L50.255,21.295Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(1,0,0,1,-1,0)">
<path d="M252.153,49.096L252.073,48.371L252.048,47.607L252.081,46.803L252.177,45.957L252.338,45.069L252.568,44.138L254.027,38.724L254.643,36.474L255.237,34.505L255.847,32.797L256.171,32.035L256.513,31.332L256.88,30.685L257.276,30.092L257.705,29.551L258.174,29.06L258.686,28.615L259.246,28.215L259.86,27.858L260.533,27.541L261.27,27.262L262.074,27.019L262.952,26.809L263.909,26.63L264.949,26.48L266.077,26.356L268.617,26.18L271.569,26.081L274.973,26.043L275.976,26.043L278.015,17.372L278.015,17.372L275.976,26.043L275.972,26.06L277.045,26.053L288.082,26.057L288.737,26.099L289.514,26.209L290.387,26.395L291.327,26.663L292.307,27.021L293.3,27.477L293.793,27.743L294.278,28.036L294.753,28.357L295.214,28.707L295.658,29.086L296.081,29.496L296.479,29.937L296.85,30.411L297.189,30.917L297.494,31.458L297.761,32.034L297.986,32.646L298.167,33.294L298.299,33.98L298.379,34.705L298.404,35.469L298.371,36.274L298.275,37.119L298.114,38.007L297.884,38.938L296.423,44.36L295.805,46.621L295.209,48.604L294.597,50.327L294.271,51.097L293.927,51.809L293.559,52.465L293.161,53.067L292.73,53.618L292.26,54.119L291.747,54.574L291.185,54.983L290.569,55.349L289.894,55.676L289.156,55.963L288.35,56.215L287.471,56.433L286.513,56.62L285.472,56.777L284.343,56.907L281.801,57.094L278.848,57.199L275.443,57.239L274.768,57.239L273.406,57.23L273.396,57.239L272.604,57.239L262.37,57.019L261.715,56.977L260.937,56.867L260.065,56.681L259.125,56.413L258.144,56.055L257.152,55.6L256.659,55.333L256.173,55.04L255.698,54.719L255.237,54.369L254.794,53.99L254.371,53.58L253.973,53.139L253.602,52.665L253.263,52.159L252.958,51.618L252.691,51.042L252.466,50.43L252.285,49.782L252.153,49.096ZM225.712,46.066L226.123,44.138L228,36.969L228.677,34.675L229.483,32.504L230.423,30.458L231.506,28.542L232.74,26.762L234.131,25.121L234.888,24.355L235.688,23.624L236.531,22.931L237.418,22.276L238.35,21.659L239.328,21.081L240.354,20.542L241.427,20.043L242.55,19.584L243.722,19.167L244.945,18.791L246.22,18.457L248.929,17.918L251.856,17.555L255.01,17.372L258.397,17.372L278.015,17.372L278.015,17.369L285.615,17.334L290.6,17.296L292.218,17.271L292.806,17.242L295.535,17.228L298.413,17.261L301.386,17.371L304.401,17.587L307.405,17.937L308.885,18.171L310.343,18.45L311.77,18.777L313.162,19.156L314.51,19.59L315.808,20.083L317.049,20.638L318.228,21.26L319.336,21.951L320.368,22.716L321.316,23.558L322.175,24.481L322.936,25.487L323.594,26.582L324.142,27.768L324.573,29.05L324.88,30.43L325.057,31.912L325.097,33.501L324.994,35.199L324.74,37.01L324.328,38.938L322.452,46.107L321.774,48.4L320.969,50.572L320.029,52.618L318.946,54.534L317.712,56.314L316.321,57.955L315.563,58.721L314.764,59.452L313.921,60.145L313.034,60.8L312.101,61.417L311.123,61.995L310.097,62.534L309.024,63.033L307.902,63.492L306.729,63.909L305.506,64.285L304.231,64.619L301.523,65.158L298.595,65.521L295.442,65.705L292.055,65.704L273.363,65.705L273.363,65.706L265.391,65.733L260.03,65.777L257.645,65.834L254.917,65.848L252.039,65.815L249.068,65.705L246.05,65.489L243.047,65.139L241.566,64.905L240.109,64.626L238.681,64.299L237.29,63.92L235.942,63.486L234.644,62.993L233.402,62.438L232.224,61.816L231.115,61.125L230.084,60.36L229.135,59.518L228.277,58.595L227.516,57.589L226.858,56.494L226.31,55.308L225.879,54.026L225.571,52.646L225.394,51.164L225.354,49.575L225.458,47.877L225.496,47.607L225.712,46.066Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-39.8202,-172.698)">
<path d="M25.635,23.211L32.054,23.211L31.757,24.244L27.663,24.244L27.247,24.249L26.887,24.262L26.576,24.285L26.438,24.301L26.311,24.32L26.194,24.343L26.087,24.369L25.988,24.4L25.898,24.435L25.816,24.475L25.741,24.52L25.672,24.57L25.609,24.625L25.552,24.687L25.499,24.754L25.451,24.827L25.406,24.908L25.364,24.994L25.324,25.089L25.249,25.299L25.176,25.541L25.101,25.817L24.923,26.479L24.895,26.593L24.875,26.701L24.863,26.805L24.859,26.903L24.862,26.996L24.872,27.085L24.888,27.169L24.91,27.248L24.938,27.322L24.97,27.393L25.008,27.459L25.049,27.521L25.094,27.579L25.143,27.632L25.195,27.682L25.249,27.729L25.305,27.772L25.363,27.811L25.422,27.847L25.482,27.879L25.604,27.935L25.723,27.978L25.838,28.011L25.945,28.034L26.04,28.047L26.12,28.052L27.467,28.053L30.707,28.052L30.449,29.13L29.678,29.119L27.989,29.118L25.543,29.129L25.209,29.131L24.858,29.126L24.495,29.113L24.127,29.087L23.76,29.044L23.579,29.015L23.401,28.981L23.227,28.941L23.057,28.895L22.892,28.842L22.734,28.782L22.582,28.714L22.438,28.638L22.303,28.554L22.177,28.46L22.061,28.358L21.956,28.245L21.863,28.122L21.783,27.988L21.716,27.843L21.663,27.687L21.626,27.518L21.604,27.337L21.599,27.143L21.612,26.936L21.643,26.715L21.693,26.479L21.923,25.604L22.005,25.324L22.104,25.058L22.218,24.809L22.351,24.575L22.501,24.357L22.671,24.157L22.764,24.063L22.861,23.974L22.964,23.889L23.073,23.809L23.187,23.734L23.306,23.663L23.431,23.598L23.562,23.537L23.699,23.481L23.843,23.43L23.992,23.384L24.148,23.343L24.478,23.277L24.836,23.233L25.221,23.211L25.635,23.211Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-37.8202,-172.698)">
<path d="M19.348,29.117L16.118,29.117L17.728,23.207L20.963,23.207L19.348,29.117Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-36.8202,-172.698)">
<path d="M14.228,21.284L14.547,21.297L14.834,21.322L15.092,21.359L15.319,21.41L15.517,21.475L15.606,21.513L15.687,21.555L15.761,21.6L15.828,21.65L15.888,21.703L15.942,21.761L15.988,21.823L16.028,21.889L16.062,21.96L16.089,22.035L16.109,22.114L16.123,22.198L16.131,22.287L16.132,22.381L16.117,22.582L16.077,22.804L15.582,24.612L15.554,24.723L15.518,24.827L15.476,24.924L15.427,25.016L15.372,25.102L15.312,25.182L15.246,25.257L15.175,25.327L15.1,25.391L15.02,25.451L14.935,25.506L14.847,25.556L14.756,25.602L14.661,25.644L14.564,25.683L14.464,25.717L14.362,25.748L14.258,25.775L14.046,25.821L13.83,25.856L13.613,25.882L13.397,25.899L13.185,25.91L12.784,25.919L12.787,25.926L9.856,25.926L9.601,25.226L11.193,25.229L11.363,25.222L11.446,25.217L11.528,25.208L11.608,25.196L11.686,25.179L11.763,25.156L11.8,25.142L11.837,25.126L11.873,25.108L11.909,25.088L11.945,25.066L11.979,25.042L12.013,25.016L12.047,24.986L12.079,24.954L12.111,24.92L12.143,24.882L12.173,24.842L12.203,24.798L12.232,24.751L12.261,24.7L12.288,24.646L12.315,24.589L12.341,24.528L12.771,23.046L12.805,22.945L12.819,22.898L12.831,22.853L12.84,22.81L12.846,22.769L12.85,22.73L12.851,22.694L12.849,22.658L12.845,22.625L12.837,22.594L12.827,22.565L12.813,22.537L12.796,22.511L12.775,22.487L12.751,22.465L12.723,22.444L12.692,22.425L12.657,22.408L12.618,22.392L12.574,22.378L12.527,22.365L12.476,22.354L12.42,22.344L12.36,22.336L12.295,22.329L12.226,22.324L12.152,22.32L11.989,22.316L11.806,22.317L10.266,22.32L8.426,29.124L5.185,29.124L7.31,21.292L13.494,21.292L13.877,21.283L14.228,21.284Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-41.8202,-172.698)">
<path d="M78.047,21.278L77.74,22.318L73.161,22.32L73.071,22.32L72.985,22.323L72.905,22.327L72.829,22.332L72.757,22.34L72.689,22.349L72.626,22.359L72.567,22.371L72.512,22.385L72.46,22.4L72.412,22.416L72.367,22.433L72.325,22.452L72.287,22.471L72.252,22.492L72.219,22.514L72.189,22.537L72.161,22.561L72.136,22.586L72.113,22.611L72.092,22.637L72.073,22.664L72.056,22.692L72.04,22.72L72.026,22.749L72.013,22.778L71.99,22.838L71.97,22.899L71.953,22.961L71.729,23.764L71.713,23.827L71.701,23.888L71.691,23.945L71.685,23.999L71.681,24.051L71.681,24.099L71.684,24.145L71.689,24.189L71.697,24.229L71.708,24.268L71.722,24.304L71.739,24.337L71.758,24.368L71.78,24.398L71.805,24.425L71.832,24.45L71.862,24.473L71.894,24.494L71.929,24.513L71.967,24.531L72.006,24.547L72.048,24.562L72.139,24.586L72.239,24.605L72.348,24.62L72.466,24.63L72.591,24.637L73.011,24.631L73.934,24.632L75.274,24.637L75.381,24.633L75.485,24.634L75.586,24.637L75.683,24.645L75.778,24.656L75.869,24.67L75.958,24.688L76.042,24.71L76.123,24.735L76.201,24.763L76.274,24.796L76.344,24.832L76.41,24.871L76.471,24.914L76.529,24.961L76.582,25.011L76.631,25.065L76.676,25.123L76.715,25.184L76.751,25.249L76.781,25.317L76.806,25.389L76.827,25.465L76.842,25.544L76.852,25.628L76.857,25.714L76.857,25.805L76.851,25.899L76.839,25.997L76.822,26.098L76.799,26.204L76.77,26.313L76.366,27.786L76.336,27.88L76.301,27.969L76.262,28.055L76.219,28.136L76.172,28.214L76.121,28.288L76.066,28.358L76.008,28.424L75.947,28.487L75.883,28.547L75.816,28.603L75.746,28.656L75.599,28.752L75.445,28.835L75.284,28.907L75.117,28.967L74.948,29.017L74.777,29.057L74.605,29.087L74.435,29.109L74.268,29.122L74.105,29.128L66.997,29.128L67.272,28.054L72.057,28.058L72.167,28.053L72.272,28.043L72.371,28.027L72.419,28.017L72.465,28.006L72.51,27.993L72.554,27.979L72.597,27.963L72.638,27.945L72.679,27.926L72.718,27.905L72.756,27.883L72.794,27.859L72.83,27.833L72.865,27.805L72.9,27.775L72.933,27.743L72.966,27.71L72.997,27.674L73.028,27.637L73.058,27.597L73.088,27.555L73.116,27.512L73.171,27.418L73.224,27.315L73.274,27.203L73.473,26.5L73.505,26.403L73.517,26.356L73.527,26.31L73.535,26.265L73.541,26.221L73.544,26.178L73.544,26.137L73.543,26.096L73.538,26.058L73.532,26.02L73.522,25.984L73.51,25.949L73.496,25.916L73.479,25.885L73.459,25.855L73.436,25.827L73.411,25.8L73.383,25.775L73.352,25.752L73.318,25.731L73.281,25.712L73.242,25.695L73.199,25.679L73.154,25.666L73.105,25.655L73.054,25.646L72.999,25.639L72.942,25.634L72.881,25.632L72.817,25.632L72.75,25.635L71.655,25.639L70.904,25.638L70.565,25.634L69.82,25.635L69.605,25.624L69.391,25.599L69.286,25.581L69.182,25.558L69.082,25.529L68.985,25.494L68.893,25.452L68.806,25.404L68.724,25.347L68.649,25.283L68.581,25.209L68.521,25.127L68.469,25.034L68.427,24.931L68.395,24.818L68.373,24.692L68.363,24.555L68.365,24.405L68.38,24.242L68.408,24.065L68.451,23.874L68.508,23.668L68.857,22.335L68.907,22.229L68.962,22.131L69.021,22.039L69.084,21.954L69.151,21.876L69.222,21.804L69.297,21.737L69.376,21.677L69.46,21.622L69.548,21.572L69.735,21.487L69.94,21.42L70.162,21.368L70.401,21.33L70.657,21.304L70.93,21.287L71.221,21.278L72.563,21.277L78.047,21.278Z" style="fill:rgb(83,82,193);"/>
</g>
<g transform="matrix(8.18877,0,0,8.18877,-41.8202,-172.698)">
<path d="M61.247,21.286L61.448,21.286L60.377,25.22L60.378,25.22L60.032,26.477L60.004,26.591L59.985,26.699L59.973,26.802L59.969,26.901L59.972,26.994L59.982,27.083L59.998,27.166L60.02,27.246L60.048,27.32L60.08,27.391L60.117,27.457L60.159,27.518L60.204,27.576L60.253,27.63L60.304,27.68L60.359,27.727L60.415,27.769L60.473,27.808L60.532,27.844L60.592,27.877L60.713,27.932L60.833,27.976L60.948,28.009L61.054,28.032L61.149,28.045L61.229,28.05L62.577,28.051L63.215,25.791L64.44,21.294L67.676,21.294L66.604,25.22L66.615,25.22L65.558,29.128L65.554,29.127L65.54,29.126L65.489,29.124L65.406,29.122L65.296,29.121L62.308,29.121L62.309,29.117L61.137,29.121L60.781,29.124L60.652,29.127L60.319,29.128L59.968,29.124L59.605,29.111L59.236,29.084L58.87,29.042L58.689,29.013L58.511,28.979L58.337,28.939L58.167,28.893L58.002,28.84L57.844,28.78L57.692,28.712L57.548,28.636L57.413,28.551L57.287,28.458L57.171,28.355L57.066,28.243L56.973,28.12L56.893,27.986L56.826,27.841L56.773,27.685L56.736,27.516L56.714,27.335L56.709,27.141L56.722,26.934L56.753,26.712L56.803,26.477L57.535,23.679L57.55,23.625L57.565,23.571L57.581,23.518L57.597,23.465L57.613,23.413L57.631,23.362L57.649,23.311L57.667,23.26L58.202,21.294L60.645,21.294L60.79,21.288L60.938,21.284L61.091,21.284L61.247,21.286Z" style="fill:rgb(83,82,193);"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 14 KiB

+21 -21
View File
@@ -7,13 +7,13 @@ set(CMAKE_CXX_STANDARD 17)
# Initialise pico_sdk from installed location
# (note this can come from environment, CMake cache etc)
set(PICO_SDK_PATH "/Users/ian/src/pico/pico-sdk")
set(PICO_SDK_PATH "${CMAKE_SOURCE_DIR}/../../pico/pico-sdk")
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
include(pico_extras_import.cmake)
project(sw-pico C CXX ASM)
project(picogus C CXX ASM)
# set(PICO_DEOPTIMIZED_DEBUG "1")
set(CMAKE_BUILD_TYPE "Release")
@@ -27,9 +27,9 @@ set(PROJECT_TYPE "GUS")
pico_sdk_init()
# Add executable. Default name is the project name, version 0.1
add_executable(sw-pico sw-pico.cpp)
add_executable(picogus picogus.cpp)
target_compile_definitions(sw-pico PRIVATE
target_compile_definitions(picogus PRIVATE
# compile time configuration of I2S
# PICO_AUDIO_I2S_MONO_INPUT=1
USE_AUDIO_I2S=1
@@ -44,24 +44,24 @@ target_compile_definitions(sw-pico PRIVATE
)
if(PROJECT_TYPE STREQUAL "GUS")
target_sources(sw-pico PRIVATE gusplay.cpp pico_pic.cpp)
target_compile_definitions(sw-pico PRIVATE
target_sources(picogus PRIVATE gusplay.cpp pico_pic.cpp)
target_compile_definitions(picogus PRIVATE
SOUND_GUS=1
PSRAM=1
# TEST_PSRAM=1
USE_ALARM=1
USE_SPINLOCK=1
)
pico_generate_pio_header(sw-pico ${CMAKE_CURRENT_LIST_DIR}/psram_spi.pio)
pico_generate_pio_header(picogus ${CMAKE_CURRENT_LIST_DIR}/psram_spi.pio)
endif()
if(PROJECT_TYPE STREQUAL "OPL")
target_sources(sw-pico PRIVATE adlib.cpp)
target_sources(picogus PRIVATE adlib.cpp)
target_link_libraries(
sw-pico
picogus
opl
)
target_compile_definitions(sw-pico PRIVATE
target_compile_definitions(picogus PRIVATE
SOUND_OPL=1
USE_EMU8950_OPL=1
)
@@ -69,20 +69,20 @@ if(PROJECT_TYPE STREQUAL "OPL")
endif()
pico_set_program_name(sw-pico "sw-pico")
pico_set_program_version(sw-pico "0.1")
pico_set_program_name(picogus "picogus")
pico_set_program_version(picogus "0.1")
pico_enable_stdio_uart(sw-pico 0)
pico_enable_stdio_usb(sw-pico 0)
pico_enable_stdio_semihosting(sw-pico 0)
pico_enable_stdio_uart(picogus 0)
pico_enable_stdio_usb(picogus 0)
pico_enable_stdio_semihosting(picogus 0)
pico_generate_pio_header(sw-pico ${CMAKE_CURRENT_LIST_DIR}/isa_io.pio)
pico_generate_pio_header(picogus ${CMAKE_CURRENT_LIST_DIR}/isa_io.pio)
add_subdirectory(stdio_async_uart)
# Add the standard library to the build
target_link_libraries(
sw-pico
picogus
pico_stdlib
pico_multicore
pico_audio_i2s
@@ -92,14 +92,14 @@ target_link_libraries(
# Add any user requested libraries
target_link_libraries(
sw-pico
picogus
stdio_async_uart
)
pico_add_extra_outputs(sw-pico)
pico_add_extra_outputs(picogus)
add_custom_target(
program
DEPENDS sw-pico
COMMAND openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -c "program sw-pico.elf verify reset exit"
DEPENDS picogus
COMMAND openocd -f interface/picoprobe.cfg -f target/rp2040.cfg -c "program picogus.elf verify reset exit"
)
+1 -1
View File
@@ -46,7 +46,7 @@
*/
#include "pico_pic.h"
#include "gus.h"
#include "gus-staging.h"
extern Gus* gus;
View File
File renamed without changes.
View File
File renamed without changes.