wiring digital speed optimization
Уменьшено время выполнения функций digitalRead/Write/Toggle для всех плат
This commit was merged in pull request #15.
This commit is contained in:
1 parent
0adc8293d7
commit
1aaf8c59ae
11 files changed
+146
-160
No files matched your search
@@ -65,7 +65,7 @@ static void __attribute__((noinline, section(".ram_text"))) mik32Show(GPIO_TypeD
|
||||
// not support 400khz
|
||||
if (!is800KHz) return;
|
||||
|
||||
if ((m_port != NULL) && (m_pin != NC))
|
||||
if ((m_port != NULL) && (m_pin != NOT_A_PIN))
|
||||
{
|
||||
volatile uint32_t* set = &m_port->SET;
|
||||
volatile uint32_t* clr = &m_port->CLEAR;
|
||||
|
||||
Reference in new issue
Block a user