aboutsummaryrefslogtreecommitdiff
path: root/examples/io
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-02-27 19:45:38 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-02-27 19:45:38 +0100
commit69a364049a3958396d2d083c660591dad9ec257d (patch)
treee56b1b614890e512726448dad10cb68b3b7b261f /examples/io
parenta2da2debfde1d44338d203aa4d56e485c4bb16ae (diff)
downloadpsn00bsdk-69a364049a3958396d2d083c660591dad9ec257d.tar.gz
Rename some hwregs_c.h and hwregs.a definitions
Diffstat (limited to 'examples/io')
-rw-r--r--examples/io/pads/spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/io/pads/spi.c b/examples/io/pads/spi.c
index 05a0e59..43b5bc3 100644
--- a/examples/io/pads/spi.c
+++ b/examples/io/pads/spi.c
@@ -179,12 +179,12 @@ SPI_Request *SPI_CreateRequest(void) {
}
void SPI_SetPollRate(uint32_t value) {
- TIM_CTRL(2) = 0x0258; // CLK/8 input, IRQ on reload, disable one-shot IRQ
+ TIMER_CTRL(2) = 0x0258; // CLK/8 input, IRQ on reload, disable one-shot IRQ
if (value < 65)
- TIM_RELOAD(2) = 0xffff;
+ TIMER_RELOAD(2) = 0xffff;
else
- TIM_RELOAD(2) = (F_CPU / 8) / value;
+ TIMER_RELOAD(2) = (F_CPU / 8) / value;
}
void SPI_Init(SPI_Callback callback) {