diff options
Diffstat (limited to 'stmhal/main.c')
-rw-r--r-- | stmhal/main.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 02dcc76174..329109cd3d 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -380,31 +380,6 @@ int main(void) { MICROPY_BOARD_EARLY_INIT(); #endif - //TODO - Move the following to a board_init.c file for the NETDUINO -#if 0 -#if defined(NETDUINO_PLUS_2) - { - GPIO_InitTypeDef GPIO_InitStructure; - GPIO_InitStructure.GPIO_Speed = GPIO_Speed_25MHz; - GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT; - GPIO_InitStructure.GPIO_OType = GPIO_OType_PP; - GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL; - -#if MICROPY_HW_HAS_SDCARD - // Turn on the power enable for the sdcard (PB1) - GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1; - GPIO_Init(GPIOB, &GPIO_InitStructure); - GPIO_WriteBit(GPIOB, GPIO_Pin_1, Bit_SET); -#endif - - // Turn on the power for the 5V on the expansion header (PB2) - GPIO_InitStructure.GPIO_Pin = GPIO_Pin_2; - GPIO_Init(GPIOB, &GPIO_InitStructure); - GPIO_WriteBit(GPIOB, GPIO_Pin_2, Bit_SET); - } -#endif -#endif - // basic sub-system init pendsv_init(); led_init(); |