Skip to content

Commit

Permalink
rpipico: doc maker pi pins, clean up oddments from submission
Browse files Browse the repository at this point in the history
  • Loading branch information
EtchedPixels committed Jul 13, 2024
1 parent 9f9d5cb commit 07b98cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Kernel/platform/platform-rpipico/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Set one of these depending.
#export PICO_SDK_FETCH_FROM_GIT = yes
export PICO_SDK_PATH = ${HOME}/.pico-sdk/sdk/1.5.1
export PICO_SDK_FETCH_FROM_GIT = yes
#export PICO_SDK_PATH = ${HOME}/.pico-sdk/sdk/1.5.1

include ../../../version.mk

Expand Down
7 changes: 6 additions & 1 deletion Kernel/platform/platform-rpipico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
* TX GPIO 15
* RX GPIO 12
* CS GPIO 13
* CONFIG_MAKER_PI
* SCK GPIO 10
* TX GPIO 11
* RX GPIO 12
* CS GPIO 15
* If Undefined
* SCK GPIO 2
* TX GPIO 3
* RX GPIO 4
* CS GPIO 5
*/

#define CONFIG_MAKER_PI
#define CONFIG_RC2040

/* We have a GPIO interface */
#define CONFIG_DEV_GPIO
Expand Down
7 changes: 0 additions & 7 deletions Kernel/platform/platform-rpipico/devgpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ int gpio_ioctl(uarg_t request, char *data) {
}

switch (request) {
case GPIOC_SETBYTE:
break;
case GPIOC_SET:
gpio_init(gr.pin);
gpio_set_dir(gr.pin, GPIO_OUT);
gpio_put(gr.pin, gr.val != 0);
return 0;
break;
default:
udata.u_error = ENODEV;
return -1;
}

return -1;
}

0 comments on commit 07b98cb

Please sign in to comment.