Commit 6276d7c8 authored by Gallacchi Mattia's avatar Gallacchi Mattia
Browse files

Change GPIO to fit PCB


Add devcontainer for developement

Signed-off-by: default avatarmattia.gallacchi <mattia.gallacchi@he-arc.ch>
parent 5fc0f602
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
{
    "image" : "labinfo.ing.he-arc.ch:5050/igib/shared/ci-docker/pico-sdk:latest",
    "runArgs": ["--name", "pico-sdk-container"],
    "name": "pico-sdk",
    "privileged": true,
    "updateRemoteUserUID": true,
    "postStartCommand": "sudo service ssh start && /bin/bash",
    "customizations": {
        "vscode": {
            "extensions": [
                "ms-vscode.cpptools-extension-pack",
                "ms-vscode.cmake-tools"
            ]
        }
    }
}
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/**",
                "/opt/pico-sdk/1.5.1/src/**"
            ],
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "linux-gcc-arm"
            
        }
    ],
    "version": 4
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
BOARD_TYPE=grove_pico_w
BOARD_TYPE=pico
SRC_PATH=.
+1 −0
Original line number Diff line number Diff line
cmake_minimum_required(VERSION 3.13)

set(PICO_SDK_FETCH_FROM_GIT ON)
include(pico_sdk_import.cmake)

project(PI_ContrHorlo C CXX ASM)
+3 −3
Original line number Diff line number Diff line
@@ -46,8 +46,8 @@ void init_uart(){
      // Set up our UART with a basic baud rate.
    uart_init(UART_ID, 2400);

    // Set the TX and RX pins by USing the function select on the GPIO
    // Set datasheet for more information on function select
    // // Set the TX and RX pins by USing the function select on the GPIO
    // // Set datasheet for more information on function select
    gpio_set_function(UART_TX_PIN, GPIO_FUNC_UART);
    gpio_set_function(UART_RX_PIN, GPIO_FUNC_UART);

Loading