[riot-commits] [RIOT-OS/RIOT] ed5f08: periph/timer: always return 0 for success

benpicco noreply at github.com
Tue Sep 17 23:04:47 CEST 2019


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: ed5f085b306ec72ece87bacb3e749a1465885aff
      https://github.com/RIOT-OS/RIOT/commit/ed5f085b306ec72ece87bacb3e749a1465885aff
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M drivers/include/periph/timer.h

  Log Message:
  -----------
  periph/timer: always return 0 for success

Change documentation on return codes in periph/timer API to
return 0 on success and (-1) on error by default.
For timer_init this was already the case, but for timer_set,
timer_set_absolute, and timer_clear this is now changed
from 1 to 0 for success, while error remains (-1).


  Commit: 1d24709674576c959c8957f549c32534a927ac70
      https://github.com/RIOT-OS/RIOT/commit/1d24709674576c959c8957f549c32534a927ac70
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/atmega_common/periph/timer.c

  Log Message:
  -----------
  cpu/atmega_common: adapt timer to return 0 on success

Adapt periph/timer implementation of atmega based MCUs
to return 0 on success for all functions.


  Commit: cabaaebff45ca7905db0aa1e77775f6866f8790f
      https://github.com/RIOT-OS/RIOT/commit/cabaaebff45ca7905db0aa1e77775f6866f8790f
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/cc2538/periph/timer.c

  Log Message:
  -----------
  cpu/cc2538: adapt timer to return 0 on success

Adapt periph/timer implementation of cc2538 based MCUs
to return 0 on success for all functions.


  Commit: c4fcb241b1ceb1299534dbd7739b59ba0f7c5115
      https://github.com/RIOT-OS/RIOT/commit/c4fcb241b1ceb1299534dbd7739b59ba0f7c5115
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/cc26x0/periph/timer.c

  Log Message:
  -----------
  cpu/cc26x0: adapt timer to return 0 on success

Adapt periph/timer implementation of cc26x0 based MCUs
to return 0 on success for all functions.


  Commit: 84e6d1571aef4d45c2b345f9385a26473a0c9f82
      https://github.com/RIOT-OS/RIOT/commit/84e6d1571aef4d45c2b345f9385a26473a0c9f82
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/kinetis/periph/timer.c

  Log Message:
  -----------
  cpu/kinetis: adapt timer to return 0 on success

Adapt periph/timer implementation of kinetis based MCUs
to return 0 on success for all functions.


  Commit: fd900357fc95ba39821d21a823b96501e2b7191e
      https://github.com/RIOT-OS/RIOT/commit/fd900357fc95ba39821d21a823b96501e2b7191e
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/lm4f120/periph/timer.c

  Log Message:
  -----------
  cpu/lm4f120: adapt timer to return 0 on success

Adapt periph/timer implementation of lm4f120 based MCUs
to return 0 on success for all functions.


  Commit: ddcbfce391b9bf3b0d2bf2a973468975956414ac
      https://github.com/RIOT-OS/RIOT/commit/ddcbfce391b9bf3b0d2bf2a973468975956414ac
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/lpc1768/periph/timer.c

  Log Message:
  -----------
  cpu/lpc1768: adapt timer to return 0 on success

Adapt periph/timer implementation of lpc1768 based MCUs
to return 0 on success for all functions.


  Commit: 22f4ec81b0afaa58310840691e353e9fbb1c77fd
      https://github.com/RIOT-OS/RIOT/commit/22f4ec81b0afaa58310840691e353e9fbb1c77fd
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/mips32r2_common/periph/timer.c

  Log Message:
  -----------
  cpu/mips32r2: adapt timer to return 0 on success

Adapt periph/timer implementation of mips32r2 based MCUs
to return 0 on success for all functions.


  Commit: 935bb51e14bb686ddc990999739cfb29e95bf656
      https://github.com/RIOT-OS/RIOT/commit/935bb51e14bb686ddc990999739cfb29e95bf656
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/native/periph/timer.c

  Log Message:
  -----------
  cpu/native: adapt timer to return 0 on success

Adapt periph/timer implementation of native based MCUs
to return 0 on success for all functions.


  Commit: af529531a42ed2abd38e3ae5006b1e64aec23c54
      https://github.com/RIOT-OS/RIOT/commit/af529531a42ed2abd38e3ae5006b1e64aec23c54
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/nrf5x_common/periph/timer.c

  Log Message:
  -----------
  cpu/nrf5x: adapt timer to return 0 on success

Adapt periph/timer implementation of nrf5x based MCUs
to return 0 on success for all functions.


  Commit: 49acf98841156ddd55f9939afabd6b73e1724326
      https://github.com/RIOT-OS/RIOT/commit/49acf98841156ddd55f9939afabd6b73e1724326
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/sam0_common/periph/timer.c

  Log Message:
  -----------
  cpu/sam0: adapt timer to return 0 on success

Adapt periph/timer implementation of sam0 based MCUs
to return 0 on success for all functions.


  Commit: 0629d076eb40c5410e9d5b342af2a4c3b01d806d
      https://github.com/RIOT-OS/RIOT/commit/0629d076eb40c5410e9d5b342af2a4c3b01d806d
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/sam3/periph/timer.c

  Log Message:
  -----------
  cpu/sam3: adapt timer to return 0 on success

Adapt periph/timer implementation of sam3 based MCUs
to return 0 on success for all functions.


  Commit: ddd97001c19486bba84afc67b3a1a1672970a44a
      https://github.com/RIOT-OS/RIOT/commit/ddd97001c19486bba84afc67b3a1a1672970a44a
  Author: Sebastian Meiling <s at mlng.net>
  Date:   2019-09-11 (Wed, 11 Sep 2019)

  Changed paths:
    M cpu/lm4f120/periph/timer.c

  Log Message:
  -----------
  cpu/lm4f120: fix uninit var in periph/timer


  Commit: d5c272ed869c72cd4ba7d9a4d6edac38c7cf148c
      https://github.com/RIOT-OS/RIOT/commit/d5c272ed869c72cd4ba7d9a4d6edac38c7cf148c
  Author: benpicco <benpicco at googlemail.com>
  Date:   2019-09-17 (Tue, 17 Sep 2019)

  Changed paths:
    M cpu/atmega_common/periph/timer.c
    M cpu/cc2538/periph/timer.c
    M cpu/cc26x0/periph/timer.c
    M cpu/kinetis/periph/timer.c
    M cpu/lm4f120/periph/timer.c
    M cpu/lpc1768/periph/timer.c
    M cpu/mips32r2_common/periph/timer.c
    M cpu/native/periph/timer.c
    M cpu/nrf5x_common/periph/timer.c
    M cpu/sam0_common/periph/timer.c
    M cpu/sam3/periph/timer.c
    M drivers/include/periph/timer.h

  Log Message:
  -----------
  Merge pull request #12199 from smlng/fix_timer_returns

periph/timer: Fix return codes of timer API


Compare: https://github.com/RIOT-OS/RIOT/compare/98482b67c01f...d5c272ed869c


More information about the commits mailing list