Skip to content

Commit

Permalink
Added first application with logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Meera Mankali committed Jul 26, 2024
1 parent 74ab981 commit 500b0b6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 27 deletions.
12 changes: 6 additions & 6 deletions tsi_app/m85/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _m85:

TSI Banner
TSI Banner
###########

Overview
Expand All @@ -14,9 +14,9 @@ Building and Running
This application can be built as follows:

.. zephyr-app-commands::
:zephyr-app:
:zephyr-app: tsi_app/m85
:host-os: unix
:board: ek_tsi_skyp/m85
:board: ek_tsi_skyp/m85
:goals: run
:compact:

Expand All @@ -25,8 +25,8 @@ Sample Output
=============

.. code-block:: console
!! ------------------------------------------ !!
!! WELCOME TO TSAVORITE SCALABLE INTELLIGENCE !!
!! ------------------------------------------ !!
!! WELCOME TO TSAVORITE SCALABLE INTELLIGENCE !!
!! ------------------------------------------ !!

Check failure on line 30 in tsi_app/m85/README.rst

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

tsi_app/m85/README.rst:30 trailing whitespace
[00:00:00.010,000] <inf> m85: Test Platform: ek_tsi/skyp/m85
[00:00:00.010,000] <wrn> m85: Testing on FPGA; Multi module init TBD
[00:00:00.010,000] <wrn> m85: Testing on FPGA; Multi module init TBD

Check failure on line 32 in tsi_app/m85/README.rst

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

tsi_app/m85/README.rst:32 trailing whitespace
3 changes: 1 addition & 2 deletions tsi_app/m85/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ CONFIG_LOG=y
CONFIG_CONSOLE=y
CONFIG_LOG_PRINTK=y
CONFIG_UART_CONSOLE=y
CONFIG_SHELL=n
CONFIG_SHELL=y
CONFIG_BOOT_BANNER=y
CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
CONFIG_SHELL_BACKEND_SERIAL_RX_POLL_PERIOD=1

CONFIG_LOG_BACKEND_UART=y

# Use immediate mode so all messages are being
Expand Down
10 changes: 5 additions & 5 deletions tsi_app/m85/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sample:
description: TSI Core platform application - M85
name: m85
description: TSI Core platform application on M85
name: m85
common:
tags: introduction
integration_platforms:
Expand All @@ -9,9 +9,9 @@ common:
harness_config:
type: one_line
regex:
-!! ------------------------------------------ !!
-!! WELCOME TO TSAVORITE SCALABLE INTELLIGENCE !!
-!! ------------------------------------------ !!
-!! ------------------------------------------ !!
-!! WELCOME TO TSAVORITE SCALABLE INTELLIGENCE !!
-!! ------------------------------------------ !!
- [00:00:00.010,000] <inf> m85: Test Platform: ek_tsi/skyp/m85

Check warning on line 15 in tsi_app/m85/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (None)

tsi_app/m85/sample.yaml:15 syntax error: mapping values are not allowed here (syntax)
- [00:00:00.010,000] <wrn> m85: Testing on FPGA; Multi module init TBD

Check failure on line 16 in tsi_app/m85/sample.yaml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

tsi_app/m85/sample.yaml:16 trailing whitespace
tests:
Expand Down
21 changes: 7 additions & 14 deletions tsi_app/m85/src/main.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

/*----------------------------------------------------------------------------------------------------- */
/* Copyright (c) 2024 Tsavorite Scalable Intelligence, Inc. All rights reserved. */
/* */
/* */
/* This file is the confidential and proprietary property of Tsavorite Scalable Intelligence, Inc */
/* Possession or use of this file requires a written license from Tsavorite Scalable Intelligence, Inc */
/*----------------------------------------------------------------------------------------------------- */

/*
* Copyright (c) 2012-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <stddef.h>
#include <stdio.h>
Expand All @@ -20,19 +16,16 @@
#define LOG_MODULE_NAME m85

Check failure on line 16 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

tsi_app/m85/src/main.c:16 trailing whitespace
LOG_MODULE_REGISTER(LOG_MODULE_NAME);


int main(void)
{

/* TSI banner */
printf("!! ------------------------------------------ !! \n");
printf("!! ------------------------------------------ !! \n");

Check warning on line 23 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

QUOTED_WHITESPACE_BEFORE_NEWLINE

tsi_app/m85/src/main.c:23 unnecessary whitespace before a quoted newline
printf("!! WELCOME TO TSAVORITE SCALABLE INTELLIGENCE !! \n");

Check failure on line 24 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

TRAILING_WHITESPACE

tsi_app/m85/src/main.c:24 trailing whitespace

Check warning on line 24 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

QUOTED_WHITESPACE_BEFORE_NEWLINE

tsi_app/m85/src/main.c:24 unnecessary whitespace before a quoted newline
printk("!! ------------------------------------------ !! \n");
printk("!! ------------------------------------------ !! \n");

Check warning on line 25 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

QUOTED_WHITESPACE_BEFORE_NEWLINE

tsi_app/m85/src/main.c:25 unnecessary whitespace before a quoted newline
LOG_INF("Test Platform: %s",CONFIG_BOARD_TARGET);

Check failure on line 26 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

CODE_INDENT

tsi_app/m85/src/main.c:26 code indent should use tabs where possible

Check warning on line 26 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tsi_app/m85/src/main.c:26 please, no spaces at the start of a line

Check failure on line 26 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

SPACING

tsi_app/m85/src/main.c:26 space required after that ',' (ctx:VxV)


LOG_WRN("Testing on FPGA; Multi module init TBD");

Check warning on line 28 in tsi_app/m85/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

LEADING_SPACE

tsi_app/m85/src/main.c:28 please, no spaces at the start of a line

return 0;
}

0 comments on commit 500b0b6

Please sign in to comment.