Skip to content

Commit

Permalink
<Pico> Add support for pico platform and add project
Browse files Browse the repository at this point in the history
- Added pico platform
- Added demo_arm project as dummy build test
- Added placeholder for flash on pico

Issue: #290
  • Loading branch information
akashkollipara committed Jun 18, 2024
1 parent c68577c commit 9ad0506
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 0 deletions.
21 changes: 21 additions & 0 deletions projects/demo_arm/build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# CYANCORE LICENSE
# Copyrights (C) 2019-2022, Cyancore Team
#
# File Name : build.mk
# Description : This file build and gathers project properties
# Primary Author : Akash Kollipara [[email protected]]
# Organisation : Cyancore Core-Team
#

PROJECT_DIR := $(GET_PATH)

OPTIMIZATION := s

EXE_MODE := supervisor

#include $(PROJECT_DIR)/../demo.src/build.mk
include $(PROJECT_DIR)/config.mk

DIR := $(PROJECT_DIR)
include mk/obj.mk
19 changes: 19 additions & 0 deletions projects/demo_arm/config.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# CYANCORE LICENSE
# Copyrights (C) 2019, Cyancore Team
#
# File Name : config.mk
# Description : This file consists of project config
# Primary Author : Akash Kollipara [[email protected]]
# Organisation : Cyancore Core-Team
#

COMPILER := gcc
FAMILY := rpi
PLATFORM := pico
STDLOG_MEMBUF := 0
BOOTMSGS := 0
EARLYCON_SERIAL := 0
CONSOLE_SERIAL := 0
OBRDLED_ENABLE := 0
TERRAKERN := 0
26 changes: 26 additions & 0 deletions projects/demo_arm/project.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* CYANCORE LICENSE
* Copyrights (C) 2022, Cyancore Team
*
* File Name : project.c
* Description : This file consists of project srouces
* Primary Author : Akash Kollipara [[email protected]]
* Organisation : Cyancore Core-Team
*/

#include <status.h>
#include <stdio.h>
#include <string.h>
#include <terravisor/bootstrap.h>

void plug()
{
bootstrap();
return;
}


void play()
{
return;
}
1 change: 1 addition & 0 deletions src/platform/rpi/common_rp2/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ LOCAL_INTERRUPT_DEVICE ?= 0
PLAT_INTERRUPT_DEVICE ?= 0

include $(RP2_COMMON_DIR)/arch/build.mk
include $(RP2_COMMON_DIR)/flash/build.mk
#include $(RP2_COMMON_DIR)/hal/build.mk
include $(RP2_COMMON_DIR)/platform/build.mk
15 changes: 15 additions & 0 deletions src/platform/rpi/common_rp2/flash/build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# CYANCORE LICENSE
# Copyrights (C) 2024, Cyancore Team
#
# File Name : build.mk
# Description : This file verifies the Flash config and updates
# build parameters
# Primary Author : Akash Kollipara [[email protected]]
# Organisation : Cyancore Core-Team
#

RP2_FLASH_DIR := $(GET_PATH)

$(eval $(call check_config_and_include,$(RP2_FLASH_DIR)/config_$(RP2_FLASH).mk,Flash: $(RP2_FLASH)))

11 changes: 11 additions & 0 deletions src/platform/rpi/common_rp2/flash/config_w25q128.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# CYANCORE LICENSE
# Copyrights (C) 2024, Cyancore Team
#
# File Name : config_w25q128.mk
# Description : W25Q128 Flash config provider file
# Primary Author : Akash Kollipara [[email protected]]
# Organisation : Cyancore Core-Team
#

$(info ToDo: Add clock & current spec)

This comment has been minimized.

Copy link
@pranjalchanda08

pranjalchanda08 Jun 21, 2024

Contributor

when do we plan to complete the TODO?

This comment has been minimized.

Copy link
@akashkollipara

akashkollipara Jun 21, 2024

Author Member

Folder structure is still WIP. This isn't fixed design yet.
Based on the later designs we also may have to add few more parameters. Hence kept it open.

17 changes: 17 additions & 0 deletions src/platform/rpi/pico/build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#
# CYANCORE LICENSE
# Copyrights (C) 2024, Cyancore Team
#
# File Name : build.mk
# Description : This file accumulates the build scripts from
# all other directories that have RPi-pico
# board support sources
# Primary Author : Akash Kollipara [[email protected]]
# Organisation : Cyancore Core-Team
#

PICO_DIR := $(GET_PATH)

RP2_FLASH := w25q128

include $(PICO_DIR)/../rp2040/build.mk

0 comments on commit 9ad0506

Please sign in to comment.