mirror of https://github.com/ARMmbed/mbed-os.git
commit
be141acdd0
|
@ -148,6 +148,8 @@ typedef enum {
|
|||
LED3 = PA_5,
|
||||
LED4 = PA_5,
|
||||
USER_BUTTON = PC_13,
|
||||
SERIAL_TX = PA_2,
|
||||
SERIAL_RX = PA_3,
|
||||
USBTX = PA_2,
|
||||
USBRX = PA_3,
|
||||
I2C_SCL = PB_8,
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
#include "pinmap.h"
|
||||
#include "PortNames.h"
|
||||
#include "error.h"
|
||||
|
||||
// Enable GPIO clock and return GPIO base address
|
||||
|
|
|
@ -138,6 +138,8 @@ typedef enum {
|
|||
LED3 = PA_5,
|
||||
LED4 = PA_5,
|
||||
USER_BUTTON = PC_13,
|
||||
SERIAL_TX = PA_2,
|
||||
SERIAL_RX = PA_3,
|
||||
USBTX = PA_2,
|
||||
USBRX = PA_3,
|
||||
I2C_SCL = PB_8,
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
#include "pinmap.h"
|
||||
#include "PortNames.h"
|
||||
#include "error.h"
|
||||
|
||||
// Alternate-function mapping
|
||||
|
|
|
@ -131,9 +131,9 @@ typedef enum {
|
|||
D8 = PA_9,
|
||||
D9 = PC_7,
|
||||
D10 = PB_6,
|
||||
D11 = PA_7,
|
||||
D12 = PA_6,
|
||||
D13 = PA_5,
|
||||
D11 = PB_15,
|
||||
D12 = PB_14,
|
||||
D13 = PB_13,
|
||||
D14 = PB_9,
|
||||
D15 = PB_8,
|
||||
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
#include "pinmap.h"
|
||||
#include "PortNames.h"
|
||||
#include "error.h"
|
||||
|
||||
// Enable GPIO clock and return GPIO base address
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
#include "pinmap.h"
|
||||
#include "PortNames.h"
|
||||
#include "error.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ static const PinMap PinMap_PWM[] = {
|
|||
{PC_6, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH1
|
||||
{PC_7, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH2
|
||||
{PC_8, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH3
|
||||
{PC_9, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH3
|
||||
{PC_9, PWM_3, STM_PIN_DATA(STM_MODE_AF_PP, GPIO_PULLUP, GPIO_AF2_TIM3)}, // TIM3_CH4
|
||||
|
||||
{NC, NC, 0}
|
||||
};
|
||||
|
@ -189,7 +189,6 @@ void pwmout_write(pwmout_t* obj, float value) {
|
|||
case PB_8:
|
||||
case PB_10:
|
||||
case PC_8:
|
||||
case PC_9:
|
||||
channel = TIM_CHANNEL_3;
|
||||
break;
|
||||
// Channels 3N
|
||||
|
@ -203,6 +202,7 @@ void pwmout_write(pwmout_t* obj, float value) {
|
|||
case PA_11:
|
||||
//case PB_1:
|
||||
case PB_9:
|
||||
case PC_9:
|
||||
channel = TIM_CHANNEL_4;
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
*******************************************************************************
|
||||
*/
|
||||
#include "pinmap.h"
|
||||
#include "PortNames.h"
|
||||
#include "error.h"
|
||||
|
||||
// Enable GPIO clock and return GPIO base address
|
||||
|
|
Loading…
Reference in New Issue