File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
targets/TARGET_Atmel/TARGET_SAM_CortexM0P Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 21
21
#include "PeripheralPins.h"
22
22
#include "dac.h"
23
23
24
+ #if DEVICE_ANALOGOUT
25
+
24
26
extern uint8_t g_sys_init ;
25
27
26
28
#define MAX_VAL_12BIT 0x0FFF /*12 Bit DAC for SAML21*/
@@ -119,4 +121,5 @@ const PinMap *analogout_pinmap()
119
121
{
120
122
return PinMap_DAC ;
121
123
}
122
- #endif
124
+
125
+ #endif // DEVICE_ANALOGOUT
Original file line number Diff line number Diff line change @@ -846,6 +846,7 @@ typedef uint64_t U64; //!< 64-bit unsigned integer.
846
846
typedef float F32 ; //!< 32-bit floating-point number.
847
847
typedef double F64 ; //!< 64-bit floating-point number.
848
848
849
+ #if 0
849
850
#define MSB (u16 ) (((U8 *)&(u16))[1]) //!< Most significant byte of \a u16.
850
851
#define LSB (u16 ) (((U8 *)&(u16))[0]) //!< Least significant byte of \a u16.
851
852
@@ -895,6 +896,7 @@ typedef double F64; //!< 64-bit floating-point number.
895
896
#define MSB2 (u32 ) MSB2W(u32) //!< Most significant byte of 3rd rank of \a u32.
896
897
#define MSB1 (u32 ) MSB1W(u32) //!< Most significant byte of 2nd rank of \a u32.
897
898
#define MSB0 (u32 ) MSB0W(u32) //!< Most significant byte of 1st rank of \a u32.
899
+ #endif
898
900
899
901
#if defined(__ICCARM__ )
900
902
#define SHORTENUM __packed
You can’t perform that action at this time.
0 commit comments