Moved gpio.h to peripherals

pull/149/head
Silvano Seva 2023-07-21 08:35:39 +02:00
rodzic 28122a3bf3
commit 4cd1fdfcf3
58 zmienionych plików z 54 dodań i 111 usunięć

Wyświetl plik

@ -275,7 +275,6 @@ linux_platform_src = ['platform/targets/linux/emulator/emulator.c',
'platform/drivers/keyboard/keyboard_linux.c',
'platform/drivers/NVM/nvmem_linux.c',
'platform/drivers/GPS/GPS_linux.c',
'platform/mcu/x86_64/drivers/gpio.c',
'platform/mcu/x86_64/drivers/delays.c',
'platform/drivers/baseband/radio_linux.cpp',
'platform/drivers/audio/audio_linux.c',

Wyświetl plik

@ -16,7 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <pthread.h>
#include <stdlib.h>

Wyświetl plik

@ -16,7 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <pthread.h>
#include <stdlib.h>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/delays.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <peripherals/gps.h>
#include <hwconfig.h>
#include <string.h>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include "AT24Cx.h"
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include <stdint.h>

Wyświetl plik

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>
#include <hwconfig.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#define CMD_WRITE 0x02 /* Read data */

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include <stdint.h>

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <stdint.h>

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <stdint.h>
#include <SPI2.h>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "usb.h"

Wyświetl plik

@ -15,7 +15,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "MAX9814.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include <interfaces/delays.h>
#include <interfaces/audio.h>
#include <interfaces/radio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#define PATH(x,y) ((x << 4) | y)

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "MAX9814.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include <kernel/scheduler/scheduler.h>
#include <interfaces/audio_stream.h>
#include <toneGenerator_MDx.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <stdbool.h>
#include <miosix.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include <kernel/scheduler/scheduler.h>
#include <interfaces/audio_stream.h>
#include <toneGenerator_MDx.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <stdbool.h>
#include <miosix.h>

Wyświetl plik

@ -20,7 +20,7 @@
#include <kernel/scheduler/scheduler.h>
#include <interfaces/audio_stream.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <data_conversion.h>
#include <hwconfig.h>
#include <timers.h>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "backlight.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "backlight.h"

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include "AT1846S.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/delays.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include "HR_C5000.h"

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include "HR_C6000.h"

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include "HR_C6000.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/delays.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <type_traits>
#include <hwconfig.h>
#include "HR_Cx000.h"

Wyświetl plik

@ -19,7 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include "MCP4551.h"

Wyświetl plik

@ -16,7 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <hwconfig.h>
#include <math.h>

Wyświetl plik

@ -20,7 +20,7 @@
#include <interfaces/radio.h>
#include <interfaces/nvmem.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_GDx.h>
#include <hwconfig.h>
#include <algorithm>

Wyświetl plik

@ -21,7 +21,7 @@
#include <toneGenerator_MDx.h>
#include <interfaces/nvmem.h>
#include <interfaces/radio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_MDx.h>
#include <hwconfig.h>
#include <ADC1_MDx.h>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/radio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_Mod17.h>
#include <hwconfig.h>
#include <MCP4551.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include <interfaces/delays.h>
#include <interfaces/nvmem.h>
#include <interfaces/radio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_MDx.h>
#include <hwconfig.h>
#include <algorithm>

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <qdec.h>
#include "chSelector.h"

Wyświetl plik

@ -19,7 +19,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <qdec.h>
#include "chSelector.h"

Wyświetl plik

@ -16,7 +16,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/display.h>
#include <interfaces/delays.h>
#include <interfaces/platform.h>

Wyświetl plik

@ -23,7 +23,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/display.h>
#include <interfaces/delays.h>
#include <hwconfig.h>

Wyświetl plik

@ -23,7 +23,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/display.h>
#include <interfaces/delays.h>
#include <hwconfig.h>

Wyświetl plik

@ -22,7 +22,7 @@
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/display.h>
#include <interfaces/delays.h>
#include "hwconfig.h"

Wyświetl plik

@ -23,7 +23,7 @@
#include <stdlib.h>
#include <string.h>
#include <backlight.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/display.h>
#include <interfaces/delays.h>
#include <hwconfig.h>

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <interfaces/keyboard.h>
#include "hwconfig.h"

Wyświetl plik

@ -20,7 +20,7 @@
#include <stdio.h>
#include <stdint.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <interfaces/keyboard.h>
#include <interfaces/platform.h>

Wyświetl plik

@ -22,7 +22,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <interfaces/keyboard.h>
#include <interfaces/platform.h>

Wyświetl plik

@ -20,7 +20,7 @@
#include <stdio.h>
#include <stdint.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
#include <interfaces/keyboard.h>
#include <interfaces/platform.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include "toneGenerator_MDx.h"
#include <miosix.h>
#include <hwconfig.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <kernel/scheduler/scheduler.h>
using namespace miosix;

Wyświetl plik

@ -29,7 +29,7 @@
#include <kernel/sync.h>
#include <hwconfig.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
namespace miosix
{

Wyświetl plik

@ -16,7 +16,7 @@
***************************************************************************/
#include "MK22F51212.h"
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
/*
* MK22 GPIO management is a bit convoluted: instead of having all the registers

Wyświetl plik

@ -28,7 +28,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

Wyświetl plik

@ -22,7 +22,7 @@
***************************************************************************/
#include <kernel/scheduler/scheduler.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <kernel/queue.h>
#include <miosix.h>
#include "USART3.h"

Wyświetl plik

@ -16,7 +16,7 @@
***************************************************************************/
#include "stm32f4xx.h"
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
void gpio_setMode(void *port, uint8_t pin, enum Mode mode)
{

Wyświetl plik

@ -30,7 +30,7 @@
#include "usb_bsp.h"
#include "usbd_conf.h"
#include "stm32f4xx.h"
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/delays.h>
extern USB_OTG_CORE_HANDLE USB_OTG_dev;

Wyświetl plik

@ -1,55 +0,0 @@
/***************************************************************************
* Copyright (C) 2020 - 2023 by Frederik Saraci IU2NRO *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <stdio.h>
void gpio_setMode(void *port, uint8_t pin, enum Mode mode)
{
printf("gpio_setMode(%s, %u, %u)\n", (char*) port, pin, mode);
}
void gpio_setAlternateFunction(void *port, uint8_t pin, uint8_t afNum)
{
printf("gpio_setAlternateFunction(%s, %u, %u)\n", (char*) port, pin, afNum);
}
void gpio_setOutputSpeed(void *port, uint8_t pin, enum Speed spd)
{
printf("gpio_setOutputSpeed(%s, %u, %u)\n", (char*) port, pin, spd);
}
void gpio_setPin(void *port, uint8_t pin)
{
printf("gpio_setPin(%s, %u)\n", (char*) port, pin);
}
void gpio_clearPin(void *port, uint8_t pin)
{
printf("gpio_clearPin(%s, %u)\n", (char*) port, pin);
}
void gpio_togglePin(void *port, uint8_t pin)
{
printf("gpio_togglePin(%s, %u)\n", (char*) port, pin);
}
uint8_t gpio_readPin(const void *port, uint8_t pin)
{
printf("gpio_readPin(%s, %u)\n", (char*) port, pin);
return 1;
}

Wyświetl plik

@ -21,7 +21,7 @@
#include <interfaces/platform.h>
#include <interfaces/nvmem.h>
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_GDx.h>
#include <ADC0_GDx.h>
#include <string.h>

Wyświetl plik

@ -21,7 +21,7 @@
#include <interfaces/platform.h>
#include <interfaces/nvmem.h>
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_GDx.h>
#include <ADC0_GDx.h>
#include <string.h>

Wyświetl plik

@ -17,7 +17,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/nvmem.h>
#include <interfaces/platform.h>
#include <hwconfig.h>

Wyświetl plik

@ -18,7 +18,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <interfaces/nvmem.h>
#include <interfaces/platform.h>
#include <interfaces/delays.h>

Wyświetl plik

@ -18,7 +18,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <hwconfig.h>
#include <string.h>
#include <ADC1_MDx.h>

Wyświetl plik

@ -22,7 +22,7 @@
#include <interfaces/platform.h>
#include <interfaces/nvmem.h>
#include <interfaces/audio.h>
#include <interfaces/gpio.h>
#include <peripherals/gpio.h>
#include <calibInfo_Mod17.h>
#include <ADC1_Mod17.h>
#include <backlight.h>

Wyświetl plik

@ -16,7 +16,6 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/gpio.h>
#include <interfaces/nvmem.h>
#include <stdio.h>
#include "emulator.h"