gpio-native: select driver basing on MCU type instead of build target
This commit is contained in:
parent
16038ceba7
commit
7993074a6a
|
|
@ -266,7 +266,7 @@ mk22fn512_inc = ['platform/mcu/CMSIS/Include',
|
|||
'platform/mcu/MK22FN512xxx12',
|
||||
'platform/mcu/MK22FN512xxx12/drivers']
|
||||
|
||||
mk22fn512_def = {}
|
||||
mk22fn512_def = {'MK22FN512xx': ''}
|
||||
|
||||
mk22fn512_src += miosix_cm4f_src
|
||||
mk22fn512_inc += miosix_cm4f_inc
|
||||
|
|
|
|||
|
|
@ -18,10 +18,9 @@
|
|||
#ifndef GPIO_NATIVE_H
|
||||
#define GPIO_NATIVE_H
|
||||
|
||||
#if defined(PLATFORM_MD3x0) || defined(PLATFORM_MDUV3x0) \
|
||||
|| defined(PLATFORM_MD9600) || defined(PLATFORM_MOD17)
|
||||
#if defined(STM32F405xx)
|
||||
#include <gpio_stm32.h>
|
||||
#elif defined(PLATFORM_GD77) || defined(PLATFORM_DM1801)
|
||||
#elif defined(MK22FN512xx)
|
||||
#include <gpio_mk22.h>
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue