mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 19:50:30 +01:00
all: Prune trailing whitespace.
Prune trailing whitespace across the whole project (almost), done
automatically with:
grep -IUrl --color "[[:blank:]]$" --exclude-dir=.git --exclude=*.exp |\
xargs sed -i 's/[[:space:]]*$//'
Exceptions:
- Skip third-party code in lib/ and drivers/cc3100/
- Skip generated code in bluetooth_init_cc2564C_1.5.c
- Preserve command output whitespace in docs, eg:
docs/esp8266/tutorial/repl.rst
Signed-off-by: Phil Howard <phil@gadgetoid.com>
This commit is contained in:
committed by
Damien George
parent
decf8e6a8b
commit
dda9b9c6da
@@ -96,7 +96,7 @@ void HAL_SystemInit (void) {
|
||||
|
||||
void HAL_SystemDeInit (void) {
|
||||
}
|
||||
|
||||
|
||||
void HAL_IncrementTick(void) {
|
||||
HAL_tickCount++;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ GPIOBaseValid(unsigned long ulPort)
|
||||
return((ulPort == GPIOA0_BASE) ||
|
||||
(ulPort == GPIOA1_BASE) ||
|
||||
(ulPort == GPIOA2_BASE) ||
|
||||
(ulPort == GPIOA3_BASE) ||
|
||||
(ulPort == GPIOA3_BASE) ||
|
||||
(ulPort == GPIOA4_BASE));
|
||||
}
|
||||
#else
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#define GPIOA1_BASE 0x40005000
|
||||
#define GPIOA2_BASE 0x40006000
|
||||
#define GPIOA3_BASE 0x40007000
|
||||
#define GPIOA4_BASE 0x40024000
|
||||
#define GPIOA4_BASE 0x40024000
|
||||
#define UARTA0_BASE 0x4000C000
|
||||
#define UARTA1_BASE 0x4000D000
|
||||
#define I2CA0_BASE 0x40020000
|
||||
|
||||
@@ -116,8 +116,8 @@ extern "C"
|
||||
#define PIN_MODE_14 0x0000000E
|
||||
#define PIN_MODE_15 0x0000000F
|
||||
// Note : PIN_MODE_255 is a dummy define for pinmux utility code generation
|
||||
// PIN_MODE_255 should never be used in any user code.
|
||||
#define PIN_MODE_255 0x000000FF
|
||||
// PIN_MODE_255 should never be used in any user code.
|
||||
#define PIN_MODE_255 0x000000FF
|
||||
|
||||
//*****************************************************************************
|
||||
// Macros that can be used with PinDirModeSet() and returned from
|
||||
|
||||
@@ -189,8 +189,8 @@ unsigned char ulRstReg;
|
||||
#define PRCM_SSPI 0x00000013
|
||||
#define PRCM_I2CA0 0x00000014
|
||||
// Note : PRCM_ADC is a dummy define for pinmux utility code generation
|
||||
// PRCM_ADC should never be used in any user code.
|
||||
#define PRCM_ADC 0x000000FF
|
||||
// PRCM_ADC should never be used in any user code.
|
||||
#define PRCM_ADC 0x000000FF
|
||||
|
||||
//*****************************************************************************
|
||||
// User bits in the PRCM persistent registers
|
||||
|
||||
@@ -762,7 +762,7 @@ SPIConfigSetExpClk(unsigned long ulBase,unsigned long ulSPIClk,
|
||||
// Enable software control Chip Select, Init delay
|
||||
// and 3-pin mode
|
||||
//
|
||||
ulRegData |= (((ulConfig >> 24) | ulMode) & 0xFF);
|
||||
ulRegData |= (((ulConfig >> 24) | ulMode) & 0xFF);
|
||||
|
||||
//
|
||||
// Write the configuration
|
||||
|
||||
Reference in New Issue
Block a user