Skip to content
Permalink
Branch: master
Commits on Oct 11, 2019
  1. CODEOWNERS: add owners for the C++ subsystem

    pabigot authored and nashif committed Oct 11, 2019
    Add recent collaborators as codeowners.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 28, 2019
  1. kernel: timeout: remove unused callback parameter from init function

    pabigot authored and nashif committed Sep 27, 2019
    The callback function has been ignored in z_timeout_init() since the
    timer rework in fall 2018.  Passing real handlers to it in code is
    distracting when they will be overridden by whatever callback is
    provided in z_add_timeout().
    
    As this function is an internal API deprecation is not necessary.
    Remove the parameter and change all call sites to drop the argument.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 26, 2019
  1. CODEOWNERS: Add entry for JEDEC SPI-NOR flash driver

    pabigot authored and galak committed Sep 26, 2019
    Adding myself as owner.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 20, 2019
  1. lib/timeutil: avoid implementation-defined behavior

    pabigot authored and nashif committed Aug 18, 2019
    The algorithm for converting broken-down civil time to seconds in the
    POSIX epoch time scale would produce undefined behavior on a toolchain
    that uses a 32-bit time_t in cases where the referenced time could not
    be represented exactly.
    
    However, there are use cases in Zephyr for civil time conversions
    outside the 32-bit representable range of 1901-12-13T20:45:52Z through
    2038-01-19T03:14:07Z inclusive.
    
    Add new API that specifically returns a 64-bit signed seconds count, and
    revise the existing API to detect out-of-range values and convert them
    to a diagnosible error.
    
    Closes #18465
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. lib/timeutil: support const correctness for pointer parameter

    pabigot authored and nashif committed Aug 18, 2019
    timeutil_timegm() does not modify the passed structure, so it should
    indicate that in the signature (even though the GNU extension does not).
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 18, 2019
  1. drivers: gpio: fix misuse of u8_t where bool is intended

    pabigot authored and andrewboie committed Dec 5, 2018
    GPIO configuration flags will move and some that used to be in the low
    8 bits are now higher, resulting in implicit constant conversion
    overflows.  Use a boolean data type to hold boolean values.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
    Signed-off-by: Piotr Mienkowski <piotr.mienkowski@gmail.com>
Commits on Sep 17, 2019
  1. scripts: elf_helper.py: fix C++ template constexpr value processing

    pabigot authored and nashif committed Sep 13, 2019
    Some DWARF symbols for members of template classes members such as
    numeric_limits<unsigned int> reference are static constexpr values
    that do not have a data member location.  Avoid attempting to
    dereference the value for that attribute when it isn't present.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 16, 2019
  1. kconfig: support multiple DTS bindings directories

    pabigot authored and galak committed Sep 14, 2019
    Some confluence of recent changes resulted in builds with
    application-specific bindings being unable to find bindings present in
    the system directory.  Add quotes and splits as necessary to propagate
    multiple directories through the system.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Sep 12, 2019
  1. scripts/dts/gen_defines.py: exclude initializer lists from conf file

    pabigot authored and galak committed Sep 12, 2019
    Things that parse generated_dts_board.conf can't deal with entries
    like:
    
        DT_GPIO_KEYS_BUTTON_1_GPIOS={"GPIO_0", 14, 256}
    
    so keep them from being added there.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. scripts/dts/gen_defines.py: generate initializers for phandle/val lists

    pabigot authored and galak committed Aug 22, 2019
    When a phandle-array (compound) has multiple members generate a define
    that says how many there are; generate an initializer for each
    individual member; and generate an initializer for the sequence of
    members.
    
    This allows drivers that expect multiple values in a compound to process
    them without horrendous conditional compilation code attempting to
    detect the number of elements in the compound.
    
    It also eliminates the need to repeat the long prefix when initializing
    a structure with the fields of a single compound.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  3. scripts/dts/gen_defines.py: return macro identifier in out functions

    pabigot authored and galak committed Aug 22, 2019
    The lowest level output function is the one that determines the full
    name of the macro, including DT_ prefix.  Return the name of the macro
    that provides the value for an identifier so that it can be used in
    higher layers of the generator.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  4. scripts/dts/gen_defines.py: generalize string escape

    pabigot authored and galak committed Aug 22, 2019
    Add str2str to make the conversion of a string into a C literal with all
    necessary escapes and enclosing double quotes available outside a
    function that emits a define.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Aug 18, 2019
  1. doc/reference/drivers: document device-specific API extensions

    pabigot authored and ioannisg committed Aug 1, 2019
    This PR updates the documentation to cover a technical solution to
    providing a driver instance that extends the functionality of a
    subsystem API.  The solution described was mooted in Zephyr PR #17072
    and approved by the Technical Steering Committee during its 2019-08-07
    meeting.
    
    Relates-to: #11993
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Aug 9, 2019
  1. lib/libc/minimal: Refined handle duplicate time definitions

    pabigot authored and andrewboie committed Aug 7, 2019
    Follow the approach of newlib to use a file sys/_types.h to specify the
    underlying type for POSIX/libc types that must be provided in multiple
    headers.  The identifier for this type is in the reserved namespace.
    
    Use this type rather than a specific standard type in all headers that
    need to provide the type under its public name.
    
    Remove the inclusion of <sys/types.h> from headers that should not bring
    in all symbols present in that header, replacing it with the standard
    boilerplate to expose the specific symbols that are required.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Aug 6, 2019
  1. subsys/fs/littlefs: allow customization of file system configuration

    pabigot authored and carlescufi committed Aug 3, 2019
    There's desire to be able to customize parameters on a per-filesystem
    basis, which means we need a way to override the Kconfig defaults which
    are global.  This also means the littlefs data structure cannot own the
    cache and lookahead buffers.
    
    Switch to using a macro to define the littlefs data structure.  The
    default version uses the Kconfig constants.  A custom one takes
    arguments providing the most likely partition-specific parameters.
    Finally the user is free to bypass the helper macros and set any
    parameters desired, though validation is limited and only present when
    CONFIG_DEBUG is enabled.
    
    Extend the test suite with a performance module, which confirms that
    these settings have an impact proportional to the log of changes to the
    cache or IO sizes.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. subsys/fs: remove ambiguity in readdir results

    pabigot authored and carlescufi committed Aug 2, 2019
    Existing file system implementations do not provide the special "."
    (current) and ".." (parent) directory entries in the readdir results.
    littlefs does.
    
    Remove these entries in the abstraction layer.  This simplifies code in
    higher level consumers that aren't prepared to see them.  Consumers like
    FUSE that need them can put them back without having to worry about
    conflicts.
    
    Closes issue #17951
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  3. tests/subsys/fs/littlefs: add tests

    pabigot authored and carlescufi committed Jul 31, 2019
    Verify all FS API calls using the nRF52840 development kit.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  4. subsys/fs/shell: avoid warning about output format truncation

    pabigot authored and carlescufi committed Jul 24, 2019
    The previous way of creating an absolute path relied on snprintf(), and
    when used with newlib gcc warned that the output could be truncated
    before the last format character.  Rework to use code that doesn't rely
    on snprintf.
    
    See discussion at https://bugzilla.redhat.com/show_bug.cgi?id=1431678
    
    Also ensure that cwd is always NUL-terminated, and use the utility
    function to create the absolute path in cmd_trunc.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  5. subsys/fs/shell: add littlefs support

    pabigot authored and carlescufi committed Jul 22, 2019
    Add support for the littlefs file system in the fs shell.  Update
    the sample to use the same partition configuration as the littlefs
    example for the SPI NOR test platform.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  6. samples/subsys/fs/littlefs: add a basic sample

    pabigot authored and carlescufi committed Jul 21, 2019
    Uses a littlefs file system to maintain a boot counter.  Also tests some
    other functions.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  7. subsys/fs: add support for littlefs

    pabigot authored and carlescufi committed Jul 21, 2019
    littlefs is a fail-safe filesystem from ARM Mbed that has wear-leveling
    capabilities.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
    Signed-off-by: Jim Paris <jim@bolt.io>
  8. subsys/fs: clean up CMakeLists

    pabigot authored and carlescufi committed Jul 27, 2019
    Remove the disabled link interface commands.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Aug 5, 2019
  1. drivers/spi_nor: de-pessimize reads

    pabigot authored and carlescufi committed Aug 3, 2019
    SPI NOR devices require that writes be performed within only one page at
    a time.  There is no such limitation on reads.  Remove the code that
    forced reads to be performed in 256-byte chunks.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. drivers/spi_nor: fix writes across page boundaries

    pabigot authored and carlescufi committed Aug 3, 2019
    The code failed to increment the address after completing a partial
    write, causing writes that cross a page boundary overwrite at a page
    level.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Aug 1, 2019
  1. drivers/adc: provide API to access reference voltage

    pabigot authored and carlescufi committed Jul 29, 2019
    Required for any real-world use of ADC_REF_INTERNAL.
    
    Relates-to: issue #11922
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Jul 31, 2019
  1. libc: minimal: add strspn and strcspn support

    pabigot authored and andrewboie committed Jul 27, 2019
    These functions are useful for determining prefixes, as with file system
    paths.  They are required by littlefs.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. scripts: gen_cfb_font_header: modify to replicate cfb fonts

    pabigot authored and galak committed Jul 15, 2019
    The content of subsys/fb/cfb_fonts cannot be replicated by the existing
    script due to lack of positioning options and use of a full-color frame
    buffer, which affects the generated bitmap.  Switch to the solution used
    in the original script, add the required options, and document the
    process of regenerating the fonts.
    
    This commit also determines the required bounding box for the glyphs to
    be sure that the user-provided value is sufficient to avoid partial
    characters.  Ideally the calculated width and height would be used for
    font characters, but this would require significant restructuring of the
    script to make calculated values available at the point where the
    arguments are used to produce output.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  3. scripts: gen_cfb_font_header: remove guard and make font data private

    pabigot authored and galak committed Jul 18, 2019
    The output of this script is intended to be put into an implementation
    file, where the font data is accessed by index to an array maintained by
    the linker script.  There is no need for protection against multiple
    includes, and the font data array should not be a global symbol.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  4. subsys/cfb: improve font structure packing

    pabigot authored and galak committed Jul 16, 2019
    The specified order of fields wastes space when the cfb_font_caps enum
    isn't packed.  Reorder to avoid this behavior.
    
    Also remove the unnecessary array size on the extern symbol declaration,
    lest the compiler misinterpret the properties as being zero-length
    arrays rather than pointers.  (The idiom is already technically
    using undefined behavior since we're relying on the linker rather than
    the language to produce an array from the individual declarations.)
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  5. CODEOWNERS: add owner for subsys/fb

    pabigot authored and galak committed Jul 18, 2019
    No owner had been assigned.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  6. libc/minimal: fix reproducibility of gmtime

    pabigot authored and ioannisg committed Jul 30, 2019
    struct tm has fields that were not being set by the implementation,
    causing the test to fail when the uninitialized values were compared
    with a static initialized result.  Zero the structure before filling it.
    
    Closes #17794
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Jul 26, 2019
  1. sys/sem.h: fix path to atomic.h

    pabigot authored and nashif committed Jul 25, 2019
    Use of old location produces a compiler warning.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Commits on Jul 25, 2019
  1. samples/subsys/fs: move existing test into fat_fs

    pabigot authored and nashif committed Jul 21, 2019
    The sample is specific to the SDHC/fat_fs API.  Move it down to make
    room for other file systems.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  2. subsys/fs/shell: add statvfs command

    pabigot authored and nashif committed Jul 23, 2019
    Shows the file system state.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
  3. subsys/fs/shell: clean up nffs mount diagnostics

    pabigot authored and nashif committed Jul 23, 2019
    Make the diagnostics shorter, and don't reference FatFs.
    
    Signed-off-by: Peter A. Bigot <pab@pabigot.com>
Older
You can’t perform that action at this time.