MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Files at this revision

API Documentation at this revision

Comitter:
tkale
Date:
Tue Jan 16 11:21:39 2018 +0100
Parent:
47:3a13b0939f0e
Child:
49:18f8dc534348
Commit message:
Fix includes and ifdef
's again

Changed in this revision

Device/MODSERIAL_NUCLEO_F401RE.h Show annotated file Show diff for this revision Revisions of this file
Device/MODSERIAL_NUCLEO_L432KC.cpp Show annotated file Show diff for this revision Revisions of this file
MACROS.h Show annotated file Show diff for this revision Revisions of this file
--- a/Device/MODSERIAL_NUCLEO_F401RE.h	Fri Jan 12 18:04:59 2018 +0100
+++ b/Device/MODSERIAL_NUCLEO_F401RE.h	Tue Jan 16 11:21:39 2018 +0100
@@ -1,4 +1,4 @@
-#if defined(TARGET_NUCLEO_L432KC)
+#if defined(TARGET_NUCLEO_F401RE)
 
 #define MODSERIAL_IRQ_REG ((USART_TypeDef*)_base)->CR1
 #define DISABLE_TX_IRQ MODSERIAL_IRQ_REG &= ~USART_CR1_TXEIE
--- a/Device/MODSERIAL_NUCLEO_L432KC.cpp	Fri Jan 12 18:04:59 2018 +0100
+++ b/Device/MODSERIAL_NUCLEO_L432KC.cpp	Tue Jan 16 11:21:39 2018 +0100
@@ -1,5 +1,5 @@
 #ifdef TARGET_NUCLEO_L432KC
-#include "../MODSERIAL.h"
+#include "MODSERIAL.h"
 
 void MODSERIAL::setBase(void ) {
 #if DEVICE_SERIAL_ASYNCH
--- a/MACROS.h	Fri Jan 12 18:04:59 2018 +0100
+++ b/MACROS.h	Tue Jan 16 11:21:39 2018 +0100
@@ -24,14 +24,14 @@
 #define MODSERIAL_MACROS_H
 
 
-#include "Device/MODSERIAL_LPC1768.h"
-#include "Device/MODSERIAL_LPC11U24.h"
-#include "Device/MODSERIAL_KL25Z.h"
-#include "Device/MODSERIAL_KL05Z.h"
-#include "Device/MODSERIAL_KSDK.h"
-#include "Device/MODSERIAL_NUCLEO_F401RE.h"
-#include "Device/MODSERIAL_PAC_F401RB.h"
-#include "Device/MODSERIAL_NUCLEO_L432KC.h"
+#include "MODSERIAL_LPC1768.h"
+#include "MODSERIAL_LPC11U24.h"
+#include "MODSERIAL_KL25Z.h"
+#include "MODSERIAL_KL05Z.h"
+#include "MODSERIAL_KSDK.h"
+#include "MODSERIAL_NUCLEO_F401RE.h"
+#include "MODSERIAL_PAC_F401RB.h"
+#include "MODSERIAL_NUCLEO_L432KC.h"
 
 #define MODSERIAL_TX_BUFFER_EMPTY (buffer_count[TxIrq]==0)
 #define MODSERIAL_RX_BUFFER_EMPTY (buffer_count[RxIrq]==0)