Skip to content

Commit 0a64c92

Browse files
committed
stmhal - add led support. Add netduino_plus_2 support
Tweaked a couple of the USB files to compile if neither dev nor host was defined. Tested on netduiono plus 2 and stm32f4discovery boards
1 parent 33bdd21 commit 0a64c92

14 files changed

Lines changed: 434 additions & 32 deletions

File tree

stmhal/boards/NETDUINO_PLUS_2/mpconfigboard.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
#define PYB_LED3 (pin_A10) // Same as Led(1)
3131
#define PYB_LED4 (pin_C13) // Same as Led(2)
3232

33-
#define PYB_OTYPE (GPIO_OType_PP)
33+
#define PYB_OTYPE (GPIO_MODE_OUTPUT_PP)
3434

3535
#define PYB_LED_ON(pin) (pin->gpio->BSRRL = pin->pin_mask)
3636
#define PYB_LED_OFF(pin) (pin->gpio->BSRRH = pin->pin_mask)
3737

38-
#define HSE_VALUE (25000000)

0 commit comments

Comments
 (0)