You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2017/05/17 09:55:22 UTC

[06/43] incubator-mynewt-core git commit: hw: hsp: pic32mz2048_wi-fire: Define LED pins

hw: hsp: pic32mz2048_wi-fire: Define LED pins

Signed-off-by: Francois Berder <fb...@outlook.fr>


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 <fb...@outlook.fr>
Authored: Tue May 9 14:15:45 2017 +0200
Committer: Francois Berder <fb...@outlook.fr>
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"