Compare commits
No commits in common. "152a88ee5867f13868d4321b61a9a056eafe53f7" and "dca13dd292856ece18438006ea182637316de4a8" have entirely different histories.
152a88ee58
...
dca13dd292
9 changed files with 0 additions and 186 deletions
|
@ -1,78 +0,0 @@
|
||||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
||||||
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
|
||||||
{
|
|
||||||
"name": "Python 3",
|
|
||||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
||||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm",
|
|
||||||
|
|
||||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
||||||
// "features": {},
|
|
||||||
"features": {
|
|
||||||
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
|
||||||
"packages": "usbutils,libusb-1.0,texinfo,libftdi1,libtinfo5,gdb-arm-none-eabi,gcc-arm-none-eabi,cmake"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
||||||
// "forwardPorts": [],
|
|
||||||
|
|
||||||
"runArgs": [
|
|
||||||
"-v", "/dev/bus/usb:/dev/bus/usb",
|
|
||||||
"-v", "/usr/lib/udev/hwdb.bin:/usr/lib/udev/hwdb.bin:ro",
|
|
||||||
"-v", "/lib/udev/hwdb.bin:/lib/udev/hwdb.bin:ro",
|
|
||||||
"-v", "/usr/share/hwdata/usb.ids:/usr/share/hwdata/usb.ids:ro",
|
|
||||||
"-v", "/run/udev:/run/udev",
|
|
||||||
"-v", "/sys:/sys:ro",
|
|
||||||
"--privileged",
|
|
||||||
"--device-cgroup-rule", "c 188:* rmw",
|
|
||||||
"--device-cgroup-rule", "c 166:* rmw"
|
|
||||||
],
|
|
||||||
|
|
||||||
"mounts": [
|
|
||||||
{
|
|
||||||
"source": "${localWorkspaceFolder}/../esphome",
|
|
||||||
"target": "${containerWorkspaceFolder}/../esphome",
|
|
||||||
"type": "bind"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "${localEnv:HOME}/.platformio",
|
|
||||||
"target": "/home/vscode/.platformio",
|
|
||||||
"type": "bind"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "${localWorkspaceFolder}/../rp2040",
|
|
||||||
"target": "${containerWorkspaceFolder}/../rp2040",
|
|
||||||
"type": "bind"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/opt/openocd-rp2040",
|
|
||||||
"target": "/opt/openocd-rp2040",
|
|
||||||
"type": "bind"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
|
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
|
||||||
"postCreateCommand": "pip3 install -r requirements.txt",
|
|
||||||
|
|
||||||
// Configure tool-specific properties.
|
|
||||||
"customizations": {
|
|
||||||
"vscode": {
|
|
||||||
"extensions": [
|
|
||||||
"ms-vscode.cpptools-extension-pack",
|
|
||||||
"jbenden.c-cpp-flylint",
|
|
||||||
"ESPHome.esphome-vscode",
|
|
||||||
"ms-python.vscode-pylance",
|
|
||||||
"marus25.cortex-debug",
|
|
||||||
"ms-vscode.cpptools",
|
|
||||||
"ms-vscode.cmake-tools",
|
|
||||||
"mikestead.dotenv",
|
|
||||||
"ZixuanWang.linkerscript",
|
|
||||||
"alefragnani.Bookmarks",
|
|
||||||
"ciprianelies.arm-assembly-syntax"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
||||||
// "remoteUser": "root"
|
|
||||||
}
|
|
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -1,6 +0,0 @@
|
||||||
# Gitignore settings for ESPHome
|
|
||||||
# This is an example and may include too much for your use-case.
|
|
||||||
# You can modify this file to suit your needs.
|
|
||||||
/.esphome/
|
|
||||||
/secrets.yaml
|
|
||||||
*.py[ocd]
|
|
17
.vscode/c_cpp_properties.json
vendored
17
.vscode/c_cpp_properties.json
vendored
|
@ -1,17 +0,0 @@
|
||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Linux",
|
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**",
|
|
||||||
"${workspaceFolder}/../esphome/"
|
|
||||||
],
|
|
||||||
"defines": ["USE_RP2040"],
|
|
||||||
"compilerPath": "/usr/bin/gcc",
|
|
||||||
"cStandard": "c11",
|
|
||||||
"cppStandard": "gnu++14",
|
|
||||||
"intelliSenseMode": "linux-gcc-x64"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
41
.vscode/launch.json
vendored
41
.vscode/launch.json
vendored
|
@ -1,41 +0,0 @@
|
||||||
{
|
|
||||||
// Use IntelliSense to learn about possible attributes.
|
|
||||||
// Hover to view descriptions of existing attributes.
|
|
||||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
||||||
"version": "0.2.0",
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Pico Debug (Cortex-Debug)",
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"executable": "${workspaceRoot}/.esphome/build/enviro-weather/.pioenvs/enviro-weather/firmware.elf",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "cortex-debug",
|
|
||||||
"servertype": "openocd",
|
|
||||||
"device": "RP2040",
|
|
||||||
"runToEntryPoint": "main",
|
|
||||||
"configFiles": [
|
|
||||||
"interface/cmsis-dap.cfg",
|
|
||||||
"target/rp2040.cfg"
|
|
||||||
],
|
|
||||||
"openOCDLaunchCommands": [
|
|
||||||
"adapter speed 5000"
|
|
||||||
],
|
|
||||||
"searchDir": ["/opt/openocd-rp2040/share/openocd/scripts"],
|
|
||||||
"svdFile": "/workspaces/rp2040/pico-sdk/src/rp2040/hardware_regs/rp2040.svd",
|
|
||||||
"gdbPath": "gdb-multiarch"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Pico Debug (Cortex-Debug with external OpenOCD)",
|
|
||||||
"cwd": "${workspaceRoot}",
|
|
||||||
"executable": "${workspaceRoot}/.esphome/build/enviro-weather/.pioenvs/enviro-weather/firmware.elf",
|
|
||||||
"request": "launch",
|
|
||||||
"type": "cortex-debug",
|
|
||||||
"servertype": "external",
|
|
||||||
"gdbTarget": "localhost:3333",
|
|
||||||
"device": "RP2040",
|
|
||||||
"runToEntryPoint": "main",
|
|
||||||
"svdFile": "/workspaces/rp2040/pico-sdk/src/rp2040/hardware_regs/rp2040.svd",
|
|
||||||
"showDevDebugOutput": "raw"
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
8
.vscode/settings.json
vendored
8
.vscode/settings.json
vendored
|
@ -1,8 +0,0 @@
|
||||||
{
|
|
||||||
"search.exclude": {
|
|
||||||
"**/node_modules": true,
|
|
||||||
"**/bower_components": true,
|
|
||||||
"**/*.code-search": true,
|
|
||||||
".esphome": true,
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -135,13 +135,6 @@ bool PCF85063Component::clear_timer_flag() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PCF85063Component::stop_timer() {
|
|
||||||
PCF85063_READ_REG(0x11, 1);
|
|
||||||
this->pcf85063_.reg.timer_enable = false;
|
|
||||||
PCF85063_WRITE_REG(0x11, 1);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool PCF85063Component::clear_alarm_flag() {
|
bool PCF85063Component::clear_alarm_flag() {
|
||||||
PCF85063_READ_REG(0x01, 1);
|
PCF85063_READ_REG(0x01, 1);
|
||||||
this->pcf85063_.reg.alarm_flag = 0;
|
this->pcf85063_.reg.alarm_flag = 0;
|
||||||
|
|
|
@ -34,7 +34,6 @@ class PCF85063Component : public time::RealTimeClock, public i2c::I2CDevice {
|
||||||
bool write_timer_interval(uint16_t interval);
|
bool write_timer_interval(uint16_t interval);
|
||||||
bool clear_timer_flag();
|
bool clear_timer_flag();
|
||||||
bool clear_alarm_flag();
|
bool clear_alarm_flag();
|
||||||
bool stop_timer();
|
|
||||||
bool write_clockout_frequency(uint8_t freq);
|
bool write_clockout_frequency(uint8_t freq);
|
||||||
void set_timer_interrupt_enable_(bool state);
|
void set_timer_interrupt_enable_(bool state);
|
||||||
void set_timer_interrupt_mode_(PCF85063ATimerInterruptMode_t mode);
|
void set_timer_interrupt_mode_(PCF85063ATimerInterruptMode_t mode);
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"folders": [
|
|
||||||
{
|
|
||||||
"path": "."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "../rp2040"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "../esphome"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"settings": {
|
|
||||||
"c-cpp-flylint.flexelint.enable": false,
|
|
||||||
"c-cpp-flylint.lizard.enable": false,
|
|
||||||
"c-cpp-flylint.flawfinder.enable": false,
|
|
||||||
"files.associations": {
|
|
||||||
"*.tmpl": "jinja",
|
|
||||||
"*.txt": "plaintext",
|
|
||||||
"memory": "cpp",
|
|
||||||
"istream": "cpp",
|
|
||||||
"ostream": "cpp"
|
|
||||||
},
|
|
||||||
"cortex-debug.openocdPath": "/opt/openocd-rp2040/bin/openocd",
|
|
||||||
//"cortex-debug.gdbPath": "/workspaces/rp2040/system/arm-none-eabi/bin/arm-none-eabi-gdb",
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1 +0,0 @@
|
||||||
-e ../esphome
|
|
Loading…
Reference in a new issue