Skip to content

Commit

Permalink
ev11l78a: minimize memory usage in the default config.
Browse files Browse the repository at this point in the history
The ATSAMD20E16 used in this board only has 8KiB SRAM, so the defaults
are not really suitable for anything close to useful, particularly the
sink sample that most closely resembles the original demo for the board.

This should also allow more tests not to be skipped for this board as
otherwise they overflow RAM usage.

Signed-off-by: Diego Elio Pettenò <[email protected]>
  • Loading branch information
Flameeyes committed Sep 10, 2023
1 parent e1358b5 commit e653ac7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions boards/arm/ev11l78a/ev11l78a_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ CONFIG_GPIO=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# Kernel Options due to Low Memory (4k)
CONFIG_LOG_BUFFER_SIZE=256
CONFIG_MAIN_STACK_SIZE=640
CONFIG_IDLE_STACK_SIZE=200
CONFIG_ISR_STACK_SIZE=512
CONFIG_USBC_STACK_SIZE=512
# Prevent Interrupt Vector Table in RAM
CONFIG_SRAM_VECTOR_TABLE=n

# This board only supports the sink role, so
# no need to ever implement source for it.
CONFIG_USBC_CSM_SINK_ONLY=y

0 comments on commit e653ac7

Please sign in to comment.