Files at this revision

API Documentation at this revision

Comitter:
Taisuke Yamada
Date:
Mon Jan 13 23:20:58 2020 +0900
Branch:
switch-to-cmsis-bitops
Parent:
5:bf9087d1671b
Commit message:
Minor macro update

Changed in this revision

AD9850SPI.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r bf9087d1671b -r 8c15ffb18f88 AD9850SPI.cpp
--- a/AD9850SPI.cpp	Fri Jan 10 10:24:50 2020 +0900
+++ b/AD9850SPI.cpp	Mon Jan 13 23:20:58 2020 +0900
@@ -12,7 +12,7 @@
 #endif
 
 #ifndef UINT32_MAX
-#define UINT32_MAX -1U
+#define UINT32_MAX ((uint32_t)-1)
 #endif
 
 #define UINT5_MAX 31
@@ -140,4 +140,4 @@
     _spi.write(buffer, sizeof(buffer), NULL, 0);
     _fq_ud = 1; wait_us(1);
     _fq_ud = 0; wait_us(1);
-}
\ No newline at end of file
+}