Skip to content
  1. Oct 03, 2017
    • Juha Niskanen's avatar
      Merged in juniskane/nuttx_stm32l4/stm32l4_rtc_pm_fixes_pr (pull request #502) · 2997a49e
      Juha Niskanen authored
      
      
      STM32L4 RTC, PM: small fixes to subseconds handling, ADC power-management hooks
      
      * STM32L4 ADC: add PM hooks from Motorola MDK
      
      * STM32L4 RTC: add up_rtc_getdatetime_with_subseconds
      
      * STM32 RTC: workaround for potential subseconds race condition
      
          In all recent STM32 chips reading either RTC_SSR or RTC_TR is supposed to lock
          the values in the higher-order calendar shadow registers until RTC_DR is read.
          However many old chips have in their errata this silicon bug (at least F401xB/C,
          F42xx, F43xx, L15xxE, L15xVD and likely others):
      
          "When reading the calendar registers with BYPSHAD=0, the RTC_TR and RTC_DR
          registers may not be locked after reading the RTC_SSR register. This happens
          if the read operation is initiated one APB clock period before the shadow
          registers are updated. This can result in a non-consistency of the three
          registers. Similarly, RTC_DR register can be updated after reading the RTC_TR
          register instead of being locked."
      
      * STM32L4 RTC: correct RTC_SSR and RTC_TR read ordering
      
          In all recent STM32 chips reading either RTC_SSR or RTC_TR is supposed to lock
          the values in the higher-order calendar shadow registers until RTC_DR is read.
          Change the register read ordering to match this and don't keep a workaround
          for a hypothetical race condition (not in any L4 errata, lets for once assume
          ST's silicon works as it is documented...)
      
      * STM32L4 PM: remove useless #ifdefs and old non-L4 STM32 code
      
      Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
      2997a49e
    • Gregory Nutt's avatar
    • Gregory Nutt's avatar
      syscall/: The non-standard interface exec() is now enshrined as a official... · 8e966546
      Gregory Nutt authored
      syscall/:  The non-standard interface exec() is now enshrined as a official NuttX API.  I really dislike doing this but I think that this is probably the only want to load programs in the protected mode.  It is currently used by some example code under apps/ that generate their own symbol tables for linking.  Other file execution APIs relay on a symbol table provided by the OS.  In the protected mode, the OS cannot provide any meaning symbol table for execution of code in the user-space blob so that is they exec() is really needed in that build case.  And, finally, the interface is completely useless and will not be supported in the KERNEL build mode where the contrary is true:  An application process cannot provide any meaning symbolic information for use in linking a different process.
      8e966546
  2. Oct 02, 2017
  3. Oct 01, 2017
  4. Sep 30, 2017
    • Gregory Nutt's avatar
      ccabac3e
    • Gregory Nutt's avatar
      7acc9872
    • Gregory Nutt's avatar
      Squashed commit of the following: · 8394f9b6
      Gregory Nutt authored
          configs/z80sim and xtrs:  Serial driver lower halfs ioctl methods should return a negated errno value, not set the errno variable.
      
          drivers/wireless:  CC1101 driver not permitted to set errno.
      
          drivers/sensors:  LIS331DL driver not permitted to set errno.
      
          drivers/lcd: ILI9341 initialize method not permitted to set errno,
      
          drivers/serial: 16550 UART driver IOCTL method must not set errno; it must return a negated errno value.
      8394f9b6
    • Gregory Nutt's avatar
      Squashed commit of the following: · c11345ad
      Gregory Nutt authored
          STM32, STM32 F7:  LTDC and DMA2D drivers are not permitted to set the errno.
      
          SIM LPC31xx:  Serial and console drivers are not permitted to set the errno.
      
          SAMv7, STM32, STM32 L4:  DAC and ADC drivers are not permitted to set the errno.
      c11345ad
    • Gregory Nutt's avatar
      Squashed commit of the following: · e4dd3328
      Gregory Nutt authored
          psock_close() and net_close() are internal OS functions and should not set the errno variable.
      
          psock_ioctl() and netdev_ioctl() are internal OS functions and should not set the errno variable.
      
          net_dupsd() and net_dupsd2() are internal OS functions and should not set the errno variable.
      
          net/ and fs/: net_vfcntl(), file_fcntl(), file_dup(), and file_dup2() are all internal OS interfaces and should not modify the errno value.
      e4dd3328
    • Gregory Nutt's avatar
      Squashed commit of the following: · 2c2aa94b
      Gregory Nutt authored
          net/: psock_recvfrom() is an internal interface and should not set the errno nor should it be a cancellation point.
      
          net/: psock_accept() is not a cancellation point.
      
          net/: psock_getsockopt() and psock_socket*9 are an internal interfaces and should not set the errno.
      
          net/: psock_getsockopt() is an internal interface and should not set the errno.
      
          net/: psock_listen() is an internal interface and should not set the errno.
      
          net/: psock_connect(( is an internal interface and should not set the errno nor should it be a cancellation point.
      
          net/: psock_bind() is an internal interface and should not set the errno.
      
          net/: psock_accept() is an internal interface and should not set the errno.
      2c2aa94b
    • Gregory Nutt's avatar
      net/: Versions of psock_send() and pock_sendto() should not set errno. That... · 054b1471
      Gregory Nutt authored
      net/: Versions of psock_send() and pock_sendto() should not set errno.  That is taken care of at a higher level in the send()/sendto() implementation as appropriate.
      054b1471
    • Gregory Nutt's avatar
    • Mateusz Szafoni's avatar
      Merged in raiden00/nuttx (pull request #499) · ad369a0b
      Mateusz Szafoni authored
      
      
      syslog_console.c: fix typo
      
      Approved-by: default avatarGregory Nutt <gnutt@nuttx.org>
      ad369a0b
    • raiden00pl's avatar
      syslog_console.c: fix typo · 525a180a
      raiden00pl authored
      525a180a
  5. Sep 29, 2017