Skip to content

Commit

Permalink
SQUASHME: make Travis happy
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaseichinger committed Nov 20, 2014
1 parent 3210ff2 commit 92d64a6
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 15 deletions.
8 changes: 8 additions & 0 deletions cpu/stm32l1/include/cpu-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

#include "stm32l1xx.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* @name Kernel configuration
*
Expand Down Expand Up @@ -68,5 +72,9 @@ void cpu_clock_scale(uint32_t source, uint32_t target, uint32_t *prescale);

#define TRANSCEIVER_BUFFER_SIZE (3)

#ifdef __cplusplus
}
#endif

#endif /* __CPU_CONF_H */
/** @} */
16 changes: 12 additions & 4 deletions cpu/stm32l1/include/hwtimer_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,23 @@
#ifndef HWTIMER_CPU_H_
#define HWTIMER_CPU_H_

#ifdef __cplusplus
extern "C" {
#endif

/**
* @name Hardware timer configuration
* @{
*/
#define HWTIMER_MAXTIMERS (4) /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED (1000000U) /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */
#define HWTIMER_WAIT_OVERHEAD (3)
#define HWTIMER_MAXTIMERS (4) /**< the CPU implementation supports 4 HW timers */
#define HWTIMER_SPEED (1000000U) /**< the HW timer runs with 1MHz */
#define HWTIMER_MAXTICKS (0xFFFFFFFF) /**< 32-bit timer */
#define HWTIMER_WAIT_OVERHEAD (3)
/** @} */

#ifdef __cplusplus
}
#endif

#endif /* HWTIMER_CPU_H_ */
/** @} */
18 changes: 9 additions & 9 deletions cpu/stm32l1/include/stm32l1xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @{
*/

/** @addtogroup stm32l1xx
/** @addtogroup cpu_specific_stm32l1xx
* @{
*/

Expand All @@ -58,7 +58,7 @@
extern "C" {
#endif

/** @addtogroup Library_configuration_section
/** @addtogroup cpu_specific_Library_configuration_section
* @{
*/

Expand Down Expand Up @@ -287,7 +287,7 @@ typedef enum IRQn
// #include "system_stm32l1xx.h"
#include <stdint.h>

/** @addtogroup Exported_types
/** @addtogroup cpu_specific_Exported_types
* @{
*/

Expand Down Expand Up @@ -342,7 +342,7 @@ typedef enum {ERROR = 0, SUCCESS = !ERROR} ErrorStatus;
* @}
*/

/** @addtogroup Peripheral_registers_structures
/** @addtogroup cpu_specific_Peripheral_registers_structures
* @{
*/

Expand Down Expand Up @@ -902,7 +902,7 @@ typedef struct
* @}
*/

/** @addtogroup Peripheral_memory_map
/** @addtogroup cpu_specific_Peripheral_memory_map
* @{
*/

Expand Down Expand Up @@ -997,7 +997,7 @@ typedef struct
* @}
*/

/** @addtogroup Peripheral_declaration
/** @addtogroup cpu_specific_Peripheral_declaration
* @{
*/

Expand Down Expand Up @@ -1077,11 +1077,11 @@ typedef struct
* @}
*/

/** @addtogroup Exported_constants
/** @addtogroup cpu_specific_Exported_constants
* @{
*/

/** @addtogroup Peripheral_Registers_Bits_Definition
/** @addtogroup cpu_specific_Peripheral_Registers_Bits_Definition
* @{
*/

Expand Down Expand Up @@ -6638,7 +6638,7 @@ typedef struct
#include "stm32l1xx_conf.h"
#endif

/** @addtogroup Exported_macro
/** @addtogroup cpu_specific_Exported_macro
* @{
*/

Expand Down
2 changes: 1 addition & 1 deletion cpu/stm32l1/periph/cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

void cpuid_get(void *id)
{
memcpy(id, (void *)(0x1ffff7e8), CPUID_ID_LEN);
memcpy(id, (void *)(0x1ff800d0), CPUID_ID_LEN);
}

/** @} */
1 change: 0 additions & 1 deletion cpu/stm32l1/periph/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int))
/* set auto-reload and prescaler values and load new values */
timer0->ARR = TIMER_0_MAX_VALUE;
timer0->PSC = TIMER_0_PRESCALER * ticks_per_us;
// timer->EGR |= TIM_EGR_UG;

/* configure slave timer1 */
/* get input trigger */
Expand Down
4 changes: 4 additions & 0 deletions cpu/stm32l1/periph/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ int uart_init_blocking(uart_t uart, uint32_t baudrate)
UART_2_PORT_CLKEN();
break;
#endif
default:
return -1;
}

/* uart_configure RX and TX pins, set pin to use alternative function mode */
Expand Down Expand Up @@ -219,6 +221,8 @@ int uart_write(uart_t uart, char data)
dev = UART_2_DEV;
break;
#endif
default:
return -1;
}

if (dev->SR & USART_SR_TXE) {
Expand Down
1 change: 1 addition & 0 deletions dist/tools/licenses/patterns/mcd-st-liberty
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Licensed under MCD-ST Liberty SW License Agreement V2, \(the "License"\); You may not use this file except in compliance with the License\. You may obtain a copy of the License at: http: www\.st\.com software_license_agreement_liberty_v2 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\. See the License for the specific language governing permissions and limitations under the License\.

0 comments on commit 92d64a6

Please sign in to comment.