Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (61 sloc) 2.84 KB
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2018, Erik Moqvist
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* This file is part of the Simba project.
*/
#ifndef __BOARD_H__
#define __BOARD_H__
#define pin_gpio0_dev pin_device[0]
#define pin_gpio2_dev pin_device[2]
#define pin_gpio4_dev pin_device[5]
#define pin_gpio5_dev pin_device[4]
#define pin_gpio12_dev pin_device[12]
#define pin_gpio13_dev pin_device[13]
#define pin_gpio14_dev pin_device[14]
#define pin_gpio15_dev pin_device[15]
#define pin_gpio16_dev pin_device[16]
#define pin_d0_dev pin_device[0]
#define pin_d2_dev pin_device[2]
#define pin_d4_dev pin_device[5]
#define pin_d5_dev pin_device[4]
#define pin_d12_dev pin_device[12]
#define pin_d13_dev pin_device[13]
#define pin_d14_dev pin_device[14]
#define pin_d15_dev pin_device[15]
#define pin_d16_dev pin_device[16]
#define pin_led_dev pin_d2_dev
#define pin_a0_dev pin_device[0]
#define adc_0_dev adc_device[0]
#define flash_0_dev flash_device[0]
#define ADC_PINS_MAX 1
/**
* Convert given pin string to the pin number.
*
* @param[in] str_p Pin as a string.
*
* @return Pin number or negative error code.
*/
int board_pin_string_to_device_index(const char *str_p);
#endif
You can’t perform that action at this time.