Fix compilation error for MKS Robin (#13506)

This commit is contained in:
Alexander Gavrilenko
2019-03-29 20:40:24 +03:00
committed by Scott Lahteine
parent c6dbe6e9d6
commit 6d9aaca082
6 changed files with 26 additions and 7 deletions

View File

@ -130,6 +130,10 @@ void HAL_init();
#define analogInputToDigitalPin(p) (p)
#endif
#ifndef digitalPinHasPWM
#define digitalPinHasPWM(P) (PIN_MAP[P].timer_device != NULL)
#endif
#define CRITICAL_SECTION_START uint32_t primask = __get_primask(); (void)__iCliRetVal()
#define CRITICAL_SECTION_END if (!primask) (void)__iSeiRetVal()
#define ISRS_ENABLED() (!__get_primask())