hw: hsp: pic32mz2048_wi-fire: Define LED pins Signed-off-by: Francois Berder <[email protected]>
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/1191e7da Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/1191e7da Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/1191e7da Branch: refs/heads/bluetooth5 Commit: 1191e7da69143830def3c4166948aefe86f8659d Parents: cb23f34 Author: Francois Berder <[email protected]> Authored: Tue May 9 14:15:45 2017 +0200 Committer: Francois Berder <[email protected]> Committed: Tue May 9 14:15:45 2017 +0200 ---------------------------------------------------------------------- hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/1191e7da/hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h ---------------------------------------------------------------------- diff --git a/hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h b/hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h index 1a8a40c..06cd45f 100644 --- a/hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h +++ b/hw/bsp/pic32mz2048_wi-fire/include/bsp/bsp.h @@ -20,6 +20,7 @@ #define H_BSP_H #include <inttypes.h> +#include "mcu/mcu.h" #ifdef __cplusplus extern "C" { @@ -39,6 +40,13 @@ extern uint8_t _ccram_start; #define RAM_SIZE (128 * 1024) #define CCRAM_SIZE (64 * 1024) +/* LED pins */ +#define LED_1 MCU_GPIO_PORTG(6) +#define LED_2 MCU_GPIO_PORTD(4) +#define LED_3 MCU_GPIO_PORTB(11) +#define LED_4 MCU_GPIO_PORTG(15) +#define LED_BLINK_PIN LED_1 + /* UART */ #define UART_CNT 6 #define CONSOLE_UART "uart3"
