Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cnlohr/ch32fun
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 877ad7ce18fafafda670b1de32243a64ec094df3
Choose a base ref
..
head repository: cnlohr/ch32fun
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 17ace987e2b207bbc395841b3831a770ba52908a
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 ch32fun/ch32fun.h
2 changes: 1 addition & 1 deletion ch32fun/ch32fun.h
Original file line number Diff line number Diff line change
@@ -839,7 +839,7 @@ extern "C" {
#define GPIO_ResetBits(pin) { if(pin & PB) GPIOB_ResetBits(pin); else GPIOA_ResetBits(pin); }
#define GPIO_SetBits(pin) { if(pin & PB) GPIOB_SetBits(pin); else GPIOA_SetBits(pin); }
#define GPIO_InverseBits(pin) { if(pin & PB) GPIOB_InverseBits(pin); else GPIOA_InverseBits(pin); }
#define funDigitalRead(pin) ( (pin & PB) ? GPIOB_ReadPortPin(pin) : GPIOB_ReadPortPin(pin) )
#define funDigitalRead(pin) ( (pin & PB) ? GPIOB_ReadPortPin(pin) : GPIOA_ReadPortPin(pin) )
#define funDigitalWrite( pin, value ) { if(value==FUN_HIGH){GPIO_SetBits(pin);} else if(value==FUN_LOW){GPIO_ResetBits(pin);} }
typedef enum
{