Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi committed Jan 28, 2024
1 parent 7c96260 commit de85a26
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 55 deletions.
4 changes: 2 additions & 2 deletions doc/hardware/peripherals/display/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BBC micro:bit Display

.. doxygengroup:: mb_display

Monochrome Character Framebuffer
Compact Framebuffer
================================

.. doxygengroup:: monochrome_character_framebuffer
.. doxygengroup:: compact_framebuffer
6 changes: 3 additions & 3 deletions include/zephyr/display/cfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

/**
* @file
* @brief Public Monochrome Character Framebuffer API
* @brief Public Compact Framebuffer subsystem API
*/

#ifndef __CFB_H__
Expand All @@ -23,8 +23,8 @@ extern "C" {
#endif

/**
* @brief Public Monochrome Character Framebuffer API
* @defgroup monochrome_character_framebuffer Monochrome Character Framebuffer
* @brief Public Compact Framebuffer subsystem API
* @defgroup compact_framebuffer Compact Framebuffer
* @ingroup utilities
* @{
*/
Expand Down
2 changes: 1 addition & 1 deletion samples/boards/reel_board/mesh_badge/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CONFIG_SPI_ASYNC=y
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y

CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CFB=y

CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
Expand Down
16 changes: 8 additions & 8 deletions samples/subsys/display/cfb/README.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
.. zephyr:code-sample:: character-frame-buffer
:name: Character frame buffer
:relevant-api: monochrome_character_framebuffer
.. zephyr:code-sample:: compact-frame-buffer
:name: Compact frame buffer
:relevant-api: compactframebuffer

Display character strings using the Character Frame Buffer (CFB).
Display character strings using the Compact Frame Buffer (CFB) subsystem.

Overview
********

This sample displays character strings using the Character Frame Buffer
(CFB) subsystem framework.
This sample displays character strings using the Compact Frame Buffer
(CFB) subsystem.

Requirements
************

This sample requires a supported board and CFB-supporting
display, such as the :ref:`reel_board`.
This sample requires a board that have a display,
such as the :ref:`reel_board`.

Building and Running
********************
Expand Down
2 changes: 1 addition & 1 deletion samples/subsys/display/cfb/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_DISPLAY=y
CONFIG_LOG=y

CONFIG_CFB_LOG_LEVEL_DBG=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CFB=y

CONFIG_CFB_SAMPLE_TRANSFER_BUFFER_SIZE=4096
CONFIG_CFB_SAMPLE_COMMAND_BUFFER_SIZE=1024
2 changes: 1 addition & 1 deletion samples/subsys/display/cfb/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ common:
harness: display
tags: display
sample:
description: Character framebuffer test
description: Compact framebuffer test
name: cfb sample
tests:
sample.display.cfb.ssd1306:
Expand Down
11 changes: 3 additions & 8 deletions samples/subsys/display/cfb_custom_font/README.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. zephyr:code-sample:: cfb-custom-fonts
:name: Custom fonts
:relevant-api: monochrome_character_framebuffer
:relevant-api: compact_framebuffer

Generate and use a custom font.

Overview
********
A simple example showing how to generate Character Framebuffer (CFB)
A simple example showing how to generate Compact Framebuffer (CFB)
font headers automatically at build time.

This example generates a font with font elements for 6 sided dice from
Expand All @@ -25,12 +25,7 @@ directory:
- :file:`prj.conf`
Generic config file, normally you should use this.

- :file:`boards/reel_board.conf`
This overlay config enables support for SSD16XX display controller
on the reel_board.


Example building for the reel_board with SSD16XX display support:
Example building for the reel_board:

.. zephyr-app-commands::
:zephyr-app: samples/subsys/display/cfb_custom_font
Expand Down
4 changes: 2 additions & 2 deletions samples/subsys/display/cfb_custom_font/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CONFIG_HEAP_MEM_POOL_SIZE=16384

CONFIG_DISPLAY=y

CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS=n
CONFIG_CFB=y
CONFIG_CFB_USE_DEFAULT_FONTS=n
CONFIG_CFB_CUSTOM_FONT_SAMPLE_TRANSFER_BUFFER_SIZE=4096
CONFIG_CFB_CUSTOM_FONT_SAMPLE_COMMAND_BUFFER_SIZE=1024
2 changes: 1 addition & 1 deletion samples/subsys/display/cfb_custom_font/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ common:
harness: display
tags: display
sample:
description: Custom character framebuffer font example
description: Compact framebuffer font example
name: cfb custom font sample
tests:
sample.display.cfb_custom_font.ssd16xx:
Expand Down
12 changes: 6 additions & 6 deletions samples/subsys/display/cfb_shell/README.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.. zephyr:code-sample:: cfb-shell-sample
:name: Character Framebuffer shell module
:relevant-api: monochrome_character_framebuffer
:name: Compact Framebuffer shell module
:relevant-api: compact_framebuffer

Use the CFB shell module to interact with a monochrome display.
Use the CFB shell module to interact with a display.

Overview
********
This is a simple shell module that exercises displays using the Character
Framebuffer subsystem.
This is a simple shell module that exercises displays using the Compact
Framebuffer(CFB) subsystem.

Building and Running
********************
Expand All @@ -25,7 +25,7 @@ Shell Module Command Help

.. code-block:: console
cfb - Character Framebuffer shell commands
cfb - Compact Framebuffer shell commands
Options:
-h, --help :Show command help.
Subcommands:
Expand Down
4 changes: 2 additions & 2 deletions samples/subsys/display/cfb_shell/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CONFIG_BOOT_BANNER=n
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_DISPLAY=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CFB=y
CONFIG_SHELL=y
CONFIG_CHARACTER_FRAMEBUFFER_SHELL=y
CONFIG_CFB_SHELL=y
2 changes: 1 addition & 1 deletion samples/subsys/display/cfb_shell/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ common:
harness: display
tags: display
sample:
description: Character framebuffer shell test
description: Compact framebuffer shell test
name: cfb shell sample
tests:
sample.display.cfb_shell.ssd1306:
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/gen_cfb_font_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def parse_args():
"""Parse arguments"""
global args
parser = argparse.ArgumentParser(
description="Character Frame Buffer (CFB) font header file generator",
description="Compact Framebuffer (CFB) font header file generator",
formatter_class=argparse.RawDescriptionHelpFormatter, allow_abbrev=False)

parser.add_argument(
Expand Down
8 changes: 4 additions & 4 deletions subsys/fb/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_sources_ifdef(CONFIG_CHARACTER_FRAMEBUFFER cfb.c)
zephyr_sources_ifdef(CONFIG_CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS cfb_fonts.c)
zephyr_sources_ifdef(CONFIG_CHARACTER_FRAMEBUFFER_SHELL cfb_shell.c)
zephyr_sources_ifdef(CONFIG_CFB cfb.c)
zephyr_sources_ifdef(CONFIG_CFB_USE_DEFAULT_FONTS cfb_fonts.c)
zephyr_sources_ifdef(CONFIG_CFB_SHELL cfb_shell.c)

zephyr_linker_sources_ifdef(CONFIG_CHARACTER_FRAMEBUFFER DATA_SECTIONS check_cfb_fonts.ld)
zephyr_linker_sources_ifdef(CONFIG_CFB DATA_SECTIONS check_cfb_fonts.ld)
16 changes: 8 additions & 8 deletions subsys/fb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
# Copyright (c) 2018 Phytec Messtechnik GmbH
# SPDX-License-Identifier: Apache-2.0

menuconfig CHARACTER_FRAMEBUFFER
bool "Character framebuffer for dot matrix displays"
menuconfig CFB
bool "Compact framebuffer subsystem"
help
Character framebuffer for dot matrix displays.
Compact graphics subsystem for systems with tiny memory.

if CHARACTER_FRAMEBUFFER
if CFB

config CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS
config CFB_USE_DEFAULT_FONTS
bool "Use default fonts"
default y
help
Use default fonts.

config CHARACTER_FRAMEBUFFER_SHELL
bool "Character Framebuffer shell"
config CFB_SHELL
bool "Compact Framebuffer shell"
depends on SHELL
help
Activate shell module that provides Framebuffer commands to the
Expand All @@ -27,4 +27,4 @@ module = CFB
module-str = cfb
source "subsys/logging/Kconfig.template.log_config"

endif # CHARACTER_FRAMEBUFFER
endif # CFB
7 changes: 3 additions & 4 deletions subsys/fb/cfb_shell.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @file
* @brief Monochrome Character Framebuffer shell module
* @brief Compact Framebuffer shell module
*
* Provide some Character Framebuffer shell commands that can be useful for
* Provide some Compact Framebuffer shell commands that can be useful for
* testing.
*/

Expand Down Expand Up @@ -610,5 +610,4 @@ SHELL_STATIC_SUBCMD_SET_CREATE(cfb_cmds,
SHELL_SUBCMD_SET_END
);

SHELL_CMD_REGISTER(cfb, &cfb_cmds, "Character Framebuffer shell commands",
NULL);
SHELL_CMD_REGISTER(cfb, &cfb_cmds, "Compact Framebuffer shell commands", NULL);
4 changes: 2 additions & 2 deletions tests/subsys/display/cfb/basic/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

CONFIG_ZTEST=y
CONFIG_DISPLAY=y
CONFIG_CHARACTER_FRAMEBUFFER=y
CONFIG_CHARACTER_FRAMEBUFFER_USE_DEFAULT_FONTS=n
CONFIG_CFB=y
CONFIG_CFB_USE_DEFAULT_FONTS=n

CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_TEST_CFB_TRANSFER_BUF_SIZE=307200
Expand Down

0 comments on commit de85a26

Please sign in to comment.