fix a build error
This commit is contained in:
1 parent
e6929fd3e2
commit
fd07ab48da
2 files changed
+6
-1
No files matched your search
@@ -113,7 +113,12 @@ uint32_t setLoopStacksize(void);
|
||||
|
||||
#define bit(b) (1UL << (b))
|
||||
|
||||
#ifdef NRF_P1
|
||||
#define digitalPinToPort(P) ( ((P) < 32) ? NRF_P0 : NRF_P1 )
|
||||
#else
|
||||
#define digitalPinToPort(P) ( NRF_P0 )
|
||||
#endif
|
||||
|
||||
#define digitalPinToBitMask(P) ( 1 << (P) )
|
||||
//#define analogInPinToBit(P) ( )
|
||||
#define portOutputRegister(port) ( &(port->OUT) )
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
*
|
||||
* @note This function will never return but issue a reset into provided application.
|
||||
*/
|
||||
static inline void bootloader_util_reset(uint32_t start_addr) __attribute__ ((optimize("-fomit-frame-pointer")));
|
||||
static inline void bootloader_util_reset (uint32_t start_addr) __attribute__ ((optimize("-fomit-frame-pointer")));
|
||||
static inline void bootloader_util_reset(uint32_t start_addr)
|
||||
{
|
||||
__asm volatile(
|
||||
|
||||
Reference in new issue
Block a user