Xiang Xiao
6a3c2aded6
Fix wait loop and void cast ( #24 )
...
* Simplify EINTR/ECANCEL error handling
1. Add semaphore uninterruptible wait function
2 .Replace semaphore wait loop with a single uninterruptible wait
3. Replace all sem_xxx to nxsem_xxx
* Unify the void cast usage
1. Remove void cast for function because many place ignore the returned value witout cast
2. Replace void cast for variable with UNUSED macro
2020-01-02 10:54:43 -06:00
Daniel Pereira Volpato
54d6a0768c
boards/arm/stm32f0l0g0/: Fix issues noted by nxstyle.
2019-12-20 13:07:31 -06:00
Guillherme Amaral
b9638de388
boards/arm/stm32f0l0g0/nucleo-g070rb: Enable I2C.
2019-12-20 13:04:34 -06:00
Guillherme Amaral
eeed40aa0c
arch/arm/src/stm32f0l0g0/ and boards/arm/stm32f0l0g0/nucleo-g070rb/include/board.h: Add I2C pinmap. In Kconfig select I2C2 for this part. Update I2C pin definitions in board.h.
2019-12-20 13:02:13 -06:00
Guillherme Amaral
15f358d6a9
arch/arm/src/stm32f0l0g0: Fix PWM on TIM16 not working: Adjust TIM registers, Add pins available for mapping TIM14-17, CCMR2 registers was being handled for TIMs who do not have it, and Fix PWM frequency being doubled when in center-aligned mode.
2019-12-02 09:14:56 -06:00
Gregory Nutt
e2976c5b4e
boards/../stm32_appinit.c: Handle cases where 'OK' is not defined.
2019-11-05 07:47:12 -06:00
Gregory Nutt
7218f6431c
boards/arm/stm32f0l0g0/nucleo-g070rb/src/stm32_boot.c: Fix some erroneous conditional compilation in board_late_initialize().
2019-11-04 14:16:43 -06:00
Daniel Pereira Volpato
4c5cbdfae3
boards/arm/stm32f0l0g0/nucleo-g070rb: boards/arm/stm32f0l0g0/nucleo-g070rb: Add button driver support, Add driver support. Add GPIO example. Includes fixes to the GPIO driver support from Guillherme Amaral <gvr@certi.org.br>.
2019-11-04 14:11:36 -06:00
Daniel Pereira Volpato
1f46e294a3
boards/arm/stm32f0l0g0/nucleo-g070rb: Add PWM support and GPIO_TIM3_* mappings
...
boards/arm/stm32f0l0g0/nucleo-g070rb/configs/nsh: Enable PWM example
2019-10-17 12:06:10 -06:00
Daniel P. Volpato
0142dd96a2
Add files that were supposed to be included as part of 0d1934a740
.
2019-10-11 14:47:53 +08:00
Daniel Pereira Volpato
f800529f67
boards/arm/stm32f0l0g0/nucleo-g070rb/include/board.h: Add TIMx clock frequencies
...
boards/arm/stm32f0l0g0/nucleo-g070rb: Enable basic timers
2019-10-07 22:10:32 -06:00
Daniel Pereira Volpato
50e34d50b6
boards/arm/stm32f0l0g0/nucleo-g070rb/include/board.hboards/arm/stm32f0l0g0/nucleo-g070rb: Enable PWR peripheral and increase sysclk to max. frequency. SYSCLK can be increased now that VOS and flash wait states are properly configured.
2019-09-17 11:32:51 -06:00
Daniel Pereira Volpato
4737fd7497
boards/arm/stm32f0l0g0/nucleo-g070rb/scripts/ld.script: Fix .ARM.exidx section overlap with .data
2019-09-17 11:23:53 -06:00
Daniel Pereira Volpato
d78e60d18e
boards/arm/stm32f0l0g0/nucleo-g070rb: Initial support for board STM32 NUCLEO-G070RB, including NSH config
2019-09-17 11:20:26 -06:00