Skip to content
Permalink
Branch: master
Commits on Jul 17, 2019
  1. soc: ti_simplelink: add macro to prevent double inclusion of soc.h

    vanti authored and andrewboie committed Jul 16, 2019
    soc.h needs to use a macro to guard against it being included multiple
    times.
    
    Fixes #17557
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on May 10, 2019
  1. drivers: wifi: simplelink: Add static IP address support

    vanti authored and jukkar committed May 1, 2019
    Change the SimpleLink wifi driver to use static IP address instead of
    DHCP when it is set by NET_CONFIG_MY_IPV4_ADDR. We also support setting
    gateway and netmask via NET_CONFIG_MY_IPV4_GW and
    NET_CONFIG_MY_IPV4_NETMASK.
    
    This feature is tested out-of-tree against the echo sample after
    modifying its prj.conf file to set the static IP address:
    
    CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.1.191"
    
    and after commenting out these lines in its board-specific config
    file for cc3220sf_launchxl:
    
    so that the NET_CONFIG_SETTINGS are not overridden.
    
    The wifi sample is also verified to run correctly after running the
    echo sample.
    
    Fixes #14588
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Apr 19, 2019
  1. samples: sockets: sntp_client: Add support for cc3220sf_launchxl

    vanti authored and galak committed Mar 14, 2019
    This commits adds a configuration file for cc3220sf_launchxl
    suitable for the example.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  2. samples: sockets: sntp_client: make IPv6 & NET_CONFIG_SETTINGS optional

    vanti authored and galak committed Mar 14, 2019
    In this commit, a config.h header file is added to support the case
    when the NET_CONFIG_SETTINGS is not used. main.c is also modified to
    enable platforms that do not support IPv6. These changes are necessary
    in order to allow cc3220sf_launchxl support.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 26, 2019
  1. samples: net: mqtt_publisher: Add section on connecting with TLS

    vanti authored and nashif committed Mar 20, 2019
    Adding a section to the sample's documentation to give some specific
    instructions on how to try it with TLS enabled. This should be helpful
    for users who are not knowledgeable with regards to creating/setting up
    TLS certificates.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 20, 2019
  1. samples: sockets: echo_async: Add support for cc3220sf_launchxl

    vanti authored and galak committed Mar 14, 2019
    Adding support for cc3220sf_launchxl by introducing a board-specific
    Kconfig file.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  2. samples: sockets: echo_async: Make IPV6 optional

    vanti authored and galak committed Mar 14, 2019
    Changing the example to not use IPv6 when it is not configured,
    given IPv6 is not enabled on some platforms such as cc3220sf_launchxl.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  3. drivers: wifi: simplelink: Implement fcntl to set/get non-blocking mode

    vanti authored and galak committed Mar 4, 2019
    This commit implements fcntl() in the SimpleLink Wifi driver to set and
    get the non-blocking mode on a socket.
    
    Fixes #11891.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  4. ext: simplelink: add workarounds when using POSIX headers

    vanti authored and galak committed Mar 5, 2019
    Adding additional workarounds to cc_pal.h that are necessary due to the
    fact that the POSIX subsys does not integrate well with other parts of
    Zephyr, as per discussion in #13444. These workarounds are needed when
    fcntl.h is included, to avoid symbols from being redefined in POSIX
    headers. They disable some POSIX headers and define what is necessary
    for the code to compile.
    
    We should aim to remove these when the integration story has improved.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  5. net: sockets: move fcntl back to socket_offload.c

    vanti authored and galak committed Mar 5, 2019
    We are reverting the changes in commit
    55b3f05 given build errors are seen
    when fcntl.h is included, as it declares fcntl() as a non-static
    function. The same function cannot be declared as both static and
    non-static.
    
    Instead, we avoid redefining fcntl() in lib/os/fdtable.c specifically
    for case of the SimpleLink family, til we have support for the new
    socket_op_vtable.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 19, 2019
  1. doc: boards: cc3220sf_launchxl: Document limitations

    vanti authored and galak committed Mar 15, 2019
    Adding a section on some features that have yet to be implemented in
    the SimpleLink WiFi driver.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 13, 2019
  1. drivers: wifi: simplelink: Return success when TLS_PEER_VERIFY is set

    vanti authored and galak committed Mar 12, 2019
    mqtt_client_tls_connect() calls setsockopt() to set the TLS_PEER_VERIFY
    option to require verfication. To enable mqtt, we need to return
    success at a minimum when this option is set to 2.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  2. drivers: wifi: simplelink: Fix error handling

    vanti authored and galak committed Mar 11, 2019
    The driver is not returning correct error codes when error occurs.
    The error handling function is expecting negative input values, but
    that is not true for BSD error codes. So I am taking an approach
    where I use a function to convert SimpleLink error codes to BSD
    error codes, and call slcb_setErrno() to set the errno independently.
    
    Fixes #12745
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 5, 2019
  1. ext: simplelink: Remove build warnings

    vanti authored and nashif committed Feb 27, 2019
    This commit removes build warnings in the SimpleLink SDK's driver.c file
    by updating CMakeLists.txt
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  2. CODEOWNERS: Update code ownership for TI SimpleLink code

    vanti authored and nashif committed Feb 26, 2019
    Updated for SimpleLink-related code in ext, board and soc.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  3. ext: simplelink: Run dos2unix on files imported from TI SimpleLink SDK

    vanti authored and nashif committed Feb 26, 2019
    Getting rid of DOS line termination characters to be more
    Linux-friendly.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  4. ext: simplelink: Update the README

    vanti authored and nashif committed Feb 23, 2019
    The README is updated for the new version of the TI SimpleLink SDK.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  5. ext: simplelink: Add a workaround for #13444 in cc_pal.h

    vanti authored and nashif committed Feb 20, 2019
    We are undefining timeval to avoid a symbol redefinition build error.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  6. ext: simplelink: Add posix api and pthread support to Kconfig

    vanti authored and nashif committed Feb 20, 2019
    When using the wifi driver, we should automatically select
    CONFIG_POSIX_API and CONFIG_PTHREAD_IPC. This is necessary given the
    code in the new SimpleLink host driver from the SimpleLink SDK uses
    pthread and sem.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  7. ext: simplelink: Use Zephyr posix headers in cc_pal.h

    vanti authored and nashif committed Feb 15, 2019
    We should use the headers from Zephyr, not the ones provided by TI for
    their posix implementations.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  8. drivers: wifi: simplelink: Use TI SimpleLink SDK 2.40

    vanti authored and nashif committed Feb 15, 2019
    This commit updates the wifi driver to use the new TI SimpleLink SDK.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  9. ext: simplelink: Update CMakeLists.txt to build new SDK

    vanti authored and nashif committed Feb 14, 2019
    Updating it to build the correct list of files in the SDK.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  10. ext: simplelink: Update user.h

    vanti authored and nashif committed Feb 14, 2019
    We are using the external spawn option, hence must make a change
    to point to our os_Spawn implementation.
    
    We are also supplying errno values that are missing from Zephyr errno.h
    and the external errno setter function, to allow the SimpleLink
    driver.c to compile.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  11. ext: simplelink: Add updated CC3220 board files

    vanti authored and nashif committed Feb 14, 2019
    This commit adds updated board files to configure the peripheral
    drivers on the CC3220.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  12. ext: simplelink: Import files from TI CC32XX SDK 2.40.01.01

    vanti authored and nashif committed Feb 13, 2019
    Add/Update files taken from TI CC32XX SDK, including
        - peripheral drivers
        - driverlib (HAL)
        - WiFi host driver and porting layer interface headers
    
    Origin: Texas Instruments cc32xx SimpleLink SDK
    URL: http://www.ti.com/tool/download/simplelink-cc32xx-sdk
    Purpose: Provide driver libraries and HAL for TI CC32XX SoC
    Maintained-by: External
    
    Fixes #11126
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  13. include: net: Move fcntl implementation into socket_offload.h

    vanti authored and nashif committed Feb 15, 2019
    This is done to conform with how the rest of the socket APIs are
    implemented during socket offload. Otherwise link error would
    result due to the symbol being redefined in lib/os/fdtable.c.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Mar 2, 2019
  1. drivers: wifi: simplelink: Remove SO_REUSEADDR and TCP_NODELAY

    vanti authored and nashif committed Mar 1, 2019
    The SimpleLink driver has been defining these macros for its local use.
    Given these have been defined in a recent commit in Zephyr
    (9c86dbf), we should now avoid
    redefining them to prevent build errors.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Feb 13, 2019
  1. drivers: wifi: simplelink: Translate socket family/type/protocol values

    vanti authored and galak committed Feb 12, 2019
    In the SimpleLink wifi driver, the socket family value needs to be
    converted to the SL_* equivalent to be understood by the SimpleLink
    API, instead of being passed straight in.
    
    While not strictly necessary, we are doing the same for socket type
    and protocol values to future-proof ourselves in case similar changes
    happen to the values defined for these in Zephyr header files.
    
    Fixes #13203
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Jan 31, 2019
  1. samples: net: add TLS offload support to mqtt_publisher

    vanti authored and nashif committed Jan 19, 2019
    This commit adds support in the sample to deal with the case when TLS
    is offloaded and mbedtls is not necessary.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  2. drivers: wifi: simplelink: Add handling for unknown root CA

    vanti authored and nashif committed Jan 18, 2019
    Error code SL_ERROR_BSD_ESECUNKNOWNROOTCA is returned from sl_Connect()
    when the root CA used is not part of the certificate catalog on the
    network processor. We should warn the users about this and continue on,
    given the connection is successful.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  3. tests: net: port mqtt tests to cc3220sf_launchxl

    vanti authored and nashif committed Jan 16, 2019
    This commit makes the necessary changes to allow the following tests
    to run on cc3220sf_launchxl:
    - mqtt_packet
    - mqtt_publisher
    - mqtt_subscriber
    - mqtt_pubsub
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  4. samples: net: Add support for cc3220sf_launchxl in mqtt_publisher

    vanti authored and nashif committed Jan 11, 2019
    This commit adds the necessary changes to allow the mqtt_publisher
    sample to run on cc3220sf_launchxl.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
  5. drivers: wifi: simplelink: socket() should return non-zero fds

    vanti authored and nashif committed Jan 15, 2019
    simplelink_socket() is not returning non-zero socket file descriptors
    when it succeeds. This leads to socket() to always return socket fd 0,
    even when the network processor returns a non-zero fd.
    
    This commit fixes simplelink_socket() to return the correct socket fd
    when it succeeds in getting one from the network processor.
    
    Fixes #12650
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Jan 15, 2019
  1. net: Fix inet_pton when offloading is enabled

    vanti authored and jukkar committed Jan 11, 2019
    When offloading is enabled, a call to inet_pton() results in a call to
    zsock_inet_pton() based on its implementation in include/net/socket.h.
    This eventually leads to a call to _impl_zsock_inet_pton(), which is
    not defined when offloading is enabled.
    
    In this commit, we have chosen to directly call net_addr_pton() in
    inet_pton() in the offload case to be efficient, and keep the
    implementation as it is when offload is not enabled.
    
    Fixes #12441
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Commits on Dec 29, 2018
  1. doc: boards: cc3220sf_launchxl: update link to XDS110 firmware update

    vanti authored and nashif committed Dec 19, 2018
    The link was changed by TI, so we are updating the Zephyr
    documentation.
    
    Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
Older
You can’t perform that action at this time.