diff options
| author | Dave Hylands <dhylands@gmail.com> | 2016-02-12 21:25:00 -0800 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-02-15 10:07:27 +0000 |
| commit | 4b2938a4b0ec6b31691509003cb1eda9458fa2d7 (patch) | |
| tree | 4fb51ef7ae1c066050ef0b7aba719b93317d9cf8 /stmhal/main.c | |
| parent | 9598f36a84e19045e2978ab902e2367dc2fa12d4 (diff) | |
stmhal: Some NETDUINO_PLUS_2 cleanup
- Put the I2C bus on the corect pins
- Add the appropriate board_init to power the shield
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 02dcc7617..329109cd3 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(); |
